Commit Graph
15 Commits
Author SHA1 Message Date
Claudio DeSouza 389cd82435 chrome namespace removed from incognito_helpers.h
This merely affects the scope of the call.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/45557e4f3abd4087fe01fbfbf47df08dad851e72

commit 45557e4f3abd4087fe01fbfbf47df08dad851e72
Author: Hyungwook Lee <hyungwook.lee@navercorp.com>
Date:   Thu Sep 26 12:26:15 2024 +0000

    Remove some chrome:: namespace from chrome/browser/profiles/incognito_helpers.*

    Bug: 41050580
2024-10-24 12:14:29 +01:00
cdesouza-chromium cbc844a561 BuildServiceInstanceFor => BuildServiceInstanceForBrowserContext (#25833)
This PR replaces the use of `BuildServiceInstanceFor` across brave, as
it has been deprecated, in favour of
`BuildServiceInstanceForBrowserContext`, which return a `unique_ptr`
rather than a naked pointer allocation.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/6121e052e0373a9a0cc84a718ef73e68e3b8a628

commit 6121e052e0373a9a0cc84a718ef73e68e3b8a628
Author: Tom Sepez <tsepez@chromium.org>
Date:   Wed Dec 14 21:38:26 2022 +0000

    Rework BrowserContextKeyedServiceFactory::BuildServiceInstanceFor().

    Avoid releasing an unique_ptr<> only to re-insert the raw value back
    into a different one. Instead, maintain ownership at all times.

    This is done by overriding the form of BuildServiceInstanceFor() as declared by KeyedServiceFactory, rather than the form of declared by BrowserContextKeyedServiceFactory.

    Demonstrate one usage in page_colors_factor.cc as an example, before
    taking on the hundreds that remain.

    Bug: 1396138
2024-10-08 11:57:01 +01:00
cdesouza-chromium e1f8a28431 [CodeHealth] Use constexpr strings (#25810)
Use `constexpr` strings

This PR changes moves away from uses of `const char` with two
approaches. For `.cc` files, these types are turned into constexpr ones,
which gives the compiler more leeway for optimisations.

For the constants on header files, we are converting these instances to
`inline constexpr`, in order to also reduce string duplication across
the binary.

This change was generated with a tool.
2024-10-04 10:01:05 -07:00
Claudio DeSouza cdb1a3ff90 ExecuteJavaScriptForTests default world id required
The world id argument used to have a default but now it has to be
provided by the caller.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/73cb98534375506288904ac3eb7ab6e35e94f0e0

commit 73cb98534375506288904ac3eb7ab6e35e94f0e0
Author: Avi Drissman <avi@chromium.org>
Date:   Mon Aug 26 18:10:58 2024 +0000

    Don't have default arguments on virtual functions in render_frame_host.h

    Bug: none
2024-10-03 17:06:18 +01:00
Brian Johnson 5b9f860a1f Browser test fixes (#23657)
Fixes various setup issues in browser tests that were causing tests to crash in debug mode where `!NDEBUG` checks are enabled
2024-06-03 16:23:44 -07:00
sangwoo.ko af68fea869 Remove check_includes = false from request_otr/BUILD.gn 2024-04-08 08:49:13 +09:00
Jacob Sikorski ab332ff65c Cleanup brave_shields component 2024-02-12 15:47:01 -07:00
Darnell Andries 11b1f62baa Add Request-OTR P3A metrics 2023-12-06 19:08:19 -08:00
Mark Pilgrim 897a2131d6 Further canonicalize hosts before matching against host cache (#19675) 2023-08-15 11:35:34 -07:00
Mark Pilgrimanddeeppandya 87cece9f32 Add Android settings UI and enable Android support for OTR tab (#18931)
* Add Android pref for Request OTR

* Update android UI changes

* .

* exclude browser tests on Android

* build fiddling

* remove platform gate on string resources

* fix Android include

* fix link error

* fix Android test

* normalize capitalization

---------

Co-authored-by: deeppandya <deeppandya91@gmail.com>
2023-07-04 03:49:03 +02:00
Mark Pilgrim 5c22c83e00 Add test for HTTP header that triggers OTR tab (#18713) 2023-06-14 23:13:51 +02:00
cdesouza-chromium b94efd40d1 Use base::NoDestructor rather than Singleton (#18846)
This change replaces all uses of `base::Singleton` across the codebase,
in favor of `base::NoDestructor`. This is following the a direction
taken upstream, in getting `base::Singleton` deleted.

LSC doc:
https://docs.google.com/document/d/1x1LqRQyfBOmpMkNQBYs7QBPSxLtuiImvmgcJYI_kaS4/edit?usp=sharing
2023-06-13 03:00:07 +01:00
Mark Pilgrim 2ac6d8b0ad Rename some Request-OTR-Tab classes and methods (#18471)
* Rename some Request-OTR-Tab classes and methods

* simplify IsOffTheRecord override

* feedback
2023-06-06 21:38:31 +02:00
Claudio DeSouza 631729b452 Using raw_ptr<T> for member fields
Most cases relating to `raw_ptr` fixes have already been merged to
master. This change has straggler cases in it.
2023-05-15 13:10:38 +01:00
Mark Pilgrim 19e0b7e863 Implement Request Off-The-Record (#17365)
* Implement Request Off-The-Record

* feedback

* patch upstream bug

* add tests for window.open blocking

* feedback
2023-05-05 00:38:20 +02:00