Mario Sanchez Prada ef0275fb43 Adapt PermissionRequest override to account for IsDuplicateOf()
We need to disable upstream's IsDuplicateOf() via a define above and
re-declare it to workaround the fact that the first parameter of the
upstream method will change into PermissionRequest_ChromiumImpl too.

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/d7e4d44c73251333f1c9163480208033ace4bdbc

commit d7e4d44c73251333f1c9163480208033ace4bdbc
Author: Bret Sepulveda <bsep@chromium.org>
Date:   Tue Apr 20 13:46:41 2021 +0000

    Miscellaneous permissions cleanup.

    This patch:
    * Introduces a new method PermissionRequest::IsDuplicateOf, rather than
      relying on comparing the result of GetMessageTextFragment (which
      returns a human-readable string) to determine whether two requests are
      duplicates.
    * Makes PermissionRequest::GetMessageTextFragment desktop-only, as it
      was only used elsewhere in the aforementioned duplicates logic.
    * Uses std::u16string in MockPermissionRequest everywhere.
    * And deletes a few bits of unused code.

    Bug: 1110905
2021-06-29 16:35:03 -04:00
2021-06-29 18:01:13 +00:00
2021-06-29 18:01:13 +00:00

Brave Core

Brave Core is a set of changes, APIs, and scripts used for customizing Chromium to make Brave.

Follow @brave on Twitter for important announcements.

Resources

Community

You can ask questions and interact with the community in the following locations:

S
Description
No description provided
Readme MPL-2.0
3.8 GiB
Languages
C++ 36.9%
HTML 31.6%
Swift 9.4%
TypeScript 9%
Java 4.8%
Other 8.1%