@@ -10,7 +10,7 @@ index 07c8a1c383f4dbd94b89663394a2dbc69491e435..8e42b4766ef4896fbc09be4752fb760f
@@ -18,7 +18,7 @@ index 07c8a1c383f4dbd94b89663394a2dbc69491e435..8e42b4766ef4896fbc09be4752fb760f
@@ -26,7 +26,7 @@ index 07c8a1c383f4dbd94b89663394a2dbc69491e435..8e42b4766ef4896fbc09be4752fb760f
diff --git a/patches/chrome-browser-resources-settings-privacy_page-privacy_page.js.patch b/patches/chrome-browser-resources-settings-privacy_page-privacy_page.js.patch
index f878705575f6..774ada5e2654 100644
--- a/patches/chrome-browser-resources-settings-privacy_page-privacy_page.js.patch
+++ b/patches/chrome-browser-resources-settings-privacy_page-privacy_page.js.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
-index 8a9c4a0875311a5206b2a7dcc2a31b502e70ef18..fb2c3573ed744200ffba4902d33928ffaee2a76f 100644
+index e09e47300ba73b02142ee8215eb8d1870c73f945..5ff923bc1d5851ce88d2fd75f1234effa017a2cf 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
@@ -18,6 +18,7 @@ import '../site_settings/settings_category_default_radio_group.js';
diff --git a/patches/chrome-browser-resources-settings-route.js.patch b/patches/chrome-browser-resources-settings-route.js.patch
index 3d8fba380643..002385c21e46 100644
--- a/patches/chrome-browser-resources-settings-route.js.patch
+++ b/patches/chrome-browser-resources-settings-route.js.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/resources/settings/route.js b/chrome/browser/resources/settings/route.js
-index fe6ea7395fda29aa09c8caf03a063bdd5b7e7d2c..aad0b409b97bc0849a5f2d4e79cb4baef4496efa 100644
+index 23c75e8b7d34ad078122efecaa0e461948d94567..ff04b3f0f23b6e5ed3734d7d50ff6b952d7938f6 100644
--- a/chrome/browser/resources/settings/route.js
+++ b/chrome/browser/resources/settings/route.js
@@ -7,7 +7,7 @@ import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js';
@@ -11,7 +11,7 @@ index fe6ea7395fda29aa09c8caf03a063bdd5b7e7d2c..aad0b409b97bc0849a5f2d4e79cb4bae
/**
* Add all of the child routes that originate from the privacy route,
* regardless of whether the privacy section under basic or advanced.
-@@ -214,6 +214,7 @@ function createBrowserSettingsRoutes() {
+@@ -215,6 +215,7 @@ function createBrowserSettingsRoutes() {
//
}
}
diff --git a/patches/chrome-browser-resources-settings-settings.js.patch b/patches/chrome-browser-resources-settings-settings.ts.patch
similarity index 64%
rename from patches/chrome-browser-resources-settings-settings.js.patch
rename to patches/chrome-browser-resources-settings-settings.ts.patch
index 9f7d5f73fcc9..cad66a0328b4 100644
--- a/patches/chrome-browser-resources-settings-settings.js.patch
+++ b/patches/chrome-browser-resources-settings-settings.ts.patch
@@ -1,7 +1,7 @@
-diff --git a/chrome/browser/resources/settings/settings.js b/chrome/browser/resources/settings/settings.js
+diff --git a/chrome/browser/resources/settings/settings.ts b/chrome/browser/resources/settings/settings.ts
index 34a1c12ed105d6cbf2367e64596b836364c60d39..271e9e3bef62f8e56527e81eac1c4228d9788271 100644
---- a/chrome/browser/resources/settings/settings.js
-+++ b/chrome/browser/resources/settings/settings.js
+--- a/chrome/browser/resources/settings/settings.ts
++++ b/chrome/browser/resources/settings/settings.ts
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
diff --git a/patches/chrome-browser-resources-settings-site_settings_page-site_settings_page.js.patch b/patches/chrome-browser-resources-settings-site_settings_page-site_settings_page.js.patch
index b1911dc88eca..ddb32f15c1ba 100644
--- a/patches/chrome-browser-resources-settings-site_settings_page-site_settings_page.js.patch
+++ b/patches/chrome-browser-resources-settings-site_settings_page-site_settings_page.js.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/resources/settings/site_settings_page/site_settings_page.js b/chrome/browser/resources/settings/site_settings_page/site_settings_page.js
-index d4268da00a77db0b06a774608f53e6f23984f588..96186657e128e1501c90ef74f173b324119c5bee 100644
+index f815cfe64f8ada8276935e667ef12bbc67c09681..74ca5094e78db04ac61f33d2a24e2e856aa8b53c 100644
--- a/chrome/browser/resources/settings/site_settings_page/site_settings_page.js
+++ b/chrome/browser/resources/settings/site_settings_page/site_settings_page.js
@@ -8,6 +8,7 @@
diff --git a/patches/chrome-browser-resources-signin-profile_picker-profile_creation_flow-local_profile_customization.html.patch b/patches/chrome-browser-resources-signin-profile_picker-profile_creation_flow-local_profile_customization.html.patch
index e28969aadd25..03b5ed848948 100644
--- a/patches/chrome-browser-resources-signin-profile_picker-profile_creation_flow-local_profile_customization.html.patch
+++ b/patches/chrome-browser-resources-signin-profile_picker-profile_creation_flow-local_profile_customization.html.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/resources/signin/profile_picker/profile_creation_flow/local_profile_customization.html b/chrome/browser/resources/signin/profile_picker/profile_creation_flow/local_profile_customization.html
-index bbc4772a881ded6264dfd95ac61703929abc68b1..14ff65e950c73496d1e0fdbec1cf30e5eec76a84 100644
+index 5e033be42db2b47aec16490c836acfd5986431dc..7ca8bf10c3984732fb6d1f5b55d4d0276cd376f3 100644
--- a/chrome/browser/resources/signin/profile_picker/profile_creation_flow/local_profile_customization.html
+++ b/chrome/browser/resources/signin/profile_picker/profile_creation_flow/local_profile_customization.html
@@ -155,6 +155,7 @@
diff --git a/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.js.patch b/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.js.patch
deleted file mode 100644
index 06c8fecf2b7c..000000000000
--- a/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.js.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.js b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.js
-index a2fe0f3717984cb70c1a5f5791fb2391e17f6999..4cc12805525753d4bd2510555450487d7b1689ea 100644
---- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.js
-+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.js
-@@ -100,6 +100,7 @@ export class ProfilePickerMainViewElement extends
-
- this.manageProfilesBrowserProxy_ =
- ManageProfilesBrowserProxyImpl.getInstance();
-+ this.$$('#addProfile').style.borderRadius = '8px';
- }
-
- /** @override */
diff --git a/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.ts.patch b/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.ts.patch
new file mode 100644
index 000000000000..65284bd9c692
--- /dev/null
+++ b/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.ts.patch
@@ -0,0 +1,12 @@
+diff --git a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.ts b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.ts
+index e4f78ddff5b5c60f0c9b1bf1931c3c93a6dab515..b81549f506ec86a569bbf3f7150c3ebcee6e4b1b 100644
+--- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.ts
++++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.ts
+@@ -92,6 +92,7 @@ export class ProfilePickerMainViewElement extends
+ if (!isProfileCreationAllowed()) {
+ this.$.addProfile.style.display = 'none';
+ }
++ this.$.addProfile.style.borderRadius = '8px';
+ }
+
+ connectedCallback() {
diff --git a/patches/chrome-browser-shell_integration_linux.cc.patch b/patches/chrome-browser-shell_integration_linux.cc.patch
index 3d3e1baf9274..4b7554aaf9f4 100644
--- a/patches/chrome-browser-shell_integration_linux.cc.patch
+++ b/patches/chrome-browser-shell_integration_linux.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
-index 1e7552bf0bced3cf930abc547aefcf4c890d88e8..6d8375e081f1fefc1e975f119d5846e4d27f087d 100644
+index d0aeb82fd791510e80d5aed6ce623b3cd3f554f8..c349e430588cc2540c31a5f65b71b7d044260f16 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
-@@ -414,7 +414,7 @@ std::string GetIconName() {
+@@ -432,7 +432,7 @@ std::string GetIconName() {
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
return "google-chrome";
#else // BUILDFLAG(CHROMIUM_BRANDING)
diff --git a/patches/chrome-browser-sync-sync_service_factory.cc.patch b/patches/chrome-browser-sync-sync_service_factory.cc.patch
index b7bc37a6d573..4ea5cade100d 100644
--- a/patches/chrome-browser-sync-sync_service_factory.cc.patch
+++ b/patches/chrome-browser-sync-sync_service_factory.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/sync/sync_service_factory.cc b/chrome/browser/sync/sync_service_factory.cc
-index 256d3df7f98579bc488fe99c2863c1c5294afb7e..348bc5620ee92ad1359a6b16ff831b35feb5bb28 100644
+index 6be3927805b02e6ba802db5398bd822f2e7b1f68..a3c94c538e25f568aa9234e2623cc5084c474efe 100644
--- a/chrome/browser/sync/sync_service_factory.cc
+++ b/chrome/browser/sync/sync_service_factory.cc
@@ -171,7 +171,7 @@ std::unique_ptr BuildSyncService(
diff --git a/patches/chrome-browser-themes-theme_helper.h.patch b/patches/chrome-browser-themes-theme_helper.h.patch
index d3b20cda1f41..fc0b004d0ef3 100644
--- a/patches/chrome-browser-themes-theme_helper.h.patch
+++ b/patches/chrome-browser-themes-theme_helper.h.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/themes/theme_helper.h b/chrome/browser/themes/theme_helper.h
-index 28ca8e7dfacaea8873ecf60667b29b7551de504a..bbecbefdef3754d589f471057c63851062d08935 100644
+index faaf3c0c98c2edeeff3b06c5781a363b93ae1774..d0063c019a9e91c0c972ea45d37b664c2b2fd121 100644
--- a/chrome/browser/themes/theme_helper.h
+++ b/chrome/browser/themes/theme_helper.h
@@ -108,6 +108,7 @@ class ThemeHelper {
diff --git a/patches/chrome-browser-tracing-crash_service_uploader.cc.patch b/patches/chrome-browser-tracing-crash_service_uploader.cc.patch
index bf7b1b163def..82130d848df7 100644
--- a/patches/chrome-browser-tracing-crash_service_uploader.cc.patch
+++ b/patches/chrome-browser-tracing-crash_service_uploader.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/tracing/crash_service_uploader.cc b/chrome/browser/tracing/crash_service_uploader.cc
-index c3493840dd0bbb29daa4e90caf5b6dea0df134ab..7fe5489c3cd34dc4e5626743835eb93a1dcb6ad5 100644
+index 29f395ffb4104752953dcc5e1b2ab710a7cd47fa..e3d96304b1bd3495c9e341f719dd7f9607f3d2c3 100644
--- a/chrome/browser/tracing/crash_service_uploader.cc
+++ b/chrome/browser/tracing/crash_service_uploader.cc
@@ -42,7 +42,7 @@ using std::string;
diff --git a/patches/chrome-browser-ui-BUILD.gn.patch b/patches/chrome-browser-ui-BUILD.gn.patch
index c6c34c6a6b01..5fa44b4c68db 100644
--- a/patches/chrome-browser-ui-BUILD.gn.patch
+++ b/patches/chrome-browser-ui-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
-index ef291e5fc39d9e95d91dfbc530f024a97ceac9ee..a64ba3c4b0800bfe47aa83dc214540fd47951711 100644
+index bd9a9f7eeeefe537762517ba288da088b2c28417..b10c07f7ca2c363ddd1e7347634057eb8a27fb51 100644
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -621,6 +621,7 @@ static_library("ui") {
@@ -10,7 +10,7 @@ index ef291e5fc39d9e95d91dfbc530f024a97ceac9ee..a64ba3c4b0800bfe47aa83dc214540fd
# TODO(crbug/925153): Remove this circular dependency.
allow_circular_includes_from = [
-@@ -3460,10 +3461,13 @@ static_library("ui") {
+@@ -3511,10 +3512,13 @@ static_library("ui") {
]
deps += [ "//google_update" ]
} else {
diff --git a/patches/chrome-browser-ui-android-theme-java-src-org-chromium-chrome-browser-theme-ThemeUtils.java.patch b/patches/chrome-browser-ui-android-theme-java-src-org-chromium-chrome-browser-theme-ThemeUtils.java.patch
deleted file mode 100644
index 579d6e25e1c6..000000000000
--- a/patches/chrome-browser-ui-android-theme-java-src-org-chromium-chrome-browser-theme-ThemeUtils.java.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/chrome/browser/ui/android/theme/java/src/org/chromium/chrome/browser/theme/ThemeUtils.java b/chrome/browser/ui/android/theme/java/src/org/chromium/chrome/browser/theme/ThemeUtils.java
-index 44efb7f6334bfb598f076cc1f35c94dea5a94c17..3c397d3b48f1251534a512b42622eee6b10ff955 100644
---- a/chrome/browser/ui/android/theme/java/src/org/chromium/chrome/browser/theme/ThemeUtils.java
-+++ b/chrome/browser/ui/android/theme/java/src/org/chromium/chrome/browser/theme/ThemeUtils.java
-@@ -78,6 +78,7 @@ public class ThemeUtils {
- Resources res, @ColorInt int color, boolean isIncognito) {
- // Text box color on default toolbar background in incognito mode is a pre-defined
- // color. We calculate the equivalent opaque color from the pre-defined translucent color.
-+ if (isIncognito) {return ApiCompatibilityUtils.getColor(res, R.color.toolbar_text_box_background_incognito);}
- if (isIncognito) {
- final int overlayColor = ApiCompatibilityUtils.getColor(
- res, R.color.toolbar_text_box_background_incognito);
diff --git a/patches/chrome-browser-ui-android-toolbar-BUILD.gn.patch b/patches/chrome-browser-ui-android-toolbar-BUILD.gn.patch
index c1512b409c2e..9fd265efefba 100644
--- a/patches/chrome-browser-ui-android-toolbar-BUILD.gn.patch
+++ b/patches/chrome-browser-ui-android-toolbar-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/ui/android/toolbar/BUILD.gn b/chrome/browser/ui/android/toolbar/BUILD.gn
-index 8e6034ff20a453d31efae3ee24eab91129651ce4..26b97d098294ca0933807851c20311d5c9e8bf71 100644
+index 4233b54a771013d12d9b54c33aee138edbdbed91..2cd2b7ac31268be0f443e6aa5a5265c668586ec5 100644
--- a/chrome/browser/ui/android/toolbar/BUILD.gn
+++ b/chrome/browser/ui/android/toolbar/BUILD.gn
@@ -95,6 +95,7 @@ android_library("java") {
diff --git a/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarPhone.java.patch b/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarPhone.java.patch
index df856f6a12ae..394ed03a21ff 100644
--- a/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarPhone.java.patch
+++ b/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarPhone.java.patch
@@ -1,16 +1,16 @@
diff --git a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java
-index 29a00096249be307d05b9d46ec6b4663a054cf32..1343c8a933b64ad887dfd137087f60a3ef409aca 100644
+index 2f256b5c415d929755b2572f68ca5c6a6802f014..50133e4346799f7cc240440ff3be696fe5344443 100644
--- a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java
+++ b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java
-@@ -406,6 +406,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC
- if (mCurrentLocationBarColor == color) return;
+@@ -408,6 +408,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC
mCurrentLocationBarColor = color;
+ // TODO(https://crbug.com/1239289): Change back to #setTint once our min API level is 23.
mLocationBarBackground.setColorFilter(color, PorterDuff.Mode.SRC_IN);
+ BraveToolbarLayout.class.cast(this).updateModernLocationBarColorImpl(color);
}
/**
-@@ -523,6 +524,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC
+@@ -525,6 +526,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC
EventConstants.PARTNER_HOME_PAGE_BUTTON_PRESSED);
}
}
@@ -18,19 +18,21 @@ index 29a00096249be307d05b9d46ec6b4663a054cf32..1343c8a933b64ad887dfd137087f60a3
}
@Override
-@@ -692,6 +694,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC
- * @return The right bounds of the location bar after accounting for any visible left buttons.
+@@ -699,7 +701,8 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC
+ * @return The right bounds of the location bar after accounting for any visible right buttons.
*/
private int getBoundsAfterAccountingForRightButtons() {
-+ if (true) return Math.max(mToolbarSidePadding, BraveToolbarLayout.class.cast(this).getBoundsAfterAccountingForRightButtonsImpl(mToolbarButtonsContainer));
+- if (mStartSurfaceScrollFraction == 1.0f) return mToolbarSidePadding;
++ if (true) return Math.max(mToolbarSidePadding, BraveToolbarLayout.class.cast(this).getBoundsAfterAccountingForRightButtonsImpl(mToolbarButtonsContainer));
++ if (mStartSurfaceScrollFraction == 1.0f) return mToolbarSidePadding;
return Math.max(mToolbarSidePadding, mToolbarButtonsContainer.getMeasuredWidth());
}
-@@ -2130,6 +2133,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC
+@@ -2119,6 +2122,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC
} else {
populateUrlClearExpansionAnimatorSet(animators);
}
-+ BraveToolbarLayout.class.cast(this).populateUrlAnimatorSetImpl(showExpandedState, URL_FOCUS_TOOLBAR_BUTTONS_DURATION_MS, URL_CLEAR_FOCUS_TABSTACK_DELAY_MS, animators);
++ BraveToolbarLayout.class.cast(this).populateUrlAnimatorSetImpl(hasFocus, URL_FOCUS_TOOLBAR_BUTTONS_DURATION_MS, URL_CLEAR_FOCUS_TABSTACK_DELAY_MS, animators);
mUrlFocusLayoutAnimator = new AnimatorSet();
mUrlFocusLayoutAnimator.playTogether(animators);
diff --git a/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarTablet.java.patch b/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarTablet.java.patch
index b1e9be1da30d..8dd74f8eb357 100644
--- a/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarTablet.java.patch
+++ b/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarTablet.java.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarTablet.java b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarTablet.java
-index 18806a1d7d5edb7a61a59b01c9a6485d25295aa7..1b9491d2b32cf05d673e7e3e77843dff79a46301 100644
+index e081307e04b78e7c7f7187f3d89ffe8b6450139c..655dcc674086087a822412282ab2311fe6919597 100644
--- a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarTablet.java
+++ b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarTablet.java
@@ -326,10 +326,12 @@ public class ToolbarTablet extends ToolbarLayout
diff --git a/patches/chrome-browser-ui-browser.cc.patch b/patches/chrome-browser-ui-browser.cc.patch
index bf4a083faa99..31c708d2b5fc 100644
--- a/patches/chrome-browser-ui-browser.cc.patch
+++ b/patches/chrome-browser-ui-browser.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
-index 8fdddbadf5e9a202fc20ac9e326a4631f91f4a0d..4c1cd2bef9d9fb7c4fa17ec6733bec4a89a8d717 100644
+index 7e29403699d56081424643bd143d0f255c8e8e73..6d7ed5d35424786b54fe43077205d6653a73d7db 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
-@@ -440,6 +440,7 @@ Browser::CreationStatus Browser::GetCreationStatusForProfile(Profile* profile) {
+@@ -443,6 +443,7 @@ Browser::CreationStatus Browser::GetCreationStatusForProfile(Profile* profile) {
// static
Browser* Browser::Create(const CreateParams& params) {
CHECK_EQ(CreationStatus::kOk, GetCreationStatusForProfile(params.profile));
@@ -10,12 +10,12 @@ index 8fdddbadf5e9a202fc20ac9e326a4631f91f4a0d..4c1cd2bef9d9fb7c4fa17ec6733bec4a
return new Browser(params);
}
-@@ -451,7 +452,7 @@ Browser::Browser(const CreateParams& params)
+@@ -454,7 +455,7 @@ Browser::Browser(const CreateParams& params)
tab_strip_model_delegate_(
std::make_unique(this)),
tab_strip_model_(
- std::make_unique(tab_strip_model_delegate_.get(),
+ std::make_unique(tab_strip_model_delegate_.get(),
params.profile)),
- app_name_(params.app_name),
- is_trusted_source_(params.trusted_source),
+ tab_menu_model_delegate_(
+ std::make_unique(this)),
diff --git a/patches/chrome-browser-ui-browser.h.patch b/patches/chrome-browser-ui-browser.h.patch
index 83a1ad4a0968..3e2ba9b3a106 100644
--- a/patches/chrome-browser-ui-browser.h.patch
+++ b/patches/chrome-browser-ui-browser.h.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
-index 2908b4b70815d02afff0c78c1aa54ab74c79dd83..2e994890ea12484a2dc6539a87d8f51afe0fca80 100644
+index 7649c59dde3f58b5ec153eb6146b159cfc190975..6c22f16e31e2c048e3fecfe02a678151c32789aa 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
-@@ -709,6 +709,7 @@ class Browser : public TabStripModelObserver,
+@@ -717,6 +717,7 @@ class Browser : public TabStripModelObserver,
StatusBubble* GetStatusBubbleForTesting();
diff --git a/patches/chrome-browser-ui-chrome_pages.cc.patch b/patches/chrome-browser-ui-chrome_pages.cc.patch
index cacd5058be96..6b1296f824e0 100644
--- a/patches/chrome-browser-ui-chrome_pages.cc.patch
+++ b/patches/chrome-browser-ui-chrome_pages.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/chrome_pages.cc b/chrome/browser/ui/chrome_pages.cc
-index 021245a4916a823b070bf60fce3be3cdfebe393f..207fbd5a9d244a4cb4195214697f4c649544ab93 100644
+index c6e71c5e8ec5f64cf655b96e0c3dcf13746d6215..045583ff966a93505720109e8adc1715c32d48ba 100644
--- a/chrome/browser/ui/chrome_pages.cc
+++ b/chrome/browser/ui/chrome_pages.cc
-@@ -303,7 +303,7 @@ void ShowSlow(Browser* browser) {
+@@ -305,7 +305,7 @@ void ShowSlow(Browser* browser) {
#endif
}
diff --git a/patches/chrome-browser-ui-cocoa-main_menu_builder.mm.patch b/patches/chrome-browser-ui-cocoa-main_menu_builder.mm.patch
index a173d2849226..014705fd7fc6 100644
--- a/patches/chrome-browser-ui-cocoa-main_menu_builder.mm.patch
+++ b/patches/chrome-browser-ui-cocoa-main_menu_builder.mm.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/ui/cocoa/main_menu_builder.mm b/chrome/browser/ui/cocoa/main_menu_builder.mm
-index 7270fa11ccf54f028c3dfbb39ad3c1f470ff42b3..316e9ce1967ec32383990ff023a183561061aa94 100644
+index ed29003a7019dd8e208cb64c359aa3c285bf2588..3afbb964f501ee1eca4628b3d0e3167b6eb717bd 100644
--- a/chrome/browser/ui/cocoa/main_menu_builder.mm
+++ b/chrome/browser/ui/cocoa/main_menu_builder.mm
@@ -107,6 +107,7 @@ base::scoped_nsobject BuildFileMenu(
@@ -10,7 +10,7 @@ index 7270fa11ccf54f028c3dfbb39ad3c1f470ff42b3..316e9ce1967ec32383990ff023a18356
Item(IDS_REOPEN_CLOSED_TABS_MAC)
.command_id(IDC_RESTORE_TAB)
.remove_if(is_pwa),
-@@ -481,6 +482,7 @@ base::scoped_nsobject BuildHelpMenu(
+@@ -472,6 +473,7 @@ base::scoped_nsobject BuildHelpMenu(
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
Item(IDS_FEEDBACK_MAC).command_id(IDC_FEEDBACK),
#endif
diff --git a/patches/chrome-browser-ui-startup-startup_browser_creator_impl.cc.patch b/patches/chrome-browser-ui-startup-startup_browser_creator_impl.cc.patch
index 847638a39940..292a1a0764b9 100644
--- a/patches/chrome-browser-ui-startup-startup_browser_creator_impl.cc.patch
+++ b/patches/chrome-browser-ui-startup-startup_browser_creator_impl.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
-index 8e9d983d675acd9e63e7313b6c3f8fb4cd0fc8df..56df96176643f08ef70a28420940c727b6971244 100644
+index 6b7b6d500ca65276f1f399107dfa629941cfbfdd..c2b81c7f9ba20e8bae36936c60efc1cd7a6b1517 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
-@@ -378,6 +378,7 @@ void StartupBrowserCreatorImpl::DetermineURLsAndLaunch(
+@@ -375,6 +375,7 @@ void StartupBrowserCreatorImpl::DetermineURLsAndLaunch(
#if !BUILDFLAG(IS_CHROMEOS_ASH)
welcome_enabled =
welcome::IsEnabled(profile_) && welcome::HasModulesToShow(profile_);
diff --git a/patches/chrome-browser-ui-startup-startup_tab_provider.cc.patch b/patches/chrome-browser-ui-startup-startup_tab_provider.cc.patch
index 152e082f138d..daed08f4f445 100644
--- a/patches/chrome-browser-ui-startup-startup_tab_provider.cc.patch
+++ b/patches/chrome-browser-ui-startup-startup_tab_provider.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/startup/startup_tab_provider.cc b/chrome/browser/ui/startup/startup_tab_provider.cc
-index 440876d5ed95095ee4658923050803e4d0f1b25e..79eacba865d8e228dda69143342e99f176a5442a 100644
+index bc8310e3380d7f699a494c7e2a59370ce9ec3070..1deacc6ff7af6d0922095a73a910d8f82e560188 100644
--- a/chrome/browser/ui/startup/startup_tab_provider.cc
+++ b/chrome/browser/ui/startup/startup_tab_provider.cc
-@@ -142,6 +142,7 @@ StartupTabs StartupTabProviderImpl::GetPostCrashTabs(
+@@ -149,6 +149,7 @@ StartupTabs StartupTabProviderImpl::GetNewFeaturesTabs(
bool StartupTabProviderImpl::CanShowWelcome(bool is_signin_allowed,
bool is_supervised_user,
bool is_force_signin_enabled) {
diff --git a/patches/chrome-browser-ui-tab_helpers.cc.patch b/patches/chrome-browser-ui-tab_helpers.cc.patch
index 16a951d9d746..f80989db9599 100644
--- a/patches/chrome-browser-ui-tab_helpers.cc.patch
+++ b/patches/chrome-browser-ui-tab_helpers.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
-index ed24f9a0b67a342284fa9f09035f51c3bbab161e..73f63faf5b32ef76dd2d3c1e96a0f8be0da5e1a5 100644
+index a9b64e239f17848f4245e986695df52dd7b37961..e7b7eb44cb2499cd1962180f309b142b60a85017 100644
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
-@@ -499,4 +499,5 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
+@@ -501,4 +501,5 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
// This is common code for all of us. PLEASE DO YOUR PART to keep it tidy and
// organized.
diff --git a/patches/chrome-browser-ui-tabs-tab_strip_model.h.patch b/patches/chrome-browser-ui-tabs-tab_strip_model.h.patch
index d2441e413e3d..e3c7fcd5f7d7 100644
--- a/patches/chrome-browser-ui-tabs-tab_strip_model.h.patch
+++ b/patches/chrome-browser-ui-tabs-tab_strip_model.h.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/tabs/tab_strip_model.h b/chrome/browser/ui/tabs/tab_strip_model.h
-index f96f9080d0c84235c45e4ef377278d392739322c..fba4f16f60f2446a6a7da7873da199d4e661f3c0 100644
+index 6437c072aeea42887b8bd6d10afb426ae11d458e..ae17d7b2601216d768fa3eca0d702defe4e50bc6 100644
--- a/chrome/browser/ui/tabs/tab_strip_model.h
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
-@@ -602,6 +602,7 @@ class TabStripModel : public TabGroupController {
+@@ -643,6 +643,7 @@ class TabStripModel : public TabGroupController {
// Serialise this object into a trace.
void WriteIntoTrace(perfetto::TracedValue context) const;
diff --git a/patches/chrome-browser-ui-toolbar-chrome_location_bar_model_delegate.h.patch b/patches/chrome-browser-ui-toolbar-chrome_location_bar_model_delegate.h.patch
index 0fa8614fdc03..1f71ff7f4541 100644
--- a/patches/chrome-browser-ui-toolbar-chrome_location_bar_model_delegate.h.patch
+++ b/patches/chrome-browser-ui-toolbar-chrome_location_bar_model_delegate.h.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h b/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h
-index 1fa9f791678d01f09fb96f535268deff947d9c22..24340c8f7436a19ee06272f195e21a0e481ec604 100644
+index a5f68db3c2cf7dd75c9aa6ca2c22d58d5860a9ea..0655a1de151e51fc1ac463d90d89e37f747d5618 100644
--- a/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h
+++ b/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h
-@@ -58,6 +58,7 @@ class ChromeLocationBarModelDelegate : public LocationBarModelDelegate {
+@@ -60,6 +60,7 @@ class ChromeLocationBarModelDelegate : public LocationBarModelDelegate {
// Helper method to get the navigation entry from the navigation controller.
content::NavigationEntry* GetNavigationEntry() const;
diff --git a/patches/chrome-browser-ui-views-bookmarks-bookmark_bubble_view.cc.patch b/patches/chrome-browser-ui-views-bookmarks-bookmark_bubble_view.cc.patch
index 7c7fb33fa3b5..0fea5f7cc1c3 100644
--- a/patches/chrome-browser-ui-views-bookmarks-bookmark_bubble_view.cc.patch
+++ b/patches/chrome-browser-ui-views-bookmarks-bookmark_bubble_view.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
-index ba2c52802e170e37748c89c9f554cc365bdba982..69e290c79f87e0aa502cd9196a04f9abd90bfe5b 100644
+index 2731df13bb49c55e27e4f1e0fa29a50e136742ed..7389dad7ddbc08b36d3ee5aebdc4ef2bb900ad66 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
@@ -227,6 +227,7 @@ void BookmarkBubbleView::ShowBubble(
diff --git a/patches/chrome-browser-ui-views-download-download_item_view.h.patch b/patches/chrome-browser-ui-views-download-download_item_view.h.patch
index 066053a0b4c6..363aaf3e4076 100644
--- a/patches/chrome-browser-ui-views-download-download_item_view.h.patch
+++ b/patches/chrome-browser-ui-views-download-download_item_view.h.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/views/download/download_item_view.h b/chrome/browser/ui/views/download/download_item_view.h
-index 406c8b0c1511ec17534ab07ff294f54f8bf1a15b..5a91839bdae28774c78778e64a50cc67e06b552a 100644
+index 3c5253624946d3ddd9fcf96f379406bd741b2189..7884e8df3340f8b7659405635b2abbe7d46f0ec5 100644
--- a/chrome/browser/ui/views/download/download_item_view.h
+++ b/chrome/browser/ui/views/download/download_item_view.h
-@@ -115,6 +115,7 @@ class DownloadItemView : public views::View,
+@@ -118,6 +118,7 @@ class DownloadItemView : public views::View,
void OnPaintBackground(gfx::Canvas* canvas) override;
void OnPaint(gfx::Canvas* canvas) override;
void OnThemeChanged() override;
diff --git a/patches/chrome-browser-ui-views-frame-browser_view.h.patch b/patches/chrome-browser-ui-views-frame-browser_view.h.patch
index 178635585ecd..168048d48aa3 100644
--- a/patches/chrome-browser-ui-views-frame-browser_view.h.patch
+++ b/patches/chrome-browser-ui-views-frame-browser_view.h.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/views/frame/browser_view.h b/chrome/browser/ui/views/frame/browser_view.h
-index 02f0019d7d3244f19a0bdf729a757b0142eab9fa..034c0e51f0d9a20675adac48b2c49d681391027a 100644
+index 021f04720e56761bcc227b6bd12fb9e23fcbdff1..dd26f1c4f88ebd08658013c7e4b23325d91b3c38 100644
--- a/chrome/browser/ui/views/frame/browser_view.h
+++ b/chrome/browser/ui/views/frame/browser_view.h
-@@ -661,6 +661,7 @@ class BrowserView : public BrowserWindow,
+@@ -668,6 +668,7 @@ class BrowserView : public BrowserWindow,
return accessibility_focus_highlight_.get();
}
diff --git a/patches/chrome-browser-ui-views-location_bar-location_bar_view.cc.patch b/patches/chrome-browser-ui-views-location_bar-location_bar_view.cc.patch
index bf0d465e82e8..04205ccf8f14 100644
--- a/patches/chrome-browser-ui-views-location_bar-location_bar_view.cc.patch
+++ b/patches/chrome-browser-ui-views-location_bar-location_bar_view.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
-index ca31e380a593926dd58ca3342452e7e99c25c278..02d016eb54a943e67331cd2bec8b0583200d3470 100644
+index d355c3fb8b9096acd4b11b94fac5ac3ec65c71d0..426a35defbcac7f712feedaf0cf69f842b09c703 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
-@@ -652,6 +652,7 @@ void LocationBarView::Layout() {
+@@ -661,6 +661,7 @@ void LocationBarView::Layout() {
}
};
diff --git a/patches/chrome-browser-ui-views-location_bar-location_bar_view.h.patch b/patches/chrome-browser-ui-views-location_bar-location_bar_view.h.patch
index 34644f106eca..3dfcb0544ba2 100644
--- a/patches/chrome-browser-ui-views-location_bar-location_bar_view.h.patch
+++ b/patches/chrome-browser-ui-views-location_bar-location_bar_view.h.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
-index a62759d3a7aaa42edcfb7c4452891c97044c89fe..585cd339fb6b151b35479e067251b895ea1123a3 100644
+index 26cbce1542b4818bf5084c037d4de98240c05166..311163b3378d4105317d69fc346ecf4a46033364 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
-@@ -109,6 +109,7 @@ class LocationBarView : public LocationBar,
+@@ -111,6 +111,7 @@ class LocationBarView : public LocationBar,
int GetBorderRadius() const;
// Initializes the LocationBarView.
@@ -10,7 +10,7 @@ index a62759d3a7aaa42edcfb7c4452891c97044c89fe..585cd339fb6b151b35479e067251b895
void Init();
// True if this instance has been initialized by calling Init, which can only
-@@ -168,6 +169,7 @@ class LocationBarView : public LocationBar,
+@@ -170,6 +171,7 @@ class LocationBarView : public LocationBar,
// Updates the controller, and, if |contents| is non-null, restores saved
// state that the tab holds.
@@ -18,7 +18,7 @@ index a62759d3a7aaa42edcfb7c4452891c97044c89fe..585cd339fb6b151b35479e067251b895
void Update(content::WebContents* contents);
// Clears the location bar's state for |contents|.
-@@ -254,6 +256,7 @@ class LocationBarView : public LocationBar,
+@@ -260,6 +262,7 @@ class LocationBarView : public LocationBar,
std::vector& GetContentSettingViewsForTest() {
return content_setting_views_;
}
diff --git a/patches/chrome-browser-ui-views-location_bar-location_icon_view.cc.patch b/patches/chrome-browser-ui-views-location_bar-location_icon_view.cc.patch
index db9ba659d241..f9b37569ce32 100644
--- a/patches/chrome-browser-ui-views-location_bar-location_icon_view.cc.patch
+++ b/patches/chrome-browser-ui-views-location_bar-location_icon_view.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/ui/views/location_bar/location_icon_view.cc b/chrome/browser/ui/views/location_bar/location_icon_view.cc
-index e9bcbf5b4827b63c5dd2597649b035fa33fd5de8..536ef3326e4ef953823685789643793ab9642387 100644
+index 1bf3bb68deea2b9d5e1b3c9ce467f48f7014785e..f5239e6aad702b1ebbe253ee50e636dba0a6667e 100644
--- a/chrome/browser/ui/views/location_bar/location_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc
@@ -145,6 +145,7 @@ bool LocationIconView::GetShowText() const {
diff --git a/patches/chrome-browser-ui-views-outdated_upgrade_bubble_view.cc.patch b/patches/chrome-browser-ui-views-outdated_upgrade_bubble_view.cc.patch
index fde57ab48581..1f15403967c6 100644
--- a/patches/chrome-browser-ui-views-outdated_upgrade_bubble_view.cc.patch
+++ b/patches/chrome-browser-ui-views-outdated_upgrade_bubble_view.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc b/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
-index 884c739a0cf60db19aba93b418f32949cfa1bc78..00cf052f0ec66db43aeec72ebd869359e2dd3b29 100644
+index e9ff57eb7d4d57c0d20b259c0b0c571a4e1b3a81..870376d33740a6b19f921b92fc3bf3a51c0d0396 100644
--- a/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
+++ b/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
@@ -37,8 +37,11 @@ namespace {
diff --git a/patches/chrome-browser-ui-views-permission_bubble-permission_prompt_bubble_view.cc.patch b/patches/chrome-browser-ui-views-permission_bubble-permission_prompt_bubble_view.cc.patch
index 2c4ee3b27c34..a6c59d93cf47 100644
--- a/patches/chrome-browser-ui-views-permission_bubble-permission_prompt_bubble_view.cc.patch
+++ b/patches/chrome-browser-ui-views-permission_bubble-permission_prompt_bubble_view.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/ui/views/permission_bubble/permission_prompt_bubble_view.cc b/chrome/browser/ui/views/permission_bubble/permission_prompt_bubble_view.cc
-index 162023289249105872fa70fc7b41a4272b564e21..909d23aba6f48fc25d1d651e0ac13118caa1e4af 100644
+index 2068a1131186e99fc9f675e2dc9f4bc2cc4f135d..6124ccd39eacac4c46f4a89d9fe4622ca4dd59be 100644
--- a/chrome/browser/ui/views/permission_bubble/permission_prompt_bubble_view.cc
+++ b/chrome/browser/ui/views/permission_bubble/permission_prompt_bubble_view.cc
@@ -136,6 +136,7 @@ PermissionPromptBubbleView::PermissionPromptBubbleView(
diff --git a/patches/chrome-browser-ui-views-tabs-tab.cc.patch b/patches/chrome-browser-ui-views-tabs-tab.cc.patch
index 0b13289c374e..9637a5482d44 100644
--- a/patches/chrome-browser-ui-views-tabs-tab.cc.patch
+++ b/patches/chrome-browser-ui-views-tabs-tab.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
-index e04fcc294cfc07d03f7e7c22eaeb3d2a14e15c25..847f982210c5780d12033a9dfe046d848154f38c 100644
+index db85413cdc25fe981976c72c68a143240b36a71b..766ed626913d9363880185a097f28b5d2759e591 100644
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
-@@ -385,6 +385,7 @@ void Tab::Layout() {
+@@ -384,6 +384,7 @@ void Tab::Layout() {
int title_right = contents_rect.right();
if (showing_alert_indicator_) {
title_right = alert_indicator_->x() - after_title_padding;
diff --git a/patches/chrome-browser-ui-views-tabs-tab_hover_card_bubble_view.h.patch b/patches/chrome-browser-ui-views-tabs-tab_hover_card_bubble_view.h.patch
index 44beef49f956..ee7eabe51476 100644
--- a/patches/chrome-browser-ui-views-tabs-tab_hover_card_bubble_view.h.patch
+++ b/patches/chrome-browser-ui-views-tabs-tab_hover_card_bubble_view.h.patch
@@ -1,12 +1,12 @@
diff --git a/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.h b/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.h
-index 3109479de3535e260e8cfa8b8e59101250441a04..e5f78641afefcb192b6d02311ec9212d7a67c50a 100644
+index 87052f25230d34e62c914a1d09b3eef46924d392..693d3dd6f0072642ddb86fec1f4380602374fa64 100644
--- a/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.h
+++ b/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.h
-@@ -60,6 +60,7 @@ class TabHoverCardBubbleView : public views::BubbleDialogDelegateView {
+@@ -61,6 +61,7 @@ class TabHoverCardBubbleView : public views::BubbleDialogDelegateView {
// available, or `absl::nullopt` to disable crossfades entirely.
static absl::optional GetPreviewImageCrossfadeStart();
+ BRAVE_TAB_HOVER_CARD_BUBBLE_VIEW_H_
private:
- friend class TabHoverCardBubbleViewBrowserTest;
- friend class TabHoverCardBubbleViewInteractiveUiTest;
+ class FadeLabel;
+ class ThumbnailView;
diff --git a/patches/chrome-browser-ui-views-tabs-tab_style_views.cc.patch b/patches/chrome-browser-ui-views-tabs-tab_style_views.cc.patch
index 76aca37470c5..a6d43f60d62f 100644
--- a/patches/chrome-browser-ui-views-tabs-tab_style_views.cc.patch
+++ b/patches/chrome-browser-ui-views-tabs-tab_style_views.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/views/tabs/tab_style_views.cc b/chrome/browser/ui/views/tabs/tab_style_views.cc
-index aa22593d7e38b10444243991a37d832f6aecfb4a..e131e92167e3ac81007cc9e253b32baac38ec0f1 100644
+index ab8d254e7bd9aff3d74201ce0e5c75b9418e6e6e..ebf07aa0a7a1a5567b968ffe1eaba59509959ade 100644
--- a/chrome/browser/ui/views/tabs/tab_style_views.cc
+++ b/chrome/browser/ui/views/tabs/tab_style_views.cc
-@@ -68,6 +68,7 @@ class GM2TabStyle : public TabStyleViews {
+@@ -69,6 +69,7 @@ class GM2TabStyle : public TabStyleViews {
void HideHover(HideHoverStyle style) override;
private:
@@ -10,7 +10,7 @@ index aa22593d7e38b10444243991a37d832f6aecfb4a..e131e92167e3ac81007cc9e253b32baa
// Gets the bounds for the leading and trailing separators for a tab.
SeparatorBounds GetSeparatorBounds(float scale) const;
-@@ -282,6 +283,7 @@ SkPath GM2TabStyle::GetPath(PathType path_type,
+@@ -283,6 +284,7 @@ SkPath GM2TabStyle::GetPath(PathType path_type,
const ShapeModifier shape_modifier = GetShapeModifier(path_type);
const bool extend_left_to_bottom = shape_modifier & kNoLowerLeftArc;
const bool extend_right_to_bottom = shape_modifier & kNoLowerRightArc;
@@ -18,7 +18,7 @@ index aa22593d7e38b10444243991a37d832f6aecfb4a..e131e92167e3ac81007cc9e253b32baa
SkPath path;
-@@ -535,7 +537,7 @@ TabStyle::SeparatorBounds GM2TabStyle::GetSeparatorBounds(float scale) const {
+@@ -536,7 +538,7 @@ TabStyle::SeparatorBounds GM2TabStyle::GetSeparatorBounds(float scale) const {
separator_bounds.leading =
gfx::RectF(aligned_bounds.x() + corner_radius,
aligned_bounds.y() +
@@ -27,7 +27,7 @@ index aa22593d7e38b10444243991a37d832f6aecfb4a..e131e92167e3ac81007cc9e253b32baa
separator_size.width(), separator_size.height());
separator_bounds.trailing = separator_bounds.leading;
-@@ -898,12 +900,16 @@ void GM2TabStyle::PaintSeparators(gfx::Canvas* canvas) const {
+@@ -899,12 +901,16 @@ void GM2TabStyle::PaintSeparators(gfx::Canvas* canvas) const {
SK_AlphaOPAQUE));
};
diff --git a/patches/chrome-browser-ui-views-toolbar-toolbar_view.cc.patch b/patches/chrome-browser-ui-views-toolbar-toolbar_view.cc.patch
index 3e732241809e..8a3a1e9822df 100644
--- a/patches/chrome-browser-ui-views-toolbar-toolbar_view.cc.patch
+++ b/patches/chrome-browser-ui-views-toolbar-toolbar_view.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc
-index 9fe383741657c10916b0a706e7ec2a04e15227b0..0e190fa54842101dbb25559a65c39de95998063c 100644
+index 7bc5cd3dabf7d2d4f1d59c482a21c5be4167bed2..4b93fb9ca279be0dfd546c9b769a134bf3700453 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
-@@ -343,6 +343,7 @@ void ToolbarView::Init() {
+@@ -346,6 +346,7 @@ void ToolbarView::Init() {
} else {
// TODO(crbug.com/932818): Remove this once the
// |kAutofillEnableToolbarStatusChip| is fully launched.
diff --git a/patches/chrome-browser-ui-views-translate-translate_bubble_view.cc.patch b/patches/chrome-browser-ui-views-translate-translate_bubble_view.cc.patch
index a4d2ce9148d1..e8809ea11a7f 100644
--- a/patches/chrome-browser-ui-views-translate-translate_bubble_view.cc.patch
+++ b/patches/chrome-browser-ui-views-translate-translate_bubble_view.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/views/translate/translate_bubble_view.cc b/chrome/browser/ui/views/translate/translate_bubble_view.cc
-index 5afc76b3064ecea23db9c9863128d8a04753e2d1..4a20f6c66ed23500b9fe558f3064fdbfe250f641 100644
+index cf46bdaa49443a040d7e30c59847fffe4b808105..752c38f128848bfe0ef8f0320663b97917cbf2cf 100644
--- a/chrome/browser/ui/views/translate/translate_bubble_view.cc
+++ b/chrome/browser/ui/views/translate/translate_bubble_view.cc
-@@ -184,7 +184,7 @@ views::Widget* TranslateBubbleView::ShowBubble(
+@@ -204,7 +204,7 @@ views::Widget* TranslateBubbleView::ShowBubble(
source_language, target_language));
std::unique_ptr model(
new TranslateBubbleModelImpl(step, std::move(ui_delegate)));
diff --git a/patches/chrome-browser-ui-views-translate-translate_bubble_view.h.patch b/patches/chrome-browser-ui-views-translate-translate_bubble_view.h.patch
index b630e0f875af..90920347e137 100644
--- a/patches/chrome-browser-ui-views-translate-translate_bubble_view.h.patch
+++ b/patches/chrome-browser-ui-views-translate-translate_bubble_view.h.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/views/translate/translate_bubble_view.h b/chrome/browser/ui/views/translate/translate_bubble_view.h
-index f8685459a875480b5b428bd04a859210316139df..d8ff61490ce2c1c5460a31a485cf024c01123e7c 100644
+index 250d5f6fbf6719e1c3b9a206134d12e78e1f2c41..400573ff3b16740e8934544fe66ccc35e5fc4ec0 100644
--- a/chrome/browser/ui/views/translate/translate_bubble_view.h
+++ b/chrome/browser/ui/views/translate/translate_bubble_view.h
-@@ -94,6 +94,7 @@ class TranslateBubbleView : public LocationBarBubbleDelegateView,
+@@ -118,6 +118,7 @@ class TranslateBubbleView : public LocationBarBubbleDelegateView,
// Returns the current view state.
TranslateBubbleModel::ViewState GetViewState() const;
diff --git a/patches/chrome-browser-ui-webui-bookmarks-bookmarks_ui.cc.patch b/patches/chrome-browser-ui-webui-bookmarks-bookmarks_ui.cc.patch
index d83f819d1459..60710828c1ab 100644
--- a/patches/chrome-browser-ui-webui-bookmarks-bookmarks_ui.cc.patch
+++ b/patches/chrome-browser-ui-webui-bookmarks-bookmarks_ui.cc.patch
@@ -1,10 +1,10 @@
diff --git a/chrome/browser/ui/webui/bookmarks/bookmarks_ui.cc b/chrome/browser/ui/webui/bookmarks/bookmarks_ui.cc
-index 2009c2b66f1b2d5b9e13d10ba0bb1b92c189372b..fcb16b0a2806144fb0bd37b20b93a25d96253c52 100644
+index 54fe2e48cde408898820773ba74e4c9185de98c8..847c0d2874271bd852589e0a0fe38a9be4d19729 100644
--- a/chrome/browser/ui/webui/bookmarks/bookmarks_ui.cc
+++ b/chrome/browser/ui/webui/bookmarks/bookmarks_ui.cc
-@@ -129,6 +129,7 @@ content::WebUIDataSource* CreateBookmarksUIHTMLSource(Profile* profile) {
- for (const auto& str : kStrings)
- AddLocalizedString(source, str.name, str.id);
+@@ -135,6 +135,7 @@ content::WebUIDataSource* CreateBookmarksUIHTMLSource(Profile* profile) {
+ ? "enable-branding-update"
+ : "");
+ BRAVE_CREATE_BOOKMARKS_UI_HTML_SOURCE
return source;
diff --git a/patches/chrome-browser-ui-webui-chrome_web_ui_controller_factory.cc.patch b/patches/chrome-browser-ui-webui-chrome_web_ui_controller_factory.cc.patch
index 1f57850f963f..17982d898319 100644
--- a/patches/chrome-browser-ui-webui-chrome_web_ui_controller_factory.cc.patch
+++ b/patches/chrome-browser-ui-webui-chrome_web_ui_controller_factory.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
-index 44cbaff02deaf67947ce8be78fd0146b94e9f547..d51bb436a5843e33896757295d5c5e4d1b1bd234 100644
+index c6ae76bc4ad61d7daa56cb0eb5f81336c24126dc..05d5b5c65312857b22cab836108edca4fedf511d 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
-@@ -1190,6 +1190,7 @@ void ChromeWebUIControllerFactory::GetFaviconForURL(
+@@ -1206,6 +1206,7 @@ void ChromeWebUIControllerFactory::GetFaviconForURL(
// static
ChromeWebUIControllerFactory* ChromeWebUIControllerFactory::GetInstance() {
diff --git a/patches/chrome-browser-ui-webui-downloads-downloads_ui.cc.patch b/patches/chrome-browser-ui-webui-downloads-downloads_ui.cc.patch
index 97c03fc76926..99a18c3758b1 100644
--- a/patches/chrome-browser-ui-webui-downloads-downloads_ui.cc.patch
+++ b/patches/chrome-browser-ui-webui-downloads-downloads_ui.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/webui/downloads/downloads_ui.cc b/chrome/browser/ui/webui/downloads/downloads_ui.cc
-index 27a60ca6dba52d5a86bc1cee2b46ef7859f02c26..72117c6a080bb7908ced24dc40496763ed688635 100644
+index 8f25f8c270ba81519f792796af24e0f337d089d8..421aab10c73938732a73002f8c506a89d5a908ec 100644
--- a/chrome/browser/ui/webui/downloads/downloads_ui.cc
+++ b/chrome/browser/ui/webui/downloads/downloads_ui.cc
-@@ -58,6 +58,7 @@ namespace {
+@@ -59,6 +59,7 @@ namespace {
content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
content::WebUIDataSource* source =
content::WebUIDataSource::Create(chrome::kChromeUIDownloadsHost);
diff --git a/patches/chrome-browser-ui-webui-extensions-extensions_ui.cc.patch b/patches/chrome-browser-ui-webui-extensions-extensions_ui.cc.patch
index 202946f7214f..09f500f378ab 100644
--- a/patches/chrome-browser-ui-webui-extensions-extensions_ui.cc.patch
+++ b/patches/chrome-browser-ui-webui-extensions-extensions_ui.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/webui/extensions/extensions_ui.cc b/chrome/browser/ui/webui/extensions/extensions_ui.cc
-index 894e1da817c01c785dc74661fd4995f1658544bf..def7436b0f25b653e3c17cb1f739fdf3538004b5 100644
+index 9476569e6059efb6bfaa603fd2b03972ef1d6d06..1f695848482418ae89e6e0132a56dffa625e770d 100644
--- a/chrome/browser/ui/webui/extensions/extensions_ui.cc
+++ b/chrome/browser/ui/webui/extensions/extensions_ui.cc
-@@ -316,6 +316,8 @@ content::WebUIDataSource* CreateMdExtensionsSource(Profile* profile,
+@@ -322,6 +322,8 @@ content::WebUIDataSource* CreateExtensionsSource(Profile* profile,
source->AddString(kLoadTimeClassesKey, GetLoadTimeClasses(in_dev_mode));
diff --git a/patches/chrome-browser-ui-webui-history-history_ui.cc.patch b/patches/chrome-browser-ui-webui-history-history_ui.cc.patch
index f8c6f8fc6547..d778bc457854 100644
--- a/patches/chrome-browser-ui-webui-history-history_ui.cc.patch
+++ b/patches/chrome-browser-ui-webui-history-history_ui.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/webui/history/history_ui.cc b/chrome/browser/ui/webui/history/history_ui.cc
-index 6cb4ecac81cd23fb39ecc86993f75df1c8e152a7..0f2b0cedb40a03754f48ba74399756c330485615 100644
+index b6840c30d11969c8bc17d120b1c467e87e266fe3..2e0ee73a2218fcd093d26fe386db6dc31d93cdc0 100644
--- a/chrome/browser/ui/webui/history/history_ui.cc
+++ b/chrome/browser/ui/webui/history/history_ui.cc
-@@ -55,6 +55,7 @@ content::WebUIDataSource* CreateHistoryUIHTMLSource(Profile* profile) {
+@@ -60,6 +60,7 @@ content::WebUIDataSource* CreateHistoryUIHTMLSource(Profile* profile) {
content::WebUIDataSource* source =
content::WebUIDataSource::Create(chrome::kChromeUIHistoryHost);
diff --git a/patches/chrome-browser-ui-webui-settings-import_data_handler.cc.patch b/patches/chrome-browser-ui-webui-settings-import_data_handler.cc.patch
index 45b7d0dea1d6..64d5f66d53ee 100644
--- a/patches/chrome-browser-ui-webui-settings-import_data_handler.cc.patch
+++ b/patches/chrome-browser-ui-webui-settings-import_data_handler.cc.patch
@@ -1,16 +1,16 @@
diff --git a/chrome/browser/ui/webui/settings/import_data_handler.cc b/chrome/browser/ui/webui/settings/import_data_handler.cc
-index 954d6b866216fbdcce129d1760d6ad51e491fedd..28e0531d3ceb9c0339a272c1a8a83afb06dddc0b 100644
+index a00b40e88044745781e165e54af3bfaacbef0527..7263198a3c65525db38d446d5669bc026cdc788a 100644
--- a/chrome/browser/ui/webui/settings/import_data_handler.cc
+++ b/chrome/browser/ui/webui/settings/import_data_handler.cc
-@@ -130,6 +130,7 @@ void ImportDataHandler::HandleImportData(const base::ListValue* args) {
+@@ -131,6 +131,7 @@ void ImportDataHandler::HandleImportData(const base::ListValue* args) {
selected_items |= importer::PASSWORDS;
- if (*types->FindBoolKey(prefs::kImportDialogSearchEngine))
+ if (*types.FindBoolKey(prefs::kImportDialogSearchEngine))
selected_items |= importer::SEARCH_ENGINES;
+ BRAVE_IMPORT_DATA
const importer::SourceProfile& source_profile =
importer_list_->GetSourceProfileAt(browser_index);
-@@ -211,6 +212,7 @@ void ImportDataHandler::SendBrowserProfileData(const std::string& callback_id) {
+@@ -212,6 +213,7 @@ void ImportDataHandler::SendBrowserProfileData(const std::string& callback_id) {
browser_profile->SetBoolean(
"autofillFormData",
(browser_services & importer::AUTOFILL_FORM_DATA) != 0);
diff --git a/patches/chrome-browser-ui-webui-settings-settings_localized_strings_provider.cc.patch b/patches/chrome-browser-ui-webui-settings-settings_localized_strings_provider.cc.patch
index 1e41db2442c9..483c68462360 100644
--- a/patches/chrome-browser-ui-webui-settings-settings_localized_strings_provider.cc.patch
+++ b/patches/chrome-browser-ui-webui-settings-settings_localized_strings_provider.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
-index 7c0a0e6addb5e7de200dcc4f539f955c1db6175d..fce07da60c3fba0a2d53136a15020cee5282975b 100644
+index c773004acca71588f307864c7b91df45c9f999e9..8fed88763bf927a38516de8bffc7ce9ff385d984 100644
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
-@@ -2755,6 +2755,7 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source,
+@@ -2817,6 +2817,7 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source,
policy_indicator::AddLocalizedStrings(html_source);
AddSecurityKeysStrings(html_source);
diff --git a/patches/chrome-browser-ui-webui-settings-site_settings_helper.cc.patch b/patches/chrome-browser-ui-webui-settings-site_settings_helper.cc.patch
index 16fbda833d15..6eefd705bc15 100644
--- a/patches/chrome-browser-ui-webui-settings-site_settings_helper.cc.patch
+++ b/patches/chrome-browser-ui-webui-settings-site_settings_helper.cc.patch
@@ -1,16 +1,16 @@
diff --git a/chrome/browser/ui/webui/settings/site_settings_helper.cc b/chrome/browser/ui/webui/settings/site_settings_helper.cc
-index 56669d751cae712a62a9a80d88f68731ac1a2d5a..a7505b2e55cad3b88f325a283f97e3d6271e8e9f 100644
+index bf5f79be19ffc6068bb3d8785535e7d2e9c121a1..60e9f7356968ba1a0487f10cc3a025707c2f0383 100644
--- a/chrome/browser/ui/webui/settings/site_settings_helper.cc
+++ b/chrome/browser/ui/webui/settings/site_settings_helper.cc
-@@ -160,6 +160,7 @@ const ContentSettingsTypeNameEntry kContentSettingsTypeGroupNames[] = {
- {ContentSettingsType::FEDERATED_IDENTITY_SHARING, nullptr},
+@@ -161,6 +161,7 @@ const ContentSettingsTypeNameEntry kContentSettingsTypeGroupNames[] = {
{ContentSettingsType::FEDERATED_IDENTITY_REQUEST, nullptr},
{ContentSettingsType::JAVASCRIPT_JIT, nullptr},
+ {ContentSettingsType::HTTP_ALLOWED, nullptr},
+ BRAVE_CONTENT_SETTINGS_TYPE_GROUP_NAMES_LIST
};
static_assert(base::size(kContentSettingsTypeGroupNames) ==
-@@ -383,6 +384,7 @@ bool HasRegisteredGroupName(ContentSettingsType type) {
+@@ -384,6 +385,7 @@ bool HasRegisteredGroupName(ContentSettingsType type) {
}
ContentSettingsType ContentSettingsTypeFromGroupName(base::StringPiece name) {
diff --git a/patches/chrome-browser-ui-webui-theme_source.cc.patch b/patches/chrome-browser-ui-webui-theme_source.cc.patch
index d27183e8d634..03c31e511951 100644
--- a/patches/chrome-browser-ui-webui-theme_source.cc.patch
+++ b/patches/chrome-browser-ui-webui-theme_source.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/ui/webui/theme_source.cc b/chrome/browser/ui/webui/theme_source.cc
-index 4872b19446e4615e54f52e999d14b0d055d1bb79..c13414b65e5f09903f88842923a1f6e4d7161a81 100644
+index d740ff815b90fa01a8bb82886c09bdf6e7990631..6e67880bf69d2f6ba99a98440aea0a3767c141d6 100644
--- a/chrome/browser/ui/webui/theme_source.cc
+++ b/chrome/browser/ui/webui/theme_source.cc
@@ -100,7 +100,7 @@ void ThemeSource::StartDataRequest(
diff --git a/patches/chrome-browser-upgrade_detector-upgrade_detector_impl.cc.patch b/patches/chrome-browser-upgrade_detector-upgrade_detector_impl.cc.patch
index 65d4a73ba2e1..fb71c9770ead 100644
--- a/patches/chrome-browser-upgrade_detector-upgrade_detector_impl.cc.patch
+++ b/patches/chrome-browser-upgrade_detector-upgrade_detector_impl.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/upgrade_detector/upgrade_detector_impl.cc b/chrome/browser/upgrade_detector/upgrade_detector_impl.cc
-index 2e9c2ad3e29ed620299dadb9cd56f37ac4cfe245..45a3f00be129b9513a5152f6d0dfa2aa0834aece 100644
+index e301bb873774b9e0eb1d82b1cda3e689e9474eb9..6d084af7d79226ce68f3392b18b3200f2ddfc716 100644
--- a/chrome/browser/upgrade_detector/upgrade_detector_impl.cc
+++ b/chrome/browser/upgrade_detector/upgrade_detector_impl.cc
@@ -488,7 +488,7 @@ void UpgradeDetectorImpl::Init() {
diff --git a/patches/chrome-browser-web_applications-components-web_app_shortcut_mac.mm.patch b/patches/chrome-browser-web_applications-components-web_app_shortcut_mac.mm.patch
index d6447635fd39..c3051e642a8c 100644
--- a/patches/chrome-browser-web_applications-components-web_app_shortcut_mac.mm.patch
+++ b/patches/chrome-browser-web_applications-components-web_app_shortcut_mac.mm.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/browser/web_applications/components/web_app_shortcut_mac.mm b/chrome/browser/web_applications/components/web_app_shortcut_mac.mm
-index 75389f85cf41cd99616b6f687937c1d0a6277136..8533184525fdd9eca6bcc98fb61e3fe05a1fb7fd 100644
+index 724cef962d45c5e6b6cac1dee203fc6120587a85..4915087234d1c073c10bf68793bbc9f7203b73d8 100644
--- a/chrome/browser/web_applications/components/web_app_shortcut_mac.mm
+++ b/chrome/browser/web_applications/components/web_app_shortcut_mac.mm
@@ -760,6 +760,7 @@ base::FilePath GetChromeAppsFolder() {
diff --git a/patches/chrome-chrome_repack_locales.gni.patch b/patches/chrome-chrome_repack_locales.gni.patch
index c397241b3767..fa22462131b5 100644
--- a/patches/chrome-chrome_repack_locales.gni.patch
+++ b/patches/chrome-chrome_repack_locales.gni.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/chrome_repack_locales.gni b/chrome/chrome_repack_locales.gni
-index 203d54004d3246cc2ac412481c3fdf9e65729619..1585055b3ebcfa17567c76d80d5934b9ec9ac9f9 100644
+index e9dfe6bb49914fcfa7202cfba9d2408e686ba7f1..b9ae4b54e462f83185c26e8cf0d92e20395d7e16 100644
--- a/chrome/chrome_repack_locales.gni
+++ b/chrome/chrome_repack_locales.gni
@@ -37,6 +37,7 @@ template("chrome_repack_locales") {
diff --git a/patches/chrome-common-BUILD.gn.patch b/patches/chrome-common-BUILD.gn.patch
index f28df965df06..f220aefe8656 100644
--- a/patches/chrome-common-BUILD.gn.patch
+++ b/patches/chrome-common-BUILD.gn.patch
@@ -1,16 +1,16 @@
diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn
-index bc6070aa64d712a489fce6054a2544955c901f36..f26d555af950cf1bc7d29f980a4c951144a25abb 100644
+index b20921ddbf4171463ddaf0d181ab7a606be8d299..be14e1a01c29a12612024f5325d96684a9097294 100644
--- a/chrome/common/BUILD.gn
+++ b/chrome/common/BUILD.gn
-@@ -81,6 +81,7 @@ source_set("channel_info") {
- } else if (is_posix) {
- sources += [ "channel_info_posix.cc" ]
+@@ -83,6 +83,7 @@ source_set("channel_info") {
+ } else if (is_fuchsia) {
+ sources += [ "channel_info_fuchsia.cc" ]
}
+ public_deps += [ "//brave/common:channel_info" ]
}
source_set("ini_parser") {
-@@ -548,6 +549,7 @@ static_library("non_code_constants") {
+@@ -554,6 +555,7 @@ static_library("non_code_constants") {
"//printing/buildflags",
"//ui/base:buildflags",
]
diff --git a/patches/chrome-common-extensions-chrome_extensions_client.cc.patch b/patches/chrome-common-extensions-chrome_extensions_client.cc.patch
index 81a955fcd2bd..248bedf95af9 100644
--- a/patches/chrome-common-extensions-chrome_extensions_client.cc.patch
+++ b/patches/chrome-common-extensions-chrome_extensions_client.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/common/extensions/chrome_extensions_client.cc b/chrome/common/extensions/chrome_extensions_client.cc
-index e45a588cade57ba820ca8c4fda91dc415024378f..fb21e5825efc3867643d1c49e141cac50dfb02e2 100644
+index a15c7c43bfa09265ef1bf723be0a63ea8195bd39..07a4df3f63be14c3afcc3bda34a4c1212ebf10f5 100644
--- a/chrome/common/extensions/chrome_extensions_client.cc
+++ b/chrome/common/extensions/chrome_extensions_client.cc
@@ -13,6 +13,7 @@
diff --git a/patches/chrome-installer-linux-BUILD.gn.patch b/patches/chrome-installer-linux-BUILD.gn.patch
index fa4d07ff0f0d..24b6a7d7cc70 100644
--- a/patches/chrome-installer-linux-BUILD.gn.patch
+++ b/patches/chrome-installer-linux-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/installer/linux/BUILD.gn b/chrome/installer/linux/BUILD.gn
-index 338fc080cc43ffc8ada98ed2015230d5c1c79764..9fcee95c8bcfc8ff927590a4b818525ebf9949a2 100644
+index 4d9054ea8c329cb2a5644b41d54527f78fe5e5b6..84420ea55d222d5a023b1aec62de7c2797349416 100644
--- a/chrome/installer/linux/BUILD.gn
+++ b/chrome/installer/linux/BUILD.gn
@@ -79,6 +79,8 @@ if (enable_swiftshader) {
@@ -30,8 +30,8 @@ index 338fc080cc43ffc8ada98ed2015230d5c1c79764..9fcee95c8bcfc8ff927590a4b818525e
outputs = [ "$root_out_dir/installer/common/{{source_file_part}}" ]
}
@@ -325,6 +330,7 @@ group("installer_deps") {
+ "//components/crash/core/app:chrome_crashpad_handler",
"//sandbox/linux:chrome_sandbox",
- "//third_party/crashpad/crashpad/handler:crashpad_handler",
]
+ public_deps += brave_installer_deps
if (enable_nacl) {
diff --git a/patches/chrome-installer-linux-common-installer.include.patch b/patches/chrome-installer-linux-common-installer.include.patch
index fbb2bf4586e5..9a28a761ac49 100644
--- a/patches/chrome-installer-linux-common-installer.include.patch
+++ b/patches/chrome-installer-linux-common-installer.include.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/installer/linux/common/installer.include b/chrome/installer/linux/common/installer.include
-index 64f961a0a4162b713d51e577da2f340ad0dadfb2..8cd98452b02177ec5f5cf872df5031edac0ddf6e 100644
+index ee2277403d123b158843c0fc411d6981db7adaa4..aa710c52727e39211a272bea2736ca85d9c88435 100644
--- a/chrome/installer/linux/common/installer.include
+++ b/chrome/installer/linux/common/installer.include
@@ -75,6 +75,7 @@ process_template() (
@@ -10,7 +10,7 @@ index 64f961a0a4162b713d51e577da2f340ad0dadfb2..8cd98452b02177ec5f5cf872df5031ed
-e "s#@@SNAPNAME@@#${SNAPNAME}#g" \
-e "s#@@PROGNAME@@#${PROGNAME}#g" \
-e "s#@@CHANNEL@@#${CHANNEL}#g" \
-@@ -162,6 +163,8 @@ stage_install_common() {
+@@ -163,6 +164,8 @@ stage_install_common() {
install -m 644 "${OUTPUTDIR}/ui_resources_100_percent.pak" "${STAGEDIR}/${INSTALLDIR}/"
fi
@@ -19,7 +19,7 @@ index 64f961a0a4162b713d51e577da2f340ad0dadfb2..8cd98452b02177ec5f5cf872df5031ed
# ICU data file; Necessary when the GN icu_use_data_file flag is true.
install -m 644 "${OUTPUTDIR}/icudtl.dat" "${STAGEDIR}/${INSTALLDIR}/"
-@@ -317,11 +320,13 @@ stage_install_common() {
+@@ -318,11 +321,13 @@ stage_install_common() {
# app icons
local icon_regex=".*product_logo_[0-9]\+\."
diff --git a/patches/chrome-installer-linux-debian-changelog.template.patch b/patches/chrome-installer-linux-debian-changelog.template.patch
index 5662fe37ec7b..26b1e0bfb2e8 100644
--- a/patches/chrome-installer-linux-debian-changelog.template.patch
+++ b/patches/chrome-installer-linux-debian-changelog.template.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/installer/linux/debian/changelog.template b/chrome/installer/linux/debian/changelog.template
-index 290128804a9a724e9b04ea57be59ce34a0154b42..10bc5a2103ad635da11b37033cfa852eb9ebfb76 100644
+index 17d097b4506739cd917d49a5ec2132e5ccdc9859..38fff15cea1c5cb9da9c28f76445e36a52fa88ff 100644
--- a/chrome/installer/linux/debian/changelog.template
+++ b/chrome/installer/linux/debian/changelog.template
@@ -1,5 +1,5 @@
@@ -9,4 +9,4 @@ index 290128804a9a724e9b04ea57be59ce34a0154b42..10bc5a2103ad635da11b37033cfa852e
- * Build spec: https://chromium.googlesource.com/chromium/src.git/+/@@VERSION@@/
+ * Build spec: https://github.com/brave/brave-browser/releases/tag/v@@VERSION@@
- -- @@MAINTNAME@@ <@@MAINTMAIL@@> Tue, 03 Feb 2009 14:54:35 -0800
+ -- @@MAINTNAME@@ <@@MAINTMAIL@@> @@DATE_RFC5322@@
diff --git a/patches/chrome-installer-mac-signing-parts.py.patch b/patches/chrome-installer-mac-signing-parts.py.patch
index 7412a2bb3e18..988e3446a2b7 100644
--- a/patches/chrome-installer-mac-signing-parts.py.patch
+++ b/patches/chrome-installer-mac-signing-parts.py.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/installer/mac/signing/parts.py b/chrome/installer/mac/signing/parts.py
-index 9a20b98f19da9d35b7a87340262601ec40ec2660..cb3240b96c38460af81bc9f81c4c34dd17e67e79 100644
+index c19c02680cf01c0c046fb8ce2a0f26ab298d8545..be83298f53a5b3b2dac53d7f51608c424f5d709c 100644
--- a/chrome/installer/mac/signing/parts.py
+++ b/chrome/installer/mac/signing/parts.py
@@ -10,6 +10,7 @@ import os.path
@@ -10,7 +10,7 @@ index 9a20b98f19da9d35b7a87340262601ec40ec2660..cb3240b96c38460af81bc9f81c4c34dd
_PROVISIONPROFILE_EXT = '.provisionprofile'
_PROVISIONPROFILE_DEST = 'embedded.provisionprofile'
-@@ -140,6 +141,7 @@ def get_parts(config):
+@@ -132,6 +133,7 @@ def get_parts(config):
library_basename.replace('.dylib', ''),
verify_options=verify_options)
@@ -18,7 +18,7 @@ index 9a20b98f19da9d35b7a87340262601ec40ec2660..cb3240b96c38460af81bc9f81c4c34dd
return parts
-@@ -203,6 +205,7 @@ def sign_chrome(paths, config, sign_framework=False):
+@@ -195,6 +197,7 @@ def sign_chrome(paths, config, sign_framework=False):
continue
signing.sign_part(paths, config, part)
diff --git a/patches/chrome-installer-setup-BUILD.gn.patch b/patches/chrome-installer-setup-BUILD.gn.patch
index 134874830737..2ab592eb2e31 100644
--- a/patches/chrome-installer-setup-BUILD.gn.patch
+++ b/patches/chrome-installer-setup-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/installer/setup/BUILD.gn b/chrome/installer/setup/BUILD.gn
-index db3796b6b6ef7c7c60cd6d75e93259c1a5edc364..e6fa111a618efea3ff70b55b75ed9c9297c4d040 100644
+index 0b4f0b5678b40b156838b8279de573b672e6f399..fd8ecdfecfaa0d7ff77ed625ef9505693c6b40be 100644
--- a/chrome/installer/setup/BUILD.gn
+++ b/chrome/installer/setup/BUILD.gn
@@ -49,6 +49,7 @@ if (is_win) {
diff --git a/patches/chrome-installer-util-BUILD.gn.patch b/patches/chrome-installer-util-BUILD.gn.patch
index 3efb5a9beffd..45fdba535a68 100644
--- a/patches/chrome-installer-util-BUILD.gn.patch
+++ b/patches/chrome-installer-util-BUILD.gn.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/installer/util/BUILD.gn b/chrome/installer/util/BUILD.gn
-index 2ea95551d977717045804377090c4e57bb4e0518..6859e33daa7de44c2b53601163bc6949bdebbd0c 100644
+index 4540a2dfa9edbd7a9f49b9d7d54d8b83c2ee06ef..1bca5ea462a1c3873c818f035eb97aef52d5e268 100644
--- a/chrome/installer/util/BUILD.gn
+++ b/chrome/installer/util/BUILD.gn
-@@ -190,6 +190,7 @@ static_library("with_no_strings") {
+@@ -188,6 +188,7 @@ static_library("with_no_strings") {
"initial_preferences.h",
]
}
@@ -10,7 +10,7 @@ index 2ea95551d977717045804377090c4e57bb4e0518..6859e33daa7de44c2b53601163bc6949
}
# Use this version of installer_util to link to the generated strings in .rc
-@@ -225,7 +226,18 @@ generate_embedded_i18n("generate_strings") {
+@@ -223,7 +224,18 @@ generate_embedded_i18n("generate_strings") {
output_file_name_base = "installer_util_strings"
diff --git a/patches/chrome-installer-util-google_update_settings.cc.patch b/patches/chrome-installer-util-google_update_settings.cc.patch
index c356514153f0..a497d25f993d 100644
--- a/patches/chrome-installer-util-google_update_settings.cc.patch
+++ b/patches/chrome-installer-util-google_update_settings.cc.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/installer/util/google_update_settings.cc b/chrome/installer/util/google_update_settings.cc
-index 5b17407c19f04aedac10f8e984cf3decd96a4da8..5db1755379c9db7856c68b821aabffe6fd1a4a79 100644
+index 2c6660b942cdf91bef54ed88710ee6fb52fea63c..674eb7547dd8c89a55fc02889aa4060f8892c071 100644
--- a/chrome/installer/util/google_update_settings.cc
+++ b/chrome/installer/util/google_update_settings.cc
@@ -30,7 +30,11 @@ using base::win::RegKey;
diff --git a/patches/chrome-installer-util-shell_util.cc.patch b/patches/chrome-installer-util-shell_util.cc.patch
index 5c3150bcf852..c81be3e2b304 100644
--- a/patches/chrome-installer-util-shell_util.cc.patch
+++ b/patches/chrome-installer-util-shell_util.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
-index d897dd98a37eeb005391961d16ad47e4031b7c74..7c92f64769201a4333a874a534551db113bc3245 100644
+index e22ef8b926d9e2485114f1bf182afedf0c095b27..32a253bd03183f2e86a0081586041a9270e8e735 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
-@@ -358,6 +358,7 @@ void GetChromeProgIdEntries(
+@@ -355,6 +355,7 @@ void GetChromeProgIdEntries(
app_info.delegate_clsid = install_static::GetLegacyCommandExecuteImplClsid();
GetProgIdEntries(app_info, entries);
@@ -10,7 +10,7 @@ index d897dd98a37eeb005391961d16ad47e4031b7c74..7c92f64769201a4333a874a534551db1
if (!app_info.delegate_clsid.empty()) {
auto delegate_execute_entries =
-@@ -454,6 +455,7 @@ void GetShellIntegrationEntries(
+@@ -451,6 +452,7 @@ void GetShellIntegrationEntries(
const std::wstring html_prog_id(GetBrowserProgId(suffix));
for (int i = 0; ShellUtil::kPotentialFileAssociations[i] != nullptr; i++) {
@@ -18,15 +18,15 @@ index d897dd98a37eeb005391961d16ad47e4031b7c74..7c92f64769201a4333a874a534551db1
entries->push_back(std::make_unique(
capabilities + L"\\FileAssociations",
ShellUtil::kPotentialFileAssociations[i], html_prog_id));
-@@ -480,6 +482,7 @@ void GetAppExtRegistrationEntries(
- key_name.append(ext);
- key_name.push_back(base::FilePath::kSeparators[0]);
- key_name.append(ShellUtil::kRegOpenWithProgids);
+@@ -475,6 +477,7 @@ void GetAppExtRegistrationEntries(
+ std::wstring key_name =
+ base::StrCat({ShellUtil::kRegClasses, kFilePathSeparator, ext,
+ kFilePathSeparator, ShellUtil::kRegOpenWithProgids});
+ BRAVE_GET_APP_EXT_REGISTRATION_ENTRIES
entries->push_back(
std::make_unique(key_name, prog_id, std::wstring()));
}
-@@ -720,6 +723,7 @@ std::wstring GetTargetForDefaultAppsSettings(const wchar_t* protocol) {
+@@ -714,6 +717,7 @@ std::wstring GetTargetForDefaultAppsSettings(const wchar_t* protocol) {
return base::StringPrintf(kSystemSettingsDefaultAppsFormat, L"Browser");
if (base::EqualsCaseInsensitiveASCII(protocol, L"mailto"))
return base::StringPrintf(kSystemSettingsDefaultAppsFormat, L"Email");
@@ -34,7 +34,7 @@ index d897dd98a37eeb005391961d16ad47e4031b7c74..7c92f64769201a4333a874a534551db1
return L"SettingsPageAppsDefaultsProtocolView";
}
-@@ -1636,8 +1640,10 @@ const wchar_t* ShellUtil::kPotentialFileAssociations[] = {
+@@ -1676,8 +1680,10 @@ const wchar_t* ShellUtil::kPotentialFileAssociations[] = {
L".htm", L".html", L".pdf", L".shtml", L".svg",
L".xht", L".xhtml", L".webp", nullptr};
const wchar_t* ShellUtil::kBrowserProtocolAssociations[] = {L"ftp", L"http",
diff --git a/patches/chrome-renderer-BUILD.gn.patch b/patches/chrome-renderer-BUILD.gn.patch
index bac4284d635b..0389bb25bb3b 100644
--- a/patches/chrome-renderer-BUILD.gn.patch
+++ b/patches/chrome-renderer-BUILD.gn.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn
-index 02cdf425677457ff9db420bba6d455d474b32afe..62f0f7e5d4ec35d079e784c7d7a2d78ac46ded48 100644
+index dd997e3ccdb0346a7542c6d75bd6c6152c039869..1e5e146516c866589f913ecad74cc2a1ada1dad9 100644
--- a/chrome/renderer/BUILD.gn
+++ b/chrome/renderer/BUILD.gn
-@@ -235,6 +235,7 @@ static_library("renderer") {
+@@ -237,6 +237,7 @@ static_library("renderer") {
"//v8",
]
diff --git a/patches/chrome-renderer-chrome_content_renderer_client.cc.patch b/patches/chrome-renderer-chrome_content_renderer_client.cc.patch
index 57f210288d13..025a99fad875 100644
--- a/patches/chrome-renderer-chrome_content_renderer_client.cc.patch
+++ b/patches/chrome-renderer-chrome_content_renderer_client.cc.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
-index 4cd049fba2741bd14344128387e84b61cae00236..67a1cf02f77c3cac5782a5a53254b21490ec44f3 100644
+index fc4ae8abac3297a1481bc84ee3be3ffb181f47ec..c86a25cff8885c91f57b9933627bc834fb45cb19 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
-@@ -519,7 +519,7 @@ void ChromeContentRendererClient::RenderFrameCreated(
+@@ -520,7 +520,7 @@ void ChromeContentRendererClient::RenderFrameCreated(
ChromeExtensionsRendererClient::GetInstance()->extension_dispatcher());
#endif
content_settings::ContentSettingsAgentImpl* content_settings =
diff --git a/patches/chrome-renderer-worker_content_settings_client.h.patch b/patches/chrome-renderer-worker_content_settings_client.h.patch
index fa3b1a400d1d..c0e4131f5d50 100644
--- a/patches/chrome-renderer-worker_content_settings_client.h.patch
+++ b/patches/chrome-renderer-worker_content_settings_client.h.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/renderer/worker_content_settings_client.h b/chrome/renderer/worker_content_settings_client.h
-index 9829059249489c6f6fdd8c176061ce4b4ef6ee2b..00eefd3c2e833412ec8b6e80052771deef6649a8 100644
+index 7b167b87eda23b180ae7948a6aefb37e39456e1a..44b0424a8ba59bcfea377ad8196b522a9e52baa3 100644
--- a/chrome/renderer/worker_content_settings_client.h
+++ b/chrome/renderer/worker_content_settings_client.h
-@@ -37,6 +37,7 @@ class WorkerContentSettingsClient : public blink::WebContentSettingsClient {
+@@ -38,6 +38,7 @@ class WorkerContentSettingsClient : public blink::WebContentSettingsClient {
bool AllowScriptFromSource(bool enabled_per_settings,
const blink::WebURL& script_url) override;
bool ShouldAutoupgradeMixedContent() override;
diff --git a/patches/chrome-test-BUILD.gn.patch b/patches/chrome-test-BUILD.gn.patch
index 3fb476bb27df..fd8bffa5c9d6 100644
--- a/patches/chrome-test-BUILD.gn.patch
+++ b/patches/chrome-test-BUILD.gn.patch
@@ -1,8 +1,8 @@
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
-index 139a04d6cbc1376340cf73a395e051fd2c7c9b11..6bcafc12aef2172eff9969bdcfb5a9bfdb93dd9e 100644
+index 0fcf061bf93b4b11603ef944cf8dd4d456cf5f45..4e3251cdf1c6b9a830230a4538cc3b2838740314 100644
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
-@@ -1284,6 +1284,7 @@ if (!is_android) {
+@@ -1307,6 +1307,7 @@ if (!is_android && !is_fuchsia) {
"//v8",
]
diff --git a/patches/chrome-utility-BUILD.gn.patch b/patches/chrome-utility-BUILD.gn.patch
index f20d68d61763..1239cae4aa27 100644
--- a/patches/chrome-utility-BUILD.gn.patch
+++ b/patches/chrome-utility-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/chrome/utility/BUILD.gn b/chrome/utility/BUILD.gn
-index 1cc9403039be4060509a05f6ab8190bc541b8e74..fd0104a1d12101d58ea0245e59e73ac9e390e1df 100644
+index de2ba5cc8cc89595ef0948e19e5adabb0bf44fe3..61dcbeaed6ef19ba2070c8f608edbd7927a39ee0 100644
--- a/chrome/utility/BUILD.gn
+++ b/chrome/utility/BUILD.gn
@@ -65,6 +65,8 @@ static_library("utility") {
diff --git a/patches/components-browser_ui-site_settings-android-BUILD.gn.patch b/patches/components-browser_ui-site_settings-android-BUILD.gn.patch
index 57196af6a986..e5992cd75a6c 100644
--- a/patches/components-browser_ui-site_settings-android-BUILD.gn.patch
+++ b/patches/components-browser_ui-site_settings-android-BUILD.gn.patch
@@ -1,8 +1,8 @@
diff --git a/components/browser_ui/site_settings/android/BUILD.gn b/components/browser_ui/site_settings/android/BUILD.gn
-index 26464cfa88d5ea8243a8e0ae85602c010de6f0c0..0c618f870b790f9041696c2f112b26467835eb67 100644
+index 894cd87fb394041b05248860cbbd731d46769406..0a5d29b832e89a610fb8dfaa673ca1b563db9a45 100644
--- a/components/browser_ui/site_settings/android/BUILD.gn
+++ b/components/browser_ui/site_settings/android/BUILD.gn
-@@ -74,6 +74,7 @@ android_library("java") {
+@@ -65,6 +65,7 @@ android_library("java") {
"java/src/org/chromium/components/browser_ui/site_settings/WebsitePreference.java",
"java/src/org/chromium/components/browser_ui/site_settings/WebsitePreferenceBridge.java",
]
@@ -10,7 +10,7 @@ index 26464cfa88d5ea8243a8e0ae85602c010de6f0c0..0c618f870b790f9041696c2f112b2646
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
resources_package = "org.chromium.components.browser_ui.site_settings"
deps = [
-@@ -182,4 +183,5 @@ android_resources("java_resources") {
+@@ -173,4 +174,5 @@ android_resources("java_resources") {
"//components/permissions/android:java_resources",
"//third_party/android_deps:android_support_v7_appcompat_java",
]
diff --git a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-ChosenObjectSettings.java.patch b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-ChosenObjectSettings.java.patch
index 7c0e1398085c..4a20e8213367 100644
--- a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-ChosenObjectSettings.java.patch
+++ b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-ChosenObjectSettings.java.patch
@@ -1,8 +1,8 @@
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ChosenObjectSettings.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ChosenObjectSettings.java
-index f4c6d5aff73b6147f3d7f61d00a56056872e86bd..043ecd1ae2ac2679be22b6b9613e624e5fa4f381 100644
+index 8e1aa82c2305c105a40dd1582a693e486f8fb23b..f43a3c08b536343e29038159db5af283fa6c71d7 100644
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ChosenObjectSettings.java
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ChosenObjectSettings.java
-@@ -132,7 +132,7 @@ public class ChosenObjectSettings extends SiteSettingsPreferenceFragment {
+@@ -133,7 +133,7 @@ public class ChosenObjectSettings extends SiteSettingsPreferenceFragment {
getSiteSettingsDelegate().launchSettingsHelpAndFeedbackActivity(getActivity());
return true;
}
diff --git a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SingleCategorySettings.java.patch b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SingleCategorySettings.java.patch
index 236f58121701..e5df01c113b9 100644
--- a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SingleCategorySettings.java.patch
+++ b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SingleCategorySettings.java.patch
@@ -1,5 +1,5 @@
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java
-index 76c8c73443ee4a677de24ff8301091eb884d0ef3..2e296f819c1bccbd0846750dfcca8f896849d7aa 100644
+index e2dbe7d2395452c738a3fe5cbba1f5e54d2d5b14..7ff0e5b61137b8ef793b321d8c375847e08aa588 100644
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java
@@ -384,7 +384,7 @@ public class SingleCategorySettings extends SiteSettingsPreferenceFragment
diff --git a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettings.java.patch b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettings.java.patch
index f58e9131aaf8..621a486459d4 100644
--- a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettings.java.patch
+++ b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettings.java.patch
@@ -1,8 +1,8 @@
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettings.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettings.java
-index 3a3019fddf6168107ffa121edb892e1ea4b7e1ae..60ca66002e28e3e5731ed9afe4afdb5bf64074e6 100644
+index 81e798d66124f687cf5113f9c0209f92e64b2ea4..66ea45e129429a8ebfabf1f9244203c57c055d48 100644
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettings.java
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettings.java
-@@ -24,7 +24,7 @@ import org.chromium.components.user_prefs.UserPrefs;
+@@ -24,7 +24,7 @@ import org.chromium.content_public.browser.BrowserContextHandle;
* browser-wide.
*/
public class SiteSettings
diff --git a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettingsDelegate.java.patch b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettingsDelegate.java.patch
index 52f58d4e981f..220ae8eda230 100644
--- a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettingsDelegate.java.patch
+++ b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettingsDelegate.java.patch
@@ -1,5 +1,5 @@
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsDelegate.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsDelegate.java
-index 53fba7df5d9659b23d6503f2a7a28943238ada9a..e364c229cd22c230826da1e43a5d8494fe11b910 100644
+index 8232924a7ae03c127ecc0b4427fab5e1bbfd498f..9f1f4bfa364de190ac9fa869658c214498ed70af 100644
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsDelegate.java
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsDelegate.java
@@ -119,4 +119,5 @@ public interface SiteSettingsDelegate {
diff --git a/patches/components-browser_ui-widget-android-java-res-values-dimens.xml.patch b/patches/components-browser_ui-widget-android-java-res-values-dimens.xml.patch
index 9671b5650c18..81505a2769d4 100644
--- a/patches/components-browser_ui-widget-android-java-res-values-dimens.xml.patch
+++ b/patches/components-browser_ui-widget-android-java-res-values-dimens.xml.patch
@@ -1,5 +1,5 @@
diff --git a/components/browser_ui/widget/android/java/res/values/dimens.xml b/components/browser_ui/widget/android/java/res/values/dimens.xml
-index 19b1cdc5576988473782340b246283e07b89ccf2..932e9757267fabafee90bad6ba469b5e120ac28c 100644
+index 42489b70d88c8557528fd4d5c36a81e1f9013fce..1974490a020f5f4c29c0448e8ddefdacff697098 100644
--- a/components/browser_ui/widget/android/java/res/values/dimens.xml
+++ b/components/browser_ui/widget/android/java/res/values/dimens.xml
@@ -65,7 +65,7 @@
@@ -8,6 +8,6 @@ index 19b1cdc5576988473782340b246283e07b89ccf2..932e9757267fabafee90bad6ba469b5e
24dp is needed to completely round the corners. -->
- 24dp
+ 8dp
+ @dimen/default_elevation_2
- 24dp
diff --git a/patches/components-content_settings-browser-page_specific_content_settings.cc.patch b/patches/components-content_settings-browser-page_specific_content_settings.cc.patch
index 30a2f21ecd1f..fcff050806b8 100644
--- a/patches/components-content_settings-browser-page_specific_content_settings.cc.patch
+++ b/patches/components-content_settings-browser-page_specific_content_settings.cc.patch
@@ -1,5 +1,5 @@
diff --git a/components/content_settings/browser/page_specific_content_settings.cc b/components/content_settings/browser/page_specific_content_settings.cc
-index 72bb77a4a0c3ed3330bfb05bd892104f8a57a4b3..f1e7edfb5c5f279da9a50cf73bd2dfbafdd061b0 100644
+index 2f60f40231f8cfdc9355c7f8922e7581d75ffe71..cd1e20751d19a5e3cd258a770c6212ce41a9fa1e 100644
--- a/components/content_settings/browser/page_specific_content_settings.cc
+++ b/components/content_settings/browser/page_specific_content_settings.cc
@@ -454,6 +454,7 @@ bool PageSpecificContentSettings::IsContentBlocked(
diff --git a/patches/components-content_settings-core-browser-BUILD.gn.patch b/patches/components-content_settings-core-browser-BUILD.gn.patch
index ef44d77c3745..025d32578508 100644
--- a/patches/components-content_settings-core-browser-BUILD.gn.patch
+++ b/patches/components-content_settings-core-browser-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/components/content_settings/core/browser/BUILD.gn b/components/content_settings/core/browser/BUILD.gn
-index 764c726b9889e39787d6fdf53db5d9fd450341b5..dcbb79371a0e5204a2c1bc165bf2ac4dd9a33a1f 100644
+index 3f4ac4251d75431587c194361fa9f652fa5eecac..91514a15118d8aadaeff692f8ac36cf46d98c38b 100644
--- a/components/content_settings/core/browser/BUILD.gn
+++ b/components/content_settings/core/browser/BUILD.gn
@@ -63,6 +63,7 @@ static_library("browser") {
diff --git a/patches/components-content_settings-core-browser-content_settings_default_provider.cc.patch b/patches/components-content_settings-core-browser-content_settings_default_provider.cc.patch
index 07df60fd295c..93d528938c92 100644
--- a/patches/components-content_settings-core-browser-content_settings_default_provider.cc.patch
+++ b/patches/components-content_settings-core-browser-content_settings_default_provider.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/content_settings/core/browser/content_settings_default_provider.cc b/components/content_settings/core/browser/content_settings_default_provider.cc
-index cbfaabb1c417ec91bd566a7b535f354237687176..d38422430e49bf2af7a629c9fa3e8a840660fa8e 100644
+index 4eb3d040e6190fa889e03ca572d183e7184fea3e..f5bb336dc7f7fced882e3ecaba7862b050889875 100644
--- a/components/content_settings/core/browser/content_settings_default_provider.cc
+++ b/components/content_settings/core/browser/content_settings_default_provider.cc
-@@ -408,6 +408,7 @@ void DefaultProvider::DiscardOrMigrateObsoletePreferences() {
+@@ -407,6 +407,7 @@ void DefaultProvider::DiscardOrMigrateObsoletePreferences() {
}
prefs_->ClearPref(kDeprecatedEnableDRM);
#endif // BUILDFLAG(IS_CHROMEOS_ASH) || defined(OS_WIN)
diff --git a/patches/components-content_settings-core-browser-content_settings_pref_provider.h.patch b/patches/components-content_settings-core-browser-content_settings_pref_provider.h.patch
index 30325c597328..aacdc8da9e57 100644
--- a/patches/components-content_settings-core-browser-content_settings_pref_provider.h.patch
+++ b/patches/components-content_settings-core-browser-content_settings_pref_provider.h.patch
@@ -1,8 +1,8 @@
diff --git a/components/content_settings/core/browser/content_settings_pref_provider.h b/components/content_settings/core/browser/content_settings_pref_provider.h
-index 7c16ebc5e335a73395eaba96166e5e351e4302da..222f3cc1d8591fca626362d3aad99b93f94c9e46 100644
+index c1c888de7548c1c71a563f24dab690413285158e..99bff5ca92929dd4f7110b50790d6adb427f7b43 100644
--- a/components/content_settings/core/browser/content_settings_pref_provider.h
+++ b/components/content_settings/core/browser/content_settings_pref_provider.h
-@@ -64,6 +64,7 @@ class PrefProvider : public UserModifiableProvider {
+@@ -63,6 +63,7 @@ class PrefProvider : public UserModifiableProvider {
ContentSettingsPref* GetPref(ContentSettingsType type) const;
private:
diff --git a/patches/components-content_settings-core-browser-content_settings_registry.cc.patch b/patches/components-content_settings-core-browser-content_settings_registry.cc.patch
index 014da5e33499..be3a0fa18b5e 100644
--- a/patches/components-content_settings-core-browser-content_settings_registry.cc.patch
+++ b/patches/components-content_settings-core-browser-content_settings_registry.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/content_settings/core/browser/content_settings_registry.cc b/components/content_settings/core/browser/content_settings_registry.cc
-index 4445900c8a7a544f7f5cce557f94cc3ce589a3c0..fb4b4b90e06465b02e9a676b0bf13afcc413dbb5 100644
+index 585b86afeeacd2beaa8bd90e24ba1390dacbc6f6..f1ede07465a01527c0374efa485ac7cf913306d2 100644
--- a/components/content_settings/core/browser/content_settings_registry.cc
+++ b/components/content_settings/core/browser/content_settings_registry.cc
-@@ -623,6 +623,7 @@ void ContentSettingsRegistry::Init() {
+@@ -618,6 +618,7 @@ void ContentSettingsRegistry::Init() {
ContentSettingsInfo::INHERIT_IN_INCOGNITO,
ContentSettingsInfo::PERSISTENT,
ContentSettingsInfo::EXCEPTIONS_ON_SECURE_AND_INSECURE_ORIGINS);
diff --git a/patches/components-content_settings-core-common-content_settings.cc.patch b/patches/components-content_settings-core-common-content_settings.cc.patch
index 95d3f65decfe..fc1e824d530e 100644
--- a/patches/components-content_settings-core-common-content_settings.cc.patch
+++ b/patches/components-content_settings-core-common-content_settings.cc.patch
@@ -1,11 +1,11 @@
diff --git a/components/content_settings/core/common/content_settings.cc b/components/content_settings/core/common/content_settings.cc
-index c9f2d85b91ca645d1633d6925763460fc647afca..3299105de386764c0e6f8d9732facd025cc6cead 100644
+index 1e897d0112b0524784d122c8c57e0449f7522ec0..6447268e7ced16c8f247c638690411ca4f85eedb 100644
--- a/components/content_settings/core/common/content_settings.cc
+++ b/components/content_settings/core/common/content_settings.cc
-@@ -98,6 +98,7 @@ constexpr HistogramValue kHistogramValue[] = {
- {ContentSettingsType::FEDERATED_IDENTITY_SHARING, 77},
+@@ -99,6 +99,7 @@ constexpr HistogramValue kHistogramValue[] = {
{ContentSettingsType::FEDERATED_IDENTITY_REQUEST, 78},
{ContentSettingsType::JAVASCRIPT_JIT, 79},
+ {ContentSettingsType::HTTP_ALLOWED, 80},
+ BRAVE_HISTOGRAM_VALUE_LIST
};
diff --git a/patches/components-content_settings-core-common-content_settings_types.h.patch b/patches/components-content_settings-core-common-content_settings_types.h.patch
index fca288a24738..f748e07c7c3f 100644
--- a/patches/components-content_settings-core-common-content_settings_types.h.patch
+++ b/patches/components-content_settings-core-common-content_settings_types.h.patch
@@ -1,10 +1,10 @@
diff --git a/components/content_settings/core/common/content_settings_types.h b/components/content_settings/core/common/content_settings_types.h
-index 4bb4ad71cc1b3e4776266dce41ed6e67e6d1ca5b..8f7b7f52f7286e0ca6088d11540cc449e75e68ca 100644
+index 1b4cafc35dec68c8e79ed22439f18ad8fd06603e..59c0981ba391efda97f85604b878555151ccb644 100644
--- a/components/content_settings/core/common/content_settings_types.h
+++ b/components/content_settings/core/common/content_settings_types.h
-@@ -264,6 +264,7 @@ enum class ContentSettingsType : int32_t {
- // Whether to use the v8 optimized JIT for running JavaScript on the page.
- JAVASCRIPT_JIT,
+@@ -273,6 +273,7 @@ enum class ContentSettingsType : int32_t {
+ // separately allowlisted.
+ HTTP_ALLOWED,
+ BRAVE_CONTENT_SETTINGS_TYPES_LIST,
NUM_TYPES,
diff --git a/patches/components-content_settings-renderer-content_settings_agent_impl.cc.patch b/patches/components-content_settings-renderer-content_settings_agent_impl.cc.patch
index ed24e8984245..cb186dae3b23 100644
--- a/patches/components-content_settings-renderer-content_settings_agent_impl.cc.patch
+++ b/patches/components-content_settings-renderer-content_settings_agent_impl.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/content_settings/renderer/content_settings_agent_impl.cc b/components/content_settings/renderer/content_settings_agent_impl.cc
-index f27839a59d049840befe3ccf578415f835e5bbca..fc519752528da9bc60d4c71b6a0bf2cc8ee09aea 100644
+index e410df38c0b44b456c0838107b39fcd0914dd724..c633d313d198b4687a91569855c9719d2faf7cde 100644
--- a/components/content_settings/renderer/content_settings_agent_impl.cc
+++ b/components/content_settings/renderer/content_settings_agent_impl.cc
-@@ -464,6 +464,7 @@ bool ContentSettingsAgentImpl::IsAllowlistedForContentSettings() const {
+@@ -461,6 +461,7 @@ bool ContentSettingsAgentImpl::IsAllowlistedForContentSettings() const {
const WebDocument& document = render_frame()->GetWebFrame()->GetDocument();
WebSecurityOrigin origin = document.GetSecurityOrigin();
WebURL document_url = document.Url();
diff --git a/patches/components-content_settings-renderer-content_settings_agent_impl.h.patch b/patches/components-content_settings-renderer-content_settings_agent_impl.h.patch
index 059ac6400db9..b4b2eab9a35a 100644
--- a/patches/components-content_settings-renderer-content_settings_agent_impl.h.patch
+++ b/patches/components-content_settings-renderer-content_settings_agent_impl.h.patch
@@ -1,5 +1,5 @@
diff --git a/components/content_settings/renderer/content_settings_agent_impl.h b/components/content_settings/renderer/content_settings_agent_impl.h
-index b018a8b9149ac4732c06eb95620c283fb60e58cd..0b9a1b3b1522d08cbd6954d1ad331696ec26cbc1 100644
+index 856e4549b40b9e9b9218ec2ed17ecd731b57e493..8c159aa6793871dbf94ec2b794f704047192adc0 100644
--- a/components/content_settings/renderer/content_settings_agent_impl.h
+++ b/components/content_settings/renderer/content_settings_agent_impl.h
@@ -118,6 +118,7 @@ class ContentSettingsAgentImpl
diff --git a/patches/components-dom_distiller-content-browser-distiller_page_web_contents.cc.patch b/patches/components-dom_distiller-content-browser-distiller_page_web_contents.cc.patch
index 40473b360d99..95b1fac159fb 100644
--- a/patches/components-dom_distiller-content-browser-distiller_page_web_contents.cc.patch
+++ b/patches/components-dom_distiller-content-browser-distiller_page_web_contents.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/dom_distiller/content/browser/distiller_page_web_contents.cc b/components/dom_distiller/content/browser/distiller_page_web_contents.cc
-index 6dfc09c9cbbdf5b7692e44c8b47b70ccf9c690f1..a998eaf15ca3e8b65799deb2110a10a526c45aa8 100644
+index e516b97b87f99caf24d777538e900dc021c338ce..8122b1a8d80795465a97518391893fe6cb14e41f 100644
--- a/components/dom_distiller/content/browser/distiller_page_web_contents.cc
+++ b/components/dom_distiller/content/browser/distiller_page_web_contents.cc
-@@ -170,7 +170,9 @@ void DistillerPageWebContents::ExecuteJavaScript() {
+@@ -164,7 +164,9 @@ void DistillerPageWebContents::ExecuteJavaScript() {
content::WebContentsObserver::Observe(nullptr);
// Stop any pending navigation since the intent is to distill the current
// page.
@@ -11,4 +11,4 @@ index 6dfc09c9cbbdf5b7692e44c8b47b70ccf9c690f1..a998eaf15ca3e8b65799deb2110a10a5
+
DVLOG(1) << "Beginning distillation";
RunIsolatedJavaScript(
- frame, script_,
+ &TargetRenderFrameHost(), script_,
diff --git a/patches/components-download-internal-common-download_item_impl.cc.patch b/patches/components-download-internal-common-download_item_impl.cc.patch
index 2fe432dbe44b..7890ed7f5894 100644
--- a/patches/components-download-internal-common-download_item_impl.cc.patch
+++ b/patches/components-download-internal-common-download_item_impl.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/download/internal/common/download_item_impl.cc b/components/download/internal/common/download_item_impl.cc
-index dd1dfe270153b375e23e9c69811b78f18d90d21b..29b22d39ccf9fb8cee4a678513cf269324d1b65f 100644
+index 8e308eeacd96ef6385b3dab1b86d7c798184cca2..57fc54bb003c1fcd8f15ee0d1c358f52c12ac569 100644
--- a/components/download/internal/common/download_item_impl.cc
+++ b/components/download/internal/common/download_item_impl.cc
-@@ -1991,8 +1991,8 @@ void DownloadItemImpl::OnDownloadCompleting() {
+@@ -2009,8 +2009,8 @@ void DownloadItemImpl::OnDownloadCompleting() {
base::Unretained(download_file_.get()),
GetTargetFilePath(),
delegate_->GetApplicationClientIdForFileScanning(),
diff --git a/patches/components-favicon-core-favicon_database.cc.patch b/patches/components-favicon-core-favicon_database.cc.patch
index 242c86465046..2d0f6f9db6dd 100644
--- a/patches/components-favicon-core-favicon_database.cc.patch
+++ b/patches/components-favicon-core-favicon_database.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/favicon/core/favicon_database.cc b/components/favicon/core/favicon_database.cc
-index f074a55eb360ff8442a9a8ab9fe911cccb54afdd..9a2a983df0b74939042fabece35ac668df4ec243 100644
+index e9a2992502a376aeffdefe5ef56949dc4a41e5cb..5c725ef3a76f641410feb5859ef6e95d6a8579ca 100644
--- a/components/favicon/core/favicon_database.cc
+++ b/components/favicon/core/favicon_database.cc
-@@ -504,6 +504,7 @@ FaviconBitmapID FaviconDatabase::AddFaviconBitmap(
+@@ -506,6 +506,7 @@ FaviconBitmapID FaviconDatabase::AddFaviconBitmap(
base::Time time,
const gfx::Size& pixel_size) {
DCHECK(icon_id);
@@ -10,7 +10,7 @@ index f074a55eb360ff8442a9a8ab9fe911cccb54afdd..9a2a983df0b74939042fabece35ac668
sql::Statement statement(db_.GetCachedStatement(
SQL_FROM_HERE,
-@@ -556,8 +557,8 @@ bool FaviconDatabase::SetFaviconBitmap(
+@@ -558,8 +559,8 @@ bool FaviconDatabase::SetFaviconBitmap(
} else {
statement.BindNull(0);
}
@@ -21,7 +21,7 @@ index f074a55eb360ff8442a9a8ab9fe911cccb54afdd..9a2a983df0b74939042fabece35ac668
statement.BindInt64(3, bitmap_id);
return statement.Run();
-@@ -565,6 +566,7 @@ bool FaviconDatabase::SetFaviconBitmap(
+@@ -567,6 +568,7 @@ bool FaviconDatabase::SetFaviconBitmap(
bool FaviconDatabase::SetFaviconBitmapLastUpdateTime(FaviconBitmapID bitmap_id,
base::Time time) {
diff --git a/patches/components-history-core-browser-history_types.h.patch b/patches/components-history-core-browser-history_types.h.patch
index e94655f1e9aa..011f0cc2bf94 100644
--- a/patches/components-history-core-browser-history_types.h.patch
+++ b/patches/components-history-core-browser-history_types.h.patch
@@ -1,5 +1,5 @@
diff --git a/components/history/core/browser/history_types.h b/components/history/core/browser/history_types.h
-index 135abf03b84bf2e732bd7094d069efca40f3dca2..9eb7cbe4b9b7bfa45483a1e7f8675c2c11da2a20 100644
+index 803799da3c1f1f11b02c0a45a88c3e1bea7dc4bb..fca7a0cbd352b68bd26bb280ae4687682c6a8f39 100644
--- a/components/history/core/browser/history_types.h
+++ b/components/history/core/browser/history_types.h
@@ -49,6 +49,8 @@ enum VisitSource {
diff --git a/patches/components-omnibox-browser-BUILD.gn.patch b/patches/components-omnibox-browser-BUILD.gn.patch
index f3b748f30f36..57a92721308f 100644
--- a/patches/components-omnibox-browser-BUILD.gn.patch
+++ b/patches/components-omnibox-browser-BUILD.gn.patch
@@ -1,8 +1,8 @@
diff --git a/components/omnibox/browser/BUILD.gn b/components/omnibox/browser/BUILD.gn
-index f47e805fddfc745e60d8596ce2d8402c8994d291..7ea6f1f6d708a15e4464e0de99259daab50eac2d 100644
+index 2263a25d6be18a189fa3234b34dfbb05e11bc4b7..7ba05972cf6484891dd697c2864e1937e7c73f40 100644
--- a/components/omnibox/browser/BUILD.gn
+++ b/components/omnibox/browser/BUILD.gn
-@@ -274,6 +274,7 @@ static_library("browser") {
+@@ -276,6 +276,7 @@ static_library("browser") {
"//ui/base",
"//ui/gfx",
]
diff --git a/patches/components-os_crypt-keychain_password_mac.mm.patch b/patches/components-os_crypt-keychain_password_mac.mm.patch
index b7aa92b2f61e..c44a92376376 100644
--- a/patches/components-os_crypt-keychain_password_mac.mm.patch
+++ b/patches/components-os_crypt-keychain_password_mac.mm.patch
@@ -1,12 +1,19 @@
diff --git a/components/os_crypt/keychain_password_mac.mm b/components/os_crypt/keychain_password_mac.mm
-index f8973f5ed0e213c0d242d2141091607017824ec3..26843a704090138b06d70b905667e7b23075e0dc 100644
+index 5589310e2e1f41a6a97e77bb57a7a71cd09a18be..af1be3edb2b6135bf93c5fdd42781a92a32ddb9a 100644
--- a/components/os_crypt/keychain_password_mac.mm
+++ b/components/os_crypt/keychain_password_mac.mm
-@@ -61,6 +61,7 @@ KeychainPassword::KeychainPassword(const AppleKeychain& keychain)
- KeychainPassword::~KeychainPassword() = default;
+@@ -64,12 +64,14 @@ std::string AddRandomPasswordToKeychain(const AppleKeychain& keychain,
- std::string KeychainPassword::GetPassword() const {
-+ BRAVE_KEYCHAIN_PASSWORD_GET_PASSWORD
- UInt32 password_length = 0;
- void* password_data = nullptr;
- OSStatus error = keychain_.FindGenericPassword(
+ // static
+ KeychainPassword::KeychainNameType& KeychainPassword::GetServiceName() {
++ BRAVE_GET_SERVICE_NAME
+ static KeychainNameContainerType service_name(kDefaultServiceName);
+ return *service_name;
+ }
+
+ // static
+ KeychainPassword::KeychainNameType& KeychainPassword::GetAccountName() {
++ BRAVE_GET_ACCOUNT_NAME
+ static KeychainNameContainerType account_name(kDefaultAccountName);
+ return *account_name;
+ }
diff --git a/patches/components-page_info-page_info.cc.patch b/patches/components-page_info-page_info.cc.patch
index d210670e60c1..eeaf7e23db47 100644
--- a/patches/components-page_info-page_info.cc.patch
+++ b/patches/components-page_info-page_info.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/page_info/page_info.cc b/components/page_info/page_info.cc
-index 7833a3eb78cf157048bdd8fda7987ba3ec796877..eb9739dc513fa493c020f8011444c41708f3200f 100644
+index aeccafb94d3b523a9159411a89ea3a17c08f52ad..8e3e1d4924b900efd7570373ddde5bc7305d76fc 100644
--- a/components/page_info/page_info.cc
+++ b/components/page_info/page_info.cc
-@@ -999,6 +999,7 @@ void PageInfo::PresentSitePermissions() {
+@@ -966,6 +966,7 @@ void PageInfo::PresentSitePermissions() {
}
}
diff --git a/patches/components-password_manager-core-browser-login_database.cc.patch b/patches/components-password_manager-core-browser-login_database.cc.patch
index f7bebd19b47d..f7c738b25976 100644
--- a/patches/components-password_manager-core-browser-login_database.cc.patch
+++ b/patches/components-password_manager-core-browser-login_database.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/password_manager/core/browser/login_database.cc b/components/password_manager/core/browser/login_database.cc
-index da060e22561cefe638035b30c2e419abaf9d07d4..d3cb10289106a1a93a7c30575a64d97e43aa5d38 100644
+index 610bf9ce7df7b4884c45546ff9c2b9803530e7d5..d2aafbf4ffd390b62aa774b74d01aa31feeda7db 100644
--- a/components/password_manager/core/browser/login_database.cc
+++ b/components/password_manager/core/browser/login_database.cc
-@@ -2072,6 +2072,7 @@ FormRetrievalResult LoginDatabase::StatementToForms(
+@@ -2052,6 +2052,7 @@ FormRetrievalResult LoginDatabase::StatementToForms(
EncryptionResult result = InitPasswordFormFromStatement(
*statement, /*decrypt_and_fill_password_value=*/true, &primary_key,
new_form.get());
diff --git a/patches/components-password_manager-core-browser-password_form_filling.cc.patch b/patches/components-password_manager-core-browser-password_form_filling.cc.patch
index ff3bf8bca36d..074b11ff1dcf 100644
--- a/patches/components-password_manager-core-browser-password_form_filling.cc.patch
+++ b/patches/components-password_manager-core-browser-password_form_filling.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/password_manager/core/browser/password_form_filling.cc b/components/password_manager/core/browser/password_form_filling.cc
-index da8f3ccd71b26011376453560be4fd8441f4d1b5..7f3083278b568dee758a9dc2b21aa18f7ea9036e 100644
+index 522a40d5174db20ce5a0fa17d3a79be4f51f4ea3..6ec8e68c0aa59df73c2133447969360e950d72d8 100644
--- a/components/password_manager/core/browser/password_form_filling.cc
+++ b/components/password_manager/core/browser/password_form_filling.cc
-@@ -251,6 +251,7 @@ LikelyFormFilling SendFillInformationToRenderer(
+@@ -220,6 +220,7 @@ LikelyFormFilling SendFillInformationToRenderer(
bool wait_for_username =
wait_for_username_reason != WaitForUsernameReason::kDontWait;
diff --git a/patches/components-permissions-BUILD.gn.patch b/patches/components-permissions-BUILD.gn.patch
index 70000810dc24..a080897973f4 100644
--- a/patches/components-permissions-BUILD.gn.patch
+++ b/patches/components-permissions-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/components/permissions/BUILD.gn b/components/permissions/BUILD.gn
-index 861d73ba795692af40c2faee81efea9758f6bdf8..058af16eedec044fbe412842a7a96c1fb9e95005 100644
+index 5bd511c6824689339cc2340306fc693d189854a7..50e8615fa8d057a5cbfdf22aced95e0c9ea6086f 100644
--- a/components/permissions/BUILD.gn
+++ b/components/permissions/BUILD.gn
@@ -129,6 +129,7 @@ source_set("permissions") {
diff --git a/patches/components-permissions-android-permission_dialog_delegate.cc.patch b/patches/components-permissions-android-permission_dialog_delegate.cc.patch
index 177ed0e46b67..1aff202ac688 100644
--- a/patches/components-permissions-android-permission_dialog_delegate.cc.patch
+++ b/patches/components-permissions-android-permission_dialog_delegate.cc.patch
@@ -1,17 +1,18 @@
diff --git a/components/permissions/android/permission_dialog_delegate.cc b/components/permissions/android/permission_dialog_delegate.cc
-index 4de29c5376b001a7b3b025263fdf224bec57aaf7..2fbd561154e6cd8e81c936c6c399608998bb8696 100644
+index c76378df51a497a9cc53015893e33fa2ae19f1d4..214402321ed8b9f57963832578e636fafee51c9b 100644
--- a/components/permissions/android/permission_dialog_delegate.cc
+++ b/components/permissions/android/permission_dialog_delegate.cc
-@@ -67,11 +67,13 @@ void PermissionDialogDelegate::CreateJavaDelegate(
-
+@@ -95,12 +95,14 @@ PermissionDialogDelegate* PermissionDialogDelegate::CreateForTesting(
void PermissionDialogDelegate::Accept(JNIEnv* env,
const JavaParamRef& obj) {
+ DCHECK(permission_prompt_);
+ BRAVE_PERMISSION_DIALOG_DELEGATE_ACCEPT
permission_prompt_->Accept();
}
void PermissionDialogDelegate::Cancel(JNIEnv* env,
const JavaParamRef& obj) {
+ DCHECK(permission_prompt_);
+ BRAVE_PERMISSION_DIALOG_DELEGATE_CANCEL
permission_prompt_->Deny();
}
diff --git a/patches/components-permissions-permission_context_base.h.patch b/patches/components-permissions-permission_context_base.h.patch
index b22263a8cede..33f65233c03a 100644
--- a/patches/components-permissions-permission_context_base.h.patch
+++ b/patches/components-permissions-permission_context_base.h.patch
@@ -1,8 +1,8 @@
diff --git a/components/permissions/permission_context_base.h b/components/permissions/permission_context_base.h
-index 93b981d2c3878a6936ac14cca13d80d40360531b..c6047ec711cc4aa4f6338f584552e4b8a6274c03 100644
+index 37f849f67c519e59fdc6747fe8262cda3de74723..d24fddd17707109b2e1cc593b2529dfa7958a5d6 100644
--- a/components/permissions/permission_context_base.h
+++ b/components/permissions/permission_context_base.h
-@@ -126,6 +126,7 @@ class PermissionContextBase : public KeyedService,
+@@ -125,6 +125,7 @@ class PermissionContextBase : public KeyedService,
void AddObserver(permissions::Observer* permission_observer);
void RemoveObserver(permissions::Observer* permission_observer);
diff --git a/patches/components-permissions-permission_uma_util.cc.patch b/patches/components-permissions-permission_uma_util.cc.patch
index 4d81216bc82a..bd0b18f974d5 100644
--- a/patches/components-permissions-permission_uma_util.cc.patch
+++ b/patches/components-permissions-permission_uma_util.cc.patch
@@ -1,5 +1,5 @@
diff --git a/components/permissions/permission_uma_util.cc b/components/permissions/permission_uma_util.cc
-index d074d52b184a5db03775a01ba313f76ffedb5f6c..ae6cf5e4618b3d33ef078487c00da0c8e4791a99 100644
+index f990d07b2217033f1db1660f9bc55c310d4aa7aa..eef5b7fae061ec70beca00832d75c75d7f907222 100644
--- a/components/permissions/permission_uma_util.cc
+++ b/components/permissions/permission_uma_util.cc
@@ -107,6 +107,7 @@ RequestTypeForUma GetUmaValueForRequestType(RequestType request_type) {
diff --git a/patches/components-permissions-request_type.cc.patch b/patches/components-permissions-request_type.cc.patch
index 468a91e62803..25a0d70d5d29 100644
--- a/patches/components-permissions-request_type.cc.patch
+++ b/patches/components-permissions-request_type.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/permissions/request_type.cc b/components/permissions/request_type.cc
-index be6afd15393928afda071aa07c06687c15761c96..c71429d8317ad3f97f717dc8f32ae34c111745b5 100644
+index 1202f21e719b26b8b04c1bf330d4f2e335fb7058..739d1e29bcc195f2e7425a50b1da17eed7244659 100644
--- a/components/permissions/request_type.cc
+++ b/components/permissions/request_type.cc
-@@ -235,6 +235,7 @@ const char* PermissionKeyForRequestType(permissions::RequestType request_type) {
+@@ -286,6 +286,7 @@ const char* PermissionKeyForRequestType(permissions::RequestType request_type) {
case permissions::RequestType::kWindowPlacement:
return "window_placement";
#endif
diff --git a/patches/components-policy-tools-generate_policy_source.py.patch b/patches/components-policy-tools-generate_policy_source.py.patch
index 3ba41aa6dc1c..703d30770257 100644
--- a/patches/components-policy-tools-generate_policy_source.py.patch
+++ b/patches/components-policy-tools-generate_policy_source.py.patch
@@ -1,9 +1,9 @@
diff --git a/components/policy/tools/generate_policy_source.py b/components/policy/tools/generate_policy_source.py
-index f8a1c794c3f4629c97158c7974ef26011d67f52e..62625fb3eea1682ae0ea43303a42c6dc72d203f8 100755
+index 4863534b8748bca5ff0137fa1ca06d87f6e80d93..1af418ed4b362d40fd2dc0b65ba78607f74c0505 100755
--- a/components/policy/tools/generate_policy_source.py
+++ b/components/policy/tools/generate_policy_source.py
@@ -52,6 +52,7 @@ PLATFORM_STRINGS = {
- 'chrome.win7': ['win']
+ 'chrome.win7': ['win'],
}
+from policy_source_helper import AddBravePolicies, CHROMIUM_POLICY_KEY
diff --git a/patches/components-safe_browsing-core-common-safe_browsing_prefs.cc.patch b/patches/components-safe_browsing-core-common-safe_browsing_prefs.cc.patch
index 3e300ab35f60..f3f7172cb625 100644
--- a/patches/components-safe_browsing-core-common-safe_browsing_prefs.cc.patch
+++ b/patches/components-safe_browsing-core-common-safe_browsing_prefs.cc.patch
@@ -1,5 +1,5 @@
diff --git a/components/safe_browsing/core/common/safe_browsing_prefs.cc b/components/safe_browsing/core/common/safe_browsing_prefs.cc
-index 4bdf58ceda424dec5b54ef892a4bff6847ac2f7d..eb45c1d13d40fe9dc3cb9c95b4b0454516f68a79 100644
+index 479c0634baf69f7d8223c6c6135af62a1495b07e..ccec77e16afc93d06779b1cb8e53d96f643aa5f1 100644
--- a/components/safe_browsing/core/common/safe_browsing_prefs.cc
+++ b/components/safe_browsing/core/common/safe_browsing_prefs.cc
@@ -137,6 +137,7 @@ bool IsSafeBrowsingEnabled(const PrefService& prefs) {
diff --git a/patches/components-search_engines-default_search_manager.cc.patch b/patches/components-search_engines-default_search_manager.cc.patch
index 2c7f6cfb18dd..4415056c428e 100644
--- a/patches/components-search_engines-default_search_manager.cc.patch
+++ b/patches/components-search_engines-default_search_manager.cc.patch
@@ -1,8 +1,8 @@
diff --git a/components/search_engines/default_search_manager.cc b/components/search_engines/default_search_manager.cc
-index ce9d88596266ae4b170211c13da6fe611fdb650c..f836a3922ff1a09a513abcba360073bd83bd3a51 100644
+index 8fa9c57b3811d6fa15baab9f20757d1c423bbe6a..e8854e01f00a5a59dab741627073a8f1f2acba7f 100644
--- a/components/search_engines/default_search_manager.cc
+++ b/components/search_engines/default_search_manager.cc
-@@ -306,6 +306,7 @@ void DefaultSearchManager::LoadDefaultSearchEngineFromPrefs() {
+@@ -309,6 +309,7 @@ void DefaultSearchManager::LoadDefaultSearchEngineFromPrefs() {
// Check if default search preference is overriden by extension.
if (pref->IsExtensionControlled()) {
extension_default_search_ = std::move(turl_data);
diff --git a/patches/components-search_engines-prepopulated_engines.json.patch b/patches/components-search_engines-prepopulated_engines.json.patch
index dc4c4ec44d0d..c0f1f56d61e1 100644
--- a/patches/components-search_engines-prepopulated_engines.json.patch
+++ b/patches/components-search_engines-prepopulated_engines.json.patch
@@ -1,5 +1,5 @@
diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json
-index 269a4897ffc73efce0d50f305cbb00a6ccf74281..dc2ee421ae98570e7bd8d42a22d9d9055c2c3f18 100644
+index 3197f270725cf05655cac737095dc66fa117a579..c2b8804d2237ffe3aa1040f5fd3f2cd03c1485f2 100644
--- a/components/search_engines/prepopulated_engines.json
+++ b/components/search_engines/prepopulated_engines.json
@@ -91,17 +91,6 @@
@@ -20,7 +20,7 @@ index 269a4897ffc73efce0d50f305cbb00a6ccf74281..dc2ee421ae98570e7bd8d42a22d9d905
"ecosia": {
"name": "Ecosia",
"keyword": "ecosia.org",
-@@ -156,16 +145,6 @@
+@@ -157,16 +146,6 @@
"id": 67
},
diff --git a/patches/components-sync-driver-BUILD.gn.patch b/patches/components-sync-driver-BUILD.gn.patch
index 33e46c15e22a..d986830798f7 100644
--- a/patches/components-sync-driver-BUILD.gn.patch
+++ b/patches/components-sync-driver-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/components/sync/driver/BUILD.gn b/components/sync/driver/BUILD.gn
-index 60b8b3018ee9f2ef059be10eb4ae8bfc2cb56e94..da09a1bce445fd40494de848dee7a25d778a6427 100644
+index b2828a0321267bba655d7872c04df3b8d07ead87..424610060c147892294d35623d4345e2d19d63fe 100644
--- a/components/sync/driver/BUILD.gn
+++ b/components/sync/driver/BUILD.gn
@@ -110,6 +110,7 @@ static_library("driver") {
diff --git a/patches/components-sync-driver-sync_service_impl.h.patch b/patches/components-sync-driver-sync_service_impl.h.patch
index ece73e0fd956..08f299f3e2fd 100644
--- a/patches/components-sync-driver-sync_service_impl.h.patch
+++ b/patches/components-sync-driver-sync_service_impl.h.patch
@@ -1,5 +1,5 @@
diff --git a/components/sync/driver/sync_service_impl.h b/components/sync/driver/sync_service_impl.h
-index 47d55621c8a53e360e85512eabc5cdb5edb290e0..0c96fd6443b30c256e5a3c37d533f81afd457531 100644
+index 6a1cc486ec57e08a394cd46a43881d76ec60fcb2..89560218a2a07ee9719fb6f045071879fcfa57f6 100644
--- a/components/sync/driver/sync_service_impl.h
+++ b/components/sync/driver/sync_service_impl.h
@@ -251,6 +251,7 @@ class SyncServiceImpl : public SyncService,
diff --git a/patches/components-sync-engine-model_type_worker.h.patch b/patches/components-sync-engine-model_type_worker.h.patch
index eb5b07e1f0cb..e62ef65c865f 100644
--- a/patches/components-sync-engine-model_type_worker.h.patch
+++ b/patches/components-sync-engine-model_type_worker.h.patch
@@ -1,8 +1,8 @@
diff --git a/components/sync/engine/model_type_worker.h b/components/sync/engine/model_type_worker.h
-index a2ee15b2842a30437519196547bc67a161434ea7..a596d1b562a06dec774f3dfcdb2322df0f42c5ab 100644
+index 68da87a8f37996f16a73d046e4dfd9cc3ac8380c..95c177f4826c03dca85318ae2003422481ce10b3 100644
--- a/components/sync/engine/model_type_worker.h
+++ b/components/sync/engine/model_type_worker.h
-@@ -156,6 +156,7 @@ class ModelTypeWorker : public UpdateHandler,
+@@ -159,6 +159,7 @@ class ModelTypeWorker : public UpdateHandler,
bool IsEncryptionEnabledForTest() const { return encryption_enabled_; }
diff --git a/patches/components-sync-protocol-proto_visitors.h.patch b/patches/components-sync-protocol-proto_visitors.h.patch
index faf987b5d877..1dd9373e9e9b 100644
--- a/patches/components-sync-protocol-proto_visitors.h.patch
+++ b/patches/components-sync-protocol-proto_visitors.h.patch
@@ -1,8 +1,8 @@
diff --git a/components/sync/protocol/proto_visitors.h b/components/sync/protocol/proto_visitors.h
-index cec10aa673965a1764d21dc8d66a5ddcf78ff683..73858d6565b282a6c7fe3aff297c365b1c6110ef 100644
+index 38e65beae7bcb1d8e645481983b3cf590e62989d..9a98badff0acc235b8a7a631f9d294b8577d91af 100644
--- a/components/sync/protocol/proto_visitors.h
+++ b/components/sync/protocol/proto_visitors.h
-@@ -390,6 +390,7 @@ VISIT_PROTO_FIELDS(const sync_pb::DeviceInfoSpecifics& proto) {
+@@ -397,6 +397,7 @@ VISIT_PROTO_FIELDS(const sync_pb::DeviceInfoSpecifics& proto) {
VISIT(manufacturer);
VISIT(last_updated_timestamp);
VISIT(feature_fields);
@@ -10,7 +10,7 @@ index cec10aa673965a1764d21dc8d66a5ddcf78ff683..73858d6565b282a6c7fe3aff297c365b
VISIT(sharing_fields);
VISIT(invalidation_fields);
VISIT(paask_fields);
-@@ -402,6 +403,7 @@ VISIT_PROTO_FIELDS(const sync_pb::FeatureSpecificFields& proto) {
+@@ -409,6 +410,7 @@ VISIT_PROTO_FIELDS(const sync_pb::FeatureSpecificFields& proto) {
VISIT(send_tab_to_self_receiving_enabled);
}
diff --git a/patches/components-sync-protocol-protocol_sources.gni.patch b/patches/components-sync-protocol-protocol_sources.gni.patch
index 84de992cc4f0..8794f7811251 100644
--- a/patches/components-sync-protocol-protocol_sources.gni.patch
+++ b/patches/components-sync-protocol-protocol_sources.gni.patch
@@ -1,8 +1,8 @@
diff --git a/components/sync/protocol/protocol_sources.gni b/components/sync/protocol/protocol_sources.gni
-index 5fe3bf1f5b3df84a756224fe3eb7c1d3b095dca0..7a1e218bec38364b111175497a9fa7b51d694ca0 100644
+index 5e136c9efcff3ce06775662334f660ed032e7b66..2549ec4b7216feee13d02b5bee64da6251a07a98 100644
--- a/components/sync/protocol/protocol_sources.gni
+++ b/components/sync/protocol/protocol_sources.gni
-@@ -76,3 +76,4 @@ foreach(base, sync_protocol_bases) {
+@@ -81,3 +81,4 @@ foreach(base, sync_protocol_bases) {
sync_protocol_pyprotos +=
[ "$root_out_dir/pyproto/components/sync/protocol/${base}_pb2.py" ]
}
diff --git a/patches/components-sync_device_info-BUILD.gn.patch b/patches/components-sync_device_info-BUILD.gn.patch
index 75467e0ff1c7..f1a3cb68fa14 100644
--- a/patches/components-sync_device_info-BUILD.gn.patch
+++ b/patches/components-sync_device_info-BUILD.gn.patch
@@ -1,8 +1,8 @@
diff --git a/components/sync_device_info/BUILD.gn b/components/sync_device_info/BUILD.gn
-index 59c674cc6498b13f09c88912f7f221373ae5826d..ad93ff9655b2726d1af73ce820ce051c541d53fe 100644
+index b51c11cc11aff673093b083a60ef33ab459e3bc9..565ae0d66a1a6e9fb519835c290e3b8504f06040 100644
--- a/components/sync_device_info/BUILD.gn
+++ b/components/sync_device_info/BUILD.gn
-@@ -81,6 +81,7 @@ static_library("sync_device_info") {
+@@ -85,6 +85,7 @@ static_library("sync_device_info") {
"//chromeos/system",
]
}
diff --git a/patches/components-sync_device_info-device_info_sync_bridge.cc.patch b/patches/components-sync_device_info-device_info_sync_bridge.cc.patch
index 2043a47a10c7..dff5c4f8fec2 100644
--- a/patches/components-sync_device_info-device_info_sync_bridge.cc.patch
+++ b/patches/components-sync_device_info-device_info_sync_bridge.cc.patch
@@ -1,5 +1,5 @@
diff --git a/components/sync_device_info/device_info_sync_bridge.cc b/components/sync_device_info/device_info_sync_bridge.cc
-index ba8bcf1bba1e3242ea0a588b191c221c07fe8a73..93a8d04117446670afa1ba30e474ba554289f30c 100644
+index 4b1a692fe1e58f9f4f92c2c0b1b3fa567490e930..3d7bf45caeb73a8967b447a435ab3a0bd342ea61 100644
--- a/components/sync_device_info/device_info_sync_bridge.cc
+++ b/components/sync_device_info/device_info_sync_bridge.cc
@@ -259,6 +259,7 @@ std::unique_ptr MakeLocalDeviceSpecifics(
diff --git a/patches/components-translate-core-browser-BUILD.gn.patch b/patches/components-translate-core-browser-BUILD.gn.patch
index a4170089f4f2..835fdc1e40d4 100644
--- a/patches/components-translate-core-browser-BUILD.gn.patch
+++ b/patches/components-translate-core-browser-BUILD.gn.patch
@@ -1,8 +1,8 @@
diff --git a/components/translate/core/browser/BUILD.gn b/components/translate/core/browser/BUILD.gn
-index c9415a06f38e7120244ea91ddb0cb87bdba2fa3f..c55f49c5e239b2fd19fffecd64bf7a4795cce09d 100644
+index ebf718409b2eab70d889addbf828d3ab646dc1fb..f3fbc4fb5bb4ff7532fff3f5751dce10139220a1 100644
--- a/components/translate/core/browser/BUILD.gn
+++ b/components/translate/core/browser/BUILD.gn
-@@ -86,6 +86,7 @@ static_library("browser") {
+@@ -85,6 +85,7 @@ static_library("browser") {
]
deps += [ "//components/infobars/core" ]
}
diff --git a/patches/components-variations-variations_seed_store.cc.patch b/patches/components-variations-variations_seed_store.cc.patch
index 8b7ea3b2e273..2ff5fcdf7264 100644
--- a/patches/components-variations-variations_seed_store.cc.patch
+++ b/patches/components-variations-variations_seed_store.cc.patch
@@ -1,5 +1,5 @@
diff --git a/components/variations/variations_seed_store.cc b/components/variations/variations_seed_store.cc
-index fd067904a6d93f29f070c60255c520e727f4c63a..a8066e9137d36a515c3cc63bc971589b5f997840 100644
+index 1829cc89f8434031e8139f8209419cd8d56f9376..3d3f3f845bb6604c32151b2e5e04a12e4e79c4c0 100644
--- a/components/variations/variations_seed_store.cc
+++ b/components/variations/variations_seed_store.cc
@@ -35,6 +35,7 @@ namespace {
@@ -7,6 +7,6 @@ index fd067904a6d93f29f070c60255c520e727f4c63a..a8066e9137d36a515c3cc63bc971589b
// signatures.
const uint8_t kPublicKey[] = {
+BRAVE_K_PUBLIC_KEY
- 0x30, 0x59, 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02, 0x01,
- 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07, 0x03, 0x42, 0x00,
- 0x04, 0x51, 0x7c, 0x31, 0x4b, 0x50, 0x42, 0xdd, 0x59, 0xda, 0x0b, 0xfa, 0x43,
+ 0x30, 0x59, 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02,
+ 0x01, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07, 0x03,
+ 0x42, 0x00, 0x04, 0x51, 0x7c, 0x31, 0x4b, 0x50, 0x42, 0xdd, 0x59, 0xda,
diff --git a/patches/components-vector_icons-aggregate_vector_icons.py.patch b/patches/components-vector_icons-aggregate_vector_icons.py.patch
index 098ec83f24c1..1b8e475291da 100644
--- a/patches/components-vector_icons-aggregate_vector_icons.py.patch
+++ b/patches/components-vector_icons-aggregate_vector_icons.py.patch
@@ -1,5 +1,5 @@
diff --git a/components/vector_icons/aggregate_vector_icons.py b/components/vector_icons/aggregate_vector_icons.py
-index 7239690c454de446ee1e9196baf07949cb73f411..80cad0b9165588416af777213b65e5ec97b2d7dd 100644
+index dbe60ad7b522eccd5613fe9a13197935a9ad814e..996d30dda5c62ea1b3c64d97266525c85f14311e 100644
--- a/components/vector_icons/aggregate_vector_icons.py
+++ b/components/vector_icons/aggregate_vector_icons.py
@@ -102,7 +102,7 @@ def ExtractIconReps(icon_file_name):
diff --git a/patches/content-browser-browser_main_loop.h.patch b/patches/content-browser-browser_main_loop.h.patch
index e5f052c7af75..076c4d2d561d 100644
--- a/patches/content-browser-browser_main_loop.h.patch
+++ b/patches/content-browser-browser_main_loop.h.patch
@@ -1,5 +1,5 @@
diff --git a/content/browser/browser_main_loop.h b/content/browser/browser_main_loop.h
-index 090ca9c6e8785c6e9f1b9245771645ea19805795..6201ea7d26fc81559eb0245eeef70c733bf0ca4b 100644
+index 5d41104a616c53d93ff8eb68ce2f87b1c2be7025..d239626e954b1f7979062015bec38a1cbc4f4dbe 100644
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -153,6 +153,7 @@ class CONTENT_EXPORT BrowserMainLoop {
diff --git a/patches/content-browser-renderer_host-navigation_controller_impl.cc.patch b/patches/content-browser-renderer_host-navigation_controller_impl.cc.patch
index cf8de8c14d10..4be4d6444b2c 100644
--- a/patches/content-browser-renderer_host-navigation_controller_impl.cc.patch
+++ b/patches/content-browser-renderer_host-navigation_controller_impl.cc.patch
@@ -1,8 +1,8 @@
diff --git a/content/browser/renderer_host/navigation_controller_impl.cc b/content/browser/renderer_host/navigation_controller_impl.cc
-index abaecb541d0dfa092cd52c76cb0620f4f0e4479a..8eed700b8ac870d3847d08720be88f44fca2942a 100644
+index 50ab1c94b8871b62743ee87f4a67fcb6a615afc9..4bef15d30d66b2e452b115073cd3a9cf8cf09975 100644
--- a/content/browser/renderer_host/navigation_controller_impl.cc
+++ b/content/browser/renderer_host/navigation_controller_impl.cc
-@@ -3139,16 +3139,17 @@ base::WeakPtr NavigationControllerImpl::NavigateWithoutEntry(
+@@ -3159,16 +3159,17 @@ base::WeakPtr NavigationControllerImpl::NavigateWithoutEntry(
// Note: we intentionally leave the pending entry in place for renderer debug
// URLs, unlike the cases below where we clear it if the navigation doesn't
// proceed.
diff --git a/patches/content-browser-renderer_host-navigation_request.cc.patch b/patches/content-browser-renderer_host-navigation_request.cc.patch
index 36a2e91c8d4f..1b4db894e573 100644
--- a/patches/content-browser-renderer_host-navigation_request.cc.patch
+++ b/patches/content-browser-renderer_host-navigation_request.cc.patch
@@ -1,8 +1,8 @@
diff --git a/content/browser/renderer_host/navigation_request.cc b/content/browser/renderer_host/navigation_request.cc
-index 986d27fc91a78dcf6d268a50d1abd74506309d3c..74fe7c776e92f765218c0b50271821935e6cb035 100644
+index 8d0575e107ad397a43031f99780938948e389609..f566653aa55b49ccd20487127241a82457591813 100644
--- a/content/browser/renderer_host/navigation_request.cc
+++ b/content/browser/renderer_host/navigation_request.cc
-@@ -2370,6 +2370,7 @@ void NavigationRequest::OnRequestRedirected(
+@@ -2405,6 +2405,7 @@ void NavigationRequest::OnRequestRedirected(
common_params_->url = redirect_info.new_url;
common_params_->method = redirect_info.new_method;
common_params_->referrer->url = GURL(redirect_info.new_referrer);
@@ -10,7 +10,7 @@ index 986d27fc91a78dcf6d268a50d1abd74506309d3c..74fe7c776e92f765218c0b5027182193
common_params_->referrer = Referrer::SanitizeForRequest(
common_params_->url, *common_params_->referrer);
-@@ -3552,6 +3553,7 @@ void NavigationRequest::OnStartChecksComplete(
+@@ -3636,6 +3637,7 @@ void NavigationRequest::OnStartChecksComplete(
headers.MergeFrom(TakeModifiedRequestHeaders());
begin_params_->headers = headers.ToString();
diff --git a/patches/content-common-BUILD.gn.patch b/patches/content-common-BUILD.gn.patch
index db111b0b5dcc..bb01c1872a2d 100644
--- a/patches/content-common-BUILD.gn.patch
+++ b/patches/content-common-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn
-index e7ce731076817476413af9e82e634318d57c5aef..1d7eb1eae43aadb06f437afa51b194dd80dc6f28 100644
+index ee5a5407303515c7473b0b4e745c199b1d9b4288..8689d7b981865f2102a0020fcf8fa8f78b5d4448 100644
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -42,6 +42,7 @@ source_set("common") {
diff --git a/patches/content-public-browser-content_browser_client.h.patch b/patches/content-public-browser-content_browser_client.h.patch
index 2036ca218f20..e03997370754 100644
--- a/patches/content-public-browser-content_browser_client.h.patch
+++ b/patches/content-public-browser-content_browser_client.h.patch
@@ -1,8 +1,8 @@
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
-index 799490ac3f7c03cb804ef1151b3b65768a760bc8..1ad0842caca3bd0798d46379b168300ed4b4c6a1 100644
+index 65638e207d6bffd24a1121eb32c86545ba884007..e8e72db92e2b2796c23575bf2ca593189e6ffe15 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
-@@ -1860,6 +1860,7 @@ class CONTENT_EXPORT ContentBrowserClient {
+@@ -1868,6 +1868,7 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual ui::AXMode GetAXModeForBrowserContext(
BrowserContext* browser_context);
diff --git a/patches/content-renderer-render_frame_impl.cc.patch b/patches/content-renderer-render_frame_impl.cc.patch
index 9595ecc32a4c..a614f681bbf8 100644
--- a/patches/content-renderer-render_frame_impl.cc.patch
+++ b/patches/content-renderer-render_frame_impl.cc.patch
@@ -1,8 +1,8 @@
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
-index 14016f782e3b976f2ce484f45c057d5b8004321d..60f274adbbf369f868c1c8dbb5da6273440b4173 100644
+index d88901876c14b375bfe2e65698d741e10882fd48..8e6354a56b1816f2d27fb5193a0df9f444aee4c2 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
-@@ -4516,6 +4516,7 @@ bool RenderFrameImpl::ShouldUseUserAgentOverride() const {
+@@ -4510,6 +4510,7 @@ bool RenderFrameImpl::ShouldUseUserAgentOverride() const {
// Temporarily return early and fix properly as part of
// https://crbug.com/426555.
if (web_view->MainFrame()->IsWebRemoteFrame())
diff --git a/patches/content-renderer-render_thread_impl.cc.patch b/patches/content-renderer-render_thread_impl.cc.patch
index b3b53894d993..f4cd68cc42da 100644
--- a/patches/content-renderer-render_thread_impl.cc.patch
+++ b/patches/content-renderer-render_thread_impl.cc.patch
@@ -1,8 +1,8 @@
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
-index d372704f462dcc7351796b59b39b4c95d6db84d5..6a89deb71d4cd046a30154059a885a1952d5b8c7 100644
+index c2b1d0d10b5222342761dc03cc3c734fd610814a..26f405508f71f392150e63336fdd3d69272b31e3 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
-@@ -942,6 +942,7 @@ void RenderThreadImpl::InitializeWebKit(mojo::BinderMap* binders) {
+@@ -944,6 +944,7 @@ void RenderThreadImpl::InitializeWebKit(mojo::BinderMap* binders) {
}
void RenderThreadImpl::RegisterSchemes() {
diff --git a/patches/extensions-browser-api-socket-tcp_socket.cc.patch b/patches/extensions-browser-api-socket-tcp_socket.cc.patch
index 6e5a7fcdcb92..1777fb695ff6 100644
--- a/patches/extensions-browser-api-socket-tcp_socket.cc.patch
+++ b/patches/extensions-browser-api-socket-tcp_socket.cc.patch
@@ -1,5 +1,5 @@
diff --git a/extensions/browser/api/socket/tcp_socket.cc b/extensions/browser/api/socket/tcp_socket.cc
-index 92943d1c38d5b2136b71fd87a1a7a2eed7990f80..022bca2c79b06da9a4216063b2f2781677790b35 100644
+index eba3d2d74de01dcf083c9065519242e31c6ab0d8..4a574a069325289d1da090d88fc5e34bf2e9f8b7 100644
--- a/extensions/browser/api/socket/tcp_socket.cc
+++ b/extensions/browser/api/socket/tcp_socket.cc
@@ -153,8 +153,16 @@ void TCPSocket::Disconnect(bool socket_destroying) {
diff --git a/patches/extensions-browser-api-web_request-web_request_api.cc.patch b/patches/extensions-browser-api-web_request-web_request_api.cc.patch
index e17720da3819..b46df1c8c0d6 100644
--- a/patches/extensions-browser-api-web_request-web_request_api.cc.patch
+++ b/patches/extensions-browser-api-web_request-web_request_api.cc.patch
@@ -1,8 +1,8 @@
diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc
-index 1e15e03305b3a110dcaac66b35f08ad36f36edf3..b302a112e712a923c654875040db9e81dd7092c7 100644
+index b5abd5ce7c19b92dbd15df786c2c7fba1e0f3917..88ff2944f379747d8bdd857b67634d993f09b407 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
-@@ -1301,6 +1301,9 @@ ExtensionWebRequestEventRouter::OnAuthRequired(
+@@ -1303,6 +1303,9 @@ ExtensionWebRequestEventRouter::OnAuthRequired(
const net::AuthChallengeInfo& auth_info,
AuthCallback callback,
net::AuthCredentials* credentials) {
diff --git a/patches/extensions-browser-sandboxed_unpacker.cc.patch b/patches/extensions-browser-sandboxed_unpacker.cc.patch
index 5adf42aae0e7..5a2660ec58a2 100644
--- a/patches/extensions-browser-sandboxed_unpacker.cc.patch
+++ b/patches/extensions-browser-sandboxed_unpacker.cc.patch
@@ -1,8 +1,8 @@
diff --git a/extensions/browser/sandboxed_unpacker.cc b/extensions/browser/sandboxed_unpacker.cc
-index 5b7ec4d374c179496ac097250b29f07596eafb9f..4a025b4b2a6d81dafd779f32602788e126ab6047 100644
+index ae96fc27a67c1a28d6385811448597f121169e28..f8455c8543176b38b1573a09852d51657c60a376 100644
--- a/extensions/browser/sandboxed_unpacker.cc
+++ b/extensions/browser/sandboxed_unpacker.cc
-@@ -991,6 +991,7 @@ absl::optional SandboxedUnpacker::RewriteManifestFile(
+@@ -995,6 +995,7 @@ absl::optional SandboxedUnpacker::RewriteManifestFile(
DCHECK(!public_key_.empty());
base::Value final_manifest = manifest.Clone();
final_manifest.SetStringKey(manifest_keys::kPublicKey, public_key_);
diff --git a/patches/extensions-common-api-_api_features.json.patch b/patches/extensions-common-api-_api_features.json.patch
index 84415972b8b0..4a3bdd34a41b 100644
--- a/patches/extensions-common-api-_api_features.json.patch
+++ b/patches/extensions-common-api-_api_features.json.patch
@@ -1,5 +1,5 @@
diff --git a/extensions/common/api/_api_features.json b/extensions/common/api/_api_features.json
-index ba741dfdbc766f3301cd279735dd1ff71b723aeb..c387625867a075114259054e6f2eacc27620ad24 100644
+index d06120a16b6844f9797db135f1259165d517dcea..2e58f29b31f3fa943b0ff74627a30cba809fdfdd 100644
--- a/extensions/common/api/_api_features.json
+++ b/extensions/common/api/_api_features.json
@@ -527,6 +527,7 @@
diff --git a/patches/ios-chrome-app-BUILD.gn.patch b/patches/ios-chrome-app-BUILD.gn.patch
new file mode 100644
index 000000000000..593099144717
--- /dev/null
+++ b/patches/ios-chrome-app-BUILD.gn.patch
@@ -0,0 +1,67 @@
+diff --git a/ios/chrome/app/BUILD.gn b/ios/chrome/app/BUILD.gn
+index 6eb60dddf6cd7fe5a87b2e463187db09a2b5d7cb..655437ba50c66ef39b0c59a0fcc3a955b2609c1f 100644
+--- a/ios/chrome/app/BUILD.gn
++++ b/ios/chrome/app/BUILD.gn
+@@ -156,23 +156,25 @@ source_set("content_suggestions_scheduler_app_state_agent") {
+ ]
+ }
+
+-source_set("credential_provider_migrator_app_agent") {
+- configs += [ "//build/config/compiler:enable_arc" ]
+- sources = [
+- "credential_provider_migrator_app_agent.h",
+- "credential_provider_migrator_app_agent.mm",
+- ]
+- deps = [
+- "//components/keyed_service/core",
+- "//ios/chrome/app/application_delegate:app_state_header",
+- "//ios/chrome/app/application_delegate:observing_app_state_agent",
+- "//ios/chrome/browser/credential_provider",
+- "//ios/chrome/browser/passwords:store_factory",
+- "//ios/chrome/browser/ui/main:browser_interface_provider",
+- "//ios/chrome/browser/ui/main:scene_state_header",
+- "//ios/chrome/common/app_group",
+- "//ios/chrome/common/credential_provider",
+- ]
++if (ios_enable_credential_provider_extension) {
++ source_set("credential_provider_migrator_app_agent") {
++ configs += [ "//build/config/compiler:enable_arc" ]
++ sources = [
++ "credential_provider_migrator_app_agent.h",
++ "credential_provider_migrator_app_agent.mm",
++ ]
++ deps = [
++ "//components/keyed_service/core",
++ "//ios/chrome/app/application_delegate:app_state_header",
++ "//ios/chrome/app/application_delegate:observing_app_state_agent",
++ "//ios/chrome/browser/credential_provider",
++ "//ios/chrome/browser/passwords:store_factory",
++ "//ios/chrome/browser/ui/main:browser_interface_provider",
++ "//ios/chrome/browser/ui/main:scene_state_header",
++ "//ios/chrome/common/app_group",
++ "//ios/chrome/common/credential_provider",
++ ]
++ }
+ }
+
+ source_set("app_metrics_app_state_agent") {
+@@ -284,7 +286,6 @@ source_set("app_internal") {
+ ":app_metrics_app_state_agent",
+ ":blocking_scene_commands",
+ ":content_suggestions_scheduler_app_state_agent",
+- ":credential_provider_migrator_app_agent",
+ ":enterprise_app_agent",
+ ":first_run_app_state_agent",
+ ":mode",
+@@ -406,7 +407,10 @@ source_set("app_internal") {
+ ]
+
+ if (ios_enable_credential_provider_extension) {
+- deps += [ "//ios/chrome/browser/credential_provider" ]
++ deps += [
++ ":credential_provider_migrator_app_agent",
++ "//ios/chrome/browser/credential_provider"
++ ]
+ }
+
+ frameworks = [
diff --git a/patches/ios-chrome-app-main_controller.mm.patch b/patches/ios-chrome-app-main_controller.mm.patch
new file mode 100644
index 000000000000..2ee84f8bb808
--- /dev/null
+++ b/patches/ios-chrome-app-main_controller.mm.patch
@@ -0,0 +1,14 @@
+diff --git a/ios/chrome/app/main_controller.mm b/ios/chrome/app/main_controller.mm
+index f941eb6b60c46446a255d3a621d9385f20b9db8a..74b7f566a37fe00f8085fcc073675251e42ad915 100644
+--- a/ios/chrome/app/main_controller.mm
++++ b/ios/chrome/app/main_controller.mm
+@@ -660,7 +660,9 @@ void MainControllerAuthenticationServiceDelegate::ClearBrowsingData(
+ [self.appState addAgent:[[IncognitoUsageAppStateAgent alloc] init]];
+ [self.appState addAgent:[[FirstRunAppAgent alloc] init]];
+ [self.appState addAgent:[[CertificatePolicyAppAgent alloc] init]];
++#if BUILDFLAG(IOS_CREDENTIAL_PROVIDER_ENABLED)
+ [self.appState addAgent:[[CredentialProviderAppAgent alloc] init]];
++#endif
+ }
+
+ #pragma mark - Property implementation.
diff --git a/patches/ios-chrome-browser-prefs-browser_prefs.mm.patch b/patches/ios-chrome-browser-prefs-browser_prefs.mm.patch
index 24306fa1547e..9dea97c5507e 100644
--- a/patches/ios-chrome-browser-prefs-browser_prefs.mm.patch
+++ b/patches/ios-chrome-browser-prefs-browser_prefs.mm.patch
@@ -1,8 +1,8 @@
diff --git a/ios/chrome/browser/prefs/browser_prefs.mm b/ios/chrome/browser/prefs/browser_prefs.mm
-index b49244ff645daa99bc13a959076e4681e41f0f30..8924be3929cd2b83fc63c7536d2d75f77d881c62 100644
+index d0facd07f004e35c7f4ff7e0b10d07fb79924840..8d0d3103fb0efa770f5ec845e62cc52d2aa068cb 100644
--- a/ios/chrome/browser/prefs/browser_prefs.mm
+++ b/ios/chrome/browser/prefs/browser_prefs.mm
-@@ -272,6 +272,7 @@ void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) {
+@@ -277,6 +277,7 @@ void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) {
if (IsReadingListMessagesEnabled()) {
registry->RegisterBooleanPref(kPrefReadingListMessagesNeverShow, false);
}
diff --git a/patches/mojo-public-tools-mojom-mojom_parser.py.patch b/patches/mojo-public-tools-mojom-mojom_parser.py.patch
index e291af2b1757..8b9325c6b748 100644
--- a/patches/mojo-public-tools-mojom-mojom_parser.py.patch
+++ b/patches/mojo-public-tools-mojom-mojom_parser.py.patch
@@ -1,5 +1,5 @@
diff --git a/mojo/public/tools/mojom/mojom_parser.py b/mojo/public/tools/mojom/mojom_parser.py
-index 07a7ba5662d20dfec4ed3ba324705944ab63bf5d..db0a4f0a7981539ea159b0739307c18c8de5f62a 100755
+index 74beb077dab965105b35177d3ef89572fde55294..d27209e142763f04d029cd5f7a879596f9b734b0 100755
--- a/mojo/public/tools/mojom/mojom_parser.py
+++ b/mojo/public/tools/mojom/mojom_parser.py
@@ -178,6 +178,7 @@ def _ParseAstHelper(mojom_abspath, enabled_features):
diff --git a/patches/net-BUILD.gn.patch b/patches/net-BUILD.gn.patch
index 883b9aa3f997..eeba229815c7 100644
--- a/patches/net-BUILD.gn.patch
+++ b/patches/net-BUILD.gn.patch
@@ -1,8 +1,8 @@
diff --git a/net/BUILD.gn b/net/BUILD.gn
-index 028a63ba6fd4b6c7f3878f5f8a3421997be984b5..bcec0106682e150b92f96672103f1996afda5880 100644
+index d5d72fbbea5d7f2fdbbaee86b11a732bff616da6..2382a09a7b9fdf131208fffdb9dfbe963cc18f53 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
-@@ -1136,6 +1136,7 @@ component("net") {
+@@ -1140,6 +1140,7 @@ component("net") {
"reporting/reporting_uploader.h",
]
}
diff --git a/patches/net-cookies-canonical_cookie.cc.patch b/patches/net-cookies-canonical_cookie.cc.patch
index 415ff40f8d80..89246e117154 100644
--- a/patches/net-cookies-canonical_cookie.cc.patch
+++ b/patches/net-cookies-canonical_cookie.cc.patch
@@ -1,12 +1,12 @@
diff --git a/net/cookies/canonical_cookie.cc b/net/cookies/canonical_cookie.cc
-index 7252d48fff125dec90c0e18c150b613264bd24e5..68f68e32606e555b35fbc7506d76f194e5873953 100644
+index e9d0122b6c225bbfe137b780e79f69e4fafb8762..675b6dc1bc8fbf70bd69eacab38c3388329f795b 100644
--- a/net/cookies/canonical_cookie.cc
+++ b/net/cookies/canonical_cookie.cc
-@@ -528,6 +528,7 @@ std::unique_ptr CanonicalCookie::Create(
+@@ -546,6 +546,7 @@ std::unique_ptr CanonicalCookie::Create(
// Get the port, this will get a default value if a port isn't provided.
int source_port = url.EffectiveIntPort();
+ BRAVE_CREATE
+ // TODO(crbug.com/987177) Add partition key if Partitioned is present in the
+ // cookie line.
std::unique_ptr cc = base::WrapUnique(new CanonicalCookie(
- parsed_cookie.Name(), parsed_cookie.Value(), cookie_domain, cookie_path,
- creation_time, cookie_expires, creation_time, parsed_cookie.IsSecure(),
diff --git a/patches/net-dns-BUILD.gn.patch b/patches/net-dns-BUILD.gn.patch
index 7d42dac338fa..3e11f61cffc8 100644
--- a/patches/net-dns-BUILD.gn.patch
+++ b/patches/net-dns-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/net/dns/BUILD.gn b/net/dns/BUILD.gn
-index 851032d5ca9493d8f301ba8bed20f6fb17cae1d7..07d614db48a5bbc734cb1d3a907799c53988a143 100644
+index 1895dfb66544f8e51f7cce980a76cea4980d4ac0..0dd67f2eab3f57841713959f51b1e14b81f281dd 100644
--- a/net/dns/BUILD.gn
+++ b/net/dns/BUILD.gn
@@ -23,6 +23,7 @@ source_set("dns") {
@@ -10,15 +10,15 @@ index 851032d5ca9493d8f301ba8bed20f6fb17cae1d7..07d614db48a5bbc734cb1d3a907799c5
public = []
sources = [
-@@ -212,6 +213,7 @@ source_set("host_resolver") {
- # wrapper.
- "//services/proxy_resolver/*",
+@@ -209,6 +210,7 @@ source_set("host_resolver") {
+ "//net/*",
+ "//services/network/*",
]
+ friend += brave_dns_friend
sources = [
"dns_config.h",
-@@ -308,6 +310,7 @@ source_set("dns_client") {
+@@ -304,6 +306,7 @@ source_set("dns_client") {
"//net/*",
"//services/network/*",
]
diff --git a/patches/net-dns-host_cache.cc.patch b/patches/net-dns-host_cache.cc.patch
index aa6fa4f6b8b2..5d2ffad0fe7f 100644
--- a/patches/net-dns-host_cache.cc.patch
+++ b/patches/net-dns-host_cache.cc.patch
@@ -1,8 +1,8 @@
diff --git a/net/dns/host_cache.cc b/net/dns/host_cache.cc
-index 74c95883339a80b2fa4bc0786463bb14848c3d61..fcc526629ae5d15482f3e7ff33d0bdb21fc651d1 100644
+index e90fb519db76e42891301d1ca2ad1e3cbf300e68..61d06fefb6f2ffedca3a9a6cea3725dffdbdd29b 100644
--- a/net/dns/host_cache.cc
+++ b/net/dns/host_cache.cc
-@@ -221,6 +221,7 @@ HostCache::Entry HostCache::Entry::CopyWithDefaultPort(uint16_t port) const {
+@@ -262,6 +262,7 @@ HostCache::Entry HostCache::Entry::CopyWithDefaultPort(uint16_t port) const {
}
copy.set_hostnames(std::move(hostnames_with_port));
}
diff --git a/patches/net-dns-resolve_context.h.patch b/patches/net-dns-resolve_context.h.patch
index a7fb871c4574..8c818fc12550 100644
--- a/patches/net-dns-resolve_context.h.patch
+++ b/patches/net-dns-resolve_context.h.patch
@@ -1,8 +1,8 @@
diff --git a/net/dns/resolve_context.h b/net/dns/resolve_context.h
-index 0af99b232b8f34214621d53b76b28111bc9a0df6..b09f63b7df1140eca5909f6b5b6ff8c40858fb1f 100644
+index 4e57ea62a1c8aca0cdbf318c7078489dee8c725d..2b3c0fc7c081a1f53817d3f4469b5778de407a60 100644
--- a/net/dns/resolve_context.h
+++ b/net/dns/resolve_context.h
-@@ -176,6 +176,7 @@ class NET_EXPORT_PRIVATE ResolveContext : public base::CheckedObserver {
+@@ -175,6 +175,7 @@ class NET_EXPORT_PRIVATE ResolveContext : public base::CheckedObserver {
// (alternative service info if it supports QUIC, for instance).
const IsolationInfo& isolation_info() const { return isolation_info_; }
diff --git a/patches/net-http-transport_security_state.cc.patch b/patches/net-http-transport_security_state.cc.patch
index 406e51fd6835..2b8bbd42956d 100644
--- a/patches/net-http-transport_security_state.cc.patch
+++ b/patches/net-http-transport_security_state.cc.patch
@@ -1,5 +1,5 @@
diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc
-index 8488019ec5f071d474217fe796d8688bab48acd1..f453bc682a40e11424c96c1e170b9c79f632b088 100644
+index 2e9761fb6216f588903785c9d60ac26817e4307a..fcded3f89785e4cd68530d689db9f8b39a047d9e 100644
--- a/net/http/transport_security_state.cc
+++ b/net/http/transport_security_state.cc
@@ -414,6 +414,7 @@ TransportSecurityState::TransportSecurityState(
diff --git a/patches/sandbox-policy-win-sandbox_win.cc.patch b/patches/sandbox-policy-win-sandbox_win.cc.patch
index 10c2efc80e52..06ace420a1df 100644
--- a/patches/sandbox-policy-win-sandbox_win.cc.patch
+++ b/patches/sandbox-policy-win-sandbox_win.cc.patch
@@ -1,8 +1,8 @@
diff --git a/sandbox/policy/win/sandbox_win.cc b/sandbox/policy/win/sandbox_win.cc
-index 1c1be66df5b1a97ecb40cc780c96b50995d1012f..481c7b31551a848025955b12f1f7cd2c5520e493 100644
+index f9981846a1d9461967dbf3b977f52df1a80feb51..961eb56cbc8151468a062836e79617f6c4c25568 100644
--- a/sandbox/policy/win/sandbox_win.cc
+++ b/sandbox/policy/win/sandbox_win.cc
-@@ -772,6 +772,7 @@ ResultCode LaunchWithoutSandbox(
+@@ -773,6 +773,7 @@ ResultCode LaunchWithoutSandbox(
base::Process* process) {
base::LaunchOptions options;
options.handles_to_inherit = handles_to_inherit;
diff --git a/patches/services-network-public-cpp-BUILD.gn.patch b/patches/services-network-public-cpp-BUILD.gn.patch
index cab294720145..98df9153d651 100644
--- a/patches/services-network-public-cpp-BUILD.gn.patch
+++ b/patches/services-network-public-cpp-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/services/network/public/cpp/BUILD.gn b/services/network/public/cpp/BUILD.gn
-index 772d4ba59955713af29d4c61e6ad5f95a01cc353..f2a95ac743094adbecaf14b0e42daf3df587e524 100644
+index 11d4acd5c1aeab6cc6e11d881794ffe3c364d847..9911b3ebf0e91d846ecafe0eebd6f5b7c68d19a2 100644
--- a/services/network/public/cpp/BUILD.gn
+++ b/services/network/public/cpp/BUILD.gn
@@ -162,6 +162,7 @@ component("cpp") {
diff --git a/patches/services-network-public-cpp-cors-cors.cc.patch b/patches/services-network-public-cpp-cors-cors.cc.patch
index e586c5c8d49f..9dad42531a90 100644
--- a/patches/services-network-public-cpp-cors-cors.cc.patch
+++ b/patches/services-network-public-cpp-cors-cors.cc.patch
@@ -1,11 +1,11 @@
diff --git a/services/network/public/cpp/cors/cors.cc b/services/network/public/cpp/cors/cors.cc
-index d2cff3d494048af28eb5cd3f2953e660b8b17df9..55e62210dac5dc5fa5ff3792f101c78cbc3d2724 100644
+index 44b2aa8f85e418e6c5bd188e2ac082ccde3d431b..6df1f0684dea60948ad897d88598dc9266450fc6 100644
--- a/services/network/public/cpp/cors/cors.cc
+++ b/services/network/public/cpp/cors/cors.cc
-@@ -457,6 +457,7 @@ bool IsCorsSafelistedHeader(const std::string& name, const std::string& value) {
- "sec-ch-ua-mobile",
- "sec-ch-ua-full-version",
- "sec-ch-ua-platform-version",
+@@ -463,6 +463,7 @@ bool IsCorsSafelistedHeader(const std::string& name, const std::string& value) {
+ // was introduced to enable safely experimenting with sending a reduced
+ // user agent string in the `User-Agent` header.
+ "sec-ch-ua-reduced",
+ "x-brave-partner", // Prevent Allow-Cross-Origin-Request-Header failures
// The `Sec-CH-Prefers-Color-Scheme` header field is modeled after the
diff --git a/patches/services-network-resolve_host_request.cc.patch b/patches/services-network-resolve_host_request.cc.patch
index 9606f146a756..09c534a500d7 100644
--- a/patches/services-network-resolve_host_request.cc.patch
+++ b/patches/services-network-resolve_host_request.cc.patch
@@ -1,8 +1,8 @@
diff --git a/services/network/resolve_host_request.cc b/services/network/resolve_host_request.cc
-index fa66ae2717636cd2bb059bf5bde5aa78577e6657..0a0bea17133b6de7266a320301564d38b5e2b0cf 100644
+index d290e60fed496e7e4a81d653ef45c961f83e416c..5abf58f1962c10392fa1199474240553509e254e 100644
--- a/services/network/resolve_host_request.cc
+++ b/services/network/resolve_host_request.cc
-@@ -59,6 +59,7 @@ int ResolveHostRequest::Start(
+@@ -60,6 +60,7 @@ int ResolveHostRequest::Start(
mojo::Remote response_client(
std::move(pending_response_client));
if (rv != net::ERR_IO_PENDING) {
diff --git a/patches/third_party-blink-common-client_hints-client_hints.cc.patch b/patches/third_party-blink-common-client_hints-client_hints.cc.patch
index e0174707c060..a3fbc95782e3 100644
--- a/patches/third_party-blink-common-client_hints-client_hints.cc.patch
+++ b/patches/third_party-blink-common-client_hints-client_hints.cc.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/common/client_hints/client_hints.cc b/third_party/blink/common/client_hints/client_hints.cc
-index e6766d80fce2f3163617a7eaf52d3e5bb54a73fe..2b1ad56956f5efd5e25ba6f4e0ae9c368ab3f2ba 100644
+index f8e39c9ed281ced24c8915f1f94a02c4b4f009fb..83cc481e34950dad89cbf607bc5dc09a099ec0d7 100644
--- a/third_party/blink/common/client_hints/client_hints.cc
+++ b/third_party/blink/common/client_hints/client_hints.cc
-@@ -133,6 +133,7 @@ absl::optional> FilterAcceptCH(
+@@ -96,6 +96,7 @@ std::string SerializeLangClientHint(const std::string& raw_language_list) {
}
bool IsClientHintSentByDefault(network::mojom::WebClientHintsType type) {
diff --git a/patches/third_party-blink-renderer-bindings-generated_in_modules.gni.patch b/patches/third_party-blink-renderer-bindings-generated_in_modules.gni.patch
index b4008b9231e2..b4d251cdeef9 100644
--- a/patches/third_party-blink-renderer-bindings-generated_in_modules.gni.patch
+++ b/patches/third_party-blink-renderer-bindings-generated_in_modules.gni.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/renderer/bindings/generated_in_modules.gni b/third_party/blink/renderer/bindings/generated_in_modules.gni
-index 0a5bc951c8017b221ba1d5db7e2b1fa13744a84d..2b7f81a6e859fac342b0e35b05f5be34b4e02d46 100644
+index f39c34eaaaf981050618d562e475cf0e2eb4103c..63e0e93554a3c50570e1cfb2fa1d0bfe55e45096 100644
--- a/third_party/blink/renderer/bindings/generated_in_modules.gni
+++ b/third_party/blink/renderer/bindings/generated_in_modules.gni
-@@ -2462,6 +2462,7 @@ generated_interface_sources_in_modules = [
+@@ -2476,6 +2476,7 @@ generated_interface_sources_in_modules = [
"$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_xr_webgl_layer.cc",
"$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_xr_webgl_layer.h",
]
diff --git a/patches/third_party-blink-renderer-bindings-idl_in_modules.gni.patch b/patches/third_party-blink-renderer-bindings-idl_in_modules.gni.patch
index bf8d5ec517bc..b4da77570f3f 100644
--- a/patches/third_party-blink-renderer-bindings-idl_in_modules.gni.patch
+++ b/patches/third_party-blink-renderer-bindings-idl_in_modules.gni.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/renderer/bindings/idl_in_modules.gni b/third_party/blink/renderer/bindings/idl_in_modules.gni
-index 6b462f1a4d5e767ad01e25a7329114a3cdd0dea6..a1b97fd195a519fcf86724cc68a2952e7e5b6f3b 100644
+index 1b725be6817d971a37fc3ad9e1390ff1ca1ff6b3..2a4fcebeb54056a92632b2c63c34109bf8656fdc 100644
--- a/third_party/blink/renderer/bindings/idl_in_modules.gni
+++ b/third_party/blink/renderer/bindings/idl_in_modules.gni
-@@ -1136,6 +1136,7 @@ static_idl_files_in_modules = get_path_info(
+@@ -1146,6 +1146,7 @@ static_idl_files_in_modules = get_path_info(
"//third_party/blink/renderer/modules/xr/xr_webgl_layer_init.idl",
],
"abspath")
diff --git a/patches/third_party-blink-renderer-core-BUILD.gn.patch b/patches/third_party-blink-renderer-core-BUILD.gn.patch
index 52d762b981f5..57471494284d 100644
--- a/patches/third_party-blink-renderer-core-BUILD.gn.patch
+++ b/patches/third_party-blink-renderer-core-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/third_party/blink/renderer/core/BUILD.gn b/third_party/blink/renderer/core/BUILD.gn
-index 347c19ef18510490d886abb7b1fc88a75f7e63c9..ed5dfc4f98147a0e044e38f8ec9fef1705a7610e 100644
+index 6ddecad8b811f4aafef41c62261b57944be50d95..8d2bc3f87b2209713761e2632472e35584c8cb4c 100644
--- a/third_party/blink/renderer/core/BUILD.gn
+++ b/third_party/blink/renderer/core/BUILD.gn
@@ -168,6 +168,7 @@ component("core") {
diff --git a/patches/third_party-blink-renderer-core-frame-dom_window.h.patch b/patches/third_party-blink-renderer-core-frame-dom_window.h.patch
index 6d71f0f34711..8f4eb3b94bee 100644
--- a/patches/third_party-blink-renderer-core-frame-dom_window.h.patch
+++ b/patches/third_party-blink-renderer-core-frame-dom_window.h.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/renderer/core/frame/dom_window.h b/third_party/blink/renderer/core/frame/dom_window.h
-index 9c935c8db06c16873265c28513155a71ce9bec47..017088a87664f1f153c2ec7c8c89c3c57a9702a8 100644
+index 1f382084e83c191200d34390f68b5c28939299a5..595f5dcf993ec8c004d63daf61dc3ad44dbd720e 100644
--- a/third_party/blink/renderer/core/frame/dom_window.h
+++ b/third_party/blink/renderer/core/frame/dom_window.h
-@@ -151,6 +151,7 @@ class CORE_EXPORT DOMWindow : public EventTargetWithInlineData {
+@@ -154,6 +154,7 @@ class CORE_EXPORT DOMWindow : public EventTargetWithInlineData {
// marked as "CrossOrigin" in the window.idl.
void ReportCoopAccess(const char* property_name);
diff --git a/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.cc.patch b/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.cc.patch
index d7e2e3d662f6..f6291c22963d 100644
--- a/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.cc.patch
+++ b/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.cc.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc b/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc
-index 64bd51470040b0391478cd95eca1634ea9b75cda..d002a811526ece5beb53cc2692b014c183f3f28f 100644
+index aa958af9852497e981c94821bc45cf9b093da94e..aa264a3b73b2df1e792bffb278c1f8a98f939af8 100644
--- a/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc
+++ b/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc
-@@ -944,6 +944,7 @@ String HTMLCanvasElement::ToDataURLInternal(
+@@ -945,6 +945,7 @@ String HTMLCanvasElement::ToDataURLInternal(
if (!data_buffer)
return String("data:,");
diff --git a/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.h.patch b/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.h.patch
index ec8438e8db7f..d87a2a1cebe9 100644
--- a/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.h.patch
+++ b/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.h.patch
@@ -1,10 +1,10 @@
diff --git a/third_party/blink/renderer/core/html/canvas/html_canvas_element.h b/third_party/blink/renderer/core/html/canvas/html_canvas_element.h
-index f5213500190b8b37bc3f69a37b2071faa0a5c9e8..b8439fb9c339ee87e231a40905e295f215e9f5b5 100644
+index 5b3439d7633b29277f7445c8634de1845cf61f50..5c75d41322f6b935d5d39655f3e294e657c8543f 100644
--- a/third_party/blink/renderer/core/html/canvas/html_canvas_element.h
+++ b/third_party/blink/renderer/core/html/canvas/html_canvas_element.h
-@@ -323,6 +323,7 @@ class CORE_EXPORT HTMLCanvasElement final
+@@ -325,6 +325,7 @@ class CORE_EXPORT HTMLCanvasElement final
- bool IsCanvasClear() { return canvas_is_clear_; }
+ bool IsPlaceholder() const override { return IsOffscreenCanvasRegistered(); }
+ BRAVE_HTML_CANVAS_ELEMENT_H_
protected:
diff --git a/patches/third_party-blink-renderer-modules-BUILD.gn.patch b/patches/third_party-blink-renderer-modules-BUILD.gn.patch
index e903ef5c1a14..1e43576bd142 100644
--- a/patches/third_party-blink-renderer-modules-BUILD.gn.patch
+++ b/patches/third_party-blink-renderer-modules-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/third_party/blink/renderer/modules/BUILD.gn b/third_party/blink/renderer/modules/BUILD.gn
-index 9d6ab1833747c641eb3b6f146a229ac7014ffe71..fd5100d0398777a861d266f23c7cb5b4ca1638e0 100644
+index 9ba7c0ba6328259b5d2c6f00dae33c4ffafb4f70..6ae9e049984b6304380daf47b92621dd69dab80f 100644
--- a/third_party/blink/renderer/modules/BUILD.gn
+++ b/third_party/blink/renderer/modules/BUILD.gn
@@ -15,6 +15,7 @@ if (is_android) {
diff --git a/patches/third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d.cc.patch b/patches/third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d.cc.patch
index 5315625223c8..587d9b43cacf 100644
--- a/patches/third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d.cc.patch
+++ b/patches/third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d.cc.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
-index 540d09188e345cf842587cdc9ffc24ee57b1b787..9dd4a6f0fea8916300971057beac088242991746 100644
+index af78cfec2d60ba9f4703ac04eb5f65c1919ff4e2..c0864946a065d8594efed3832cc76b3077a4b24d 100644
--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
-@@ -1975,6 +1975,7 @@ ImageData* BaseRenderingContext2D::getImageData(
+@@ -2188,6 +2188,7 @@ ImageData* BaseRenderingContext2D::getImageData(
}
ImageData* BaseRenderingContext2D::getImageDataInternal(
@@ -10,7 +10,7 @@ index 540d09188e345cf842587cdc9ffc24ee57b1b787..9dd4a6f0fea8916300971057beac0882
int sx,
int sy,
int sw,
-@@ -2092,6 +2093,7 @@ ImageData* BaseRenderingContext2D::getImageDataInternal(
+@@ -2305,6 +2306,7 @@ ImageData* BaseRenderingContext2D::getImageDataInternal(
DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
}
}
diff --git a/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.cc.patch b/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.cc.patch
index 9aa936a5abf1..89139bca80e1 100644
--- a/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.cc.patch
+++ b/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.cc.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc
-index 64e407f02f7d5262b9477f3e4abe30a2556e0506..f482240347aebf70482e5edd6ed2c465ecb39415 100644
+index fa3db49fabc63b5cf08a78e195eace42cbd321ea..3c62e22846e503fdc4f69b3556581a58e0d78772 100644
--- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc
-@@ -939,6 +939,7 @@ TextMetrics* CanvasRenderingContext2D::measureText(const String& text) {
+@@ -953,6 +953,7 @@ TextMetrics* CanvasRenderingContext2D::measureText(const String& text) {
if (!canvas()->GetDocument().GetFrame())
return MakeGarbageCollected();
diff --git a/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.idl.patch b/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.idl.patch
index 35594fab34a8..24011fde4e15 100644
--- a/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.idl.patch
+++ b/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.idl.patch
@@ -1,5 +1,5 @@
diff --git a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.idl b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.idl
-index 1cb922800bef34d2f1940745ed4b847ae176c99f..affb1a45c5fac3c79a3988739eac22868297dd63 100644
+index 2ca0843d1a22157457d19c7dda17e3e4a704a2af..45b28f6dfbed300d9e0c7f9409594d1621d09f1d 100644
--- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.idl
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.idl
@@ -123,9 +123,13 @@ interface CanvasRenderingContext2D {
diff --git a/patches/third_party-blink-renderer-modules-canvas-offscreencanvas2d-offscreen_canvas_rendering_context_2d.idl.patch b/patches/third_party-blink-renderer-modules-canvas-offscreencanvas2d-offscreen_canvas_rendering_context_2d.idl.patch
index 2f00808f53e7..c7516065f84f 100644
--- a/patches/third_party-blink-renderer-modules-canvas-offscreencanvas2d-offscreen_canvas_rendering_context_2d.idl.patch
+++ b/patches/third_party-blink-renderer-modules-canvas-offscreencanvas2d-offscreen_canvas_rendering_context_2d.idl.patch
@@ -1,15 +1,17 @@
diff --git a/third_party/blink/renderer/modules/canvas/offscreencanvas2d/offscreen_canvas_rendering_context_2d.idl b/third_party/blink/renderer/modules/canvas/offscreencanvas2d/offscreen_canvas_rendering_context_2d.idl
-index d710e166a8587eece2fd6e853933c5807e7d414d..875eb2d7ac3641d9280a92cb81dd16e7ab3ffd5a 100644
+index 3c8b31347060eaa4dffb202f200e603574fac9a0..530c550ba6d853ce49aeed5fd3747daf0116143b 100644
--- a/third_party/blink/renderer/modules/canvas/offscreencanvas2d/offscreen_canvas_rendering_context_2d.idl
+++ b/third_party/blink/renderer/modules/canvas/offscreencanvas2d/offscreen_canvas_rendering_context_2d.idl
-@@ -79,10 +79,10 @@
+@@ -79,10 +79,16 @@
void stroke(Path2D path);
void clip(optional CanvasFillRule winding);
void clip(Path2D path, optional CanvasFillRule winding);
-- [HighEntropy, MeasureAs=OffscreenCanvasIsPointInPath] boolean isPointInPath(unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
-- [HighEntropy, MeasureAs=OffscreenCanvasIsPointInPath] boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
-- [HighEntropy, MeasureAs=OffscreenCanvasIsPointInStroke] boolean isPointInStroke(unrestricted double x, unrestricted double y);
-- [HighEntropy, MeasureAs=OffscreenCanvasIsPointInStroke] boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
++ /*
+ [HighEntropy, MeasureAs=OffscreenCanvasIsPointInPath] boolean isPointInPath(unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
+ [HighEntropy, MeasureAs=OffscreenCanvasIsPointInPath] boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
+ [HighEntropy, MeasureAs=OffscreenCanvasIsPointInStroke] boolean isPointInStroke(unrestricted double x, unrestricted double y);
+ [HighEntropy, MeasureAs=OffscreenCanvasIsPointInStroke] boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
++ */
+ [CallWith=ScriptState, HighEntropy, MeasureAs=OffscreenCanvasIsPointInPath] boolean isPointInPath(unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
+ [CallWith=ScriptState, HighEntropy, MeasureAs=OffscreenCanvasIsPointInPath] boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
+ [CallWith=ScriptState, HighEntropy, MeasureAs=OffscreenCanvasIsPointInStroke] boolean isPointInStroke(unrestricted double x, unrestricted double y);
@@ -17,14 +19,16 @@ index d710e166a8587eece2fd6e853933c5807e7d414d..875eb2d7ac3641d9280a92cb81dd16e7
// text (see also the CanvasDrawingStyles interface)
void fillText(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
-@@ -98,8 +98,8 @@
+@@ -98,8 +104,12 @@
[RaisesException] ImageData createImageData(ImageData imagedata);
- [RaisesException] ImageData createImageData(long sw, long sh);
- [RaisesException, RuntimeEnabled=CanvasColorManagement] ImageData createImageData(long sw, long sh, ImageDataSettings imageDataSettings);
-- [HighEntropy, MeasureAs=OffscreenCanvasGetImageData, RaisesException] ImageData getImageData(long sx, long sy, long sw, long sh);
-- [HighEntropy, MeasureAs=OffscreenCanvasGetImageData, RaisesException, RuntimeEnabled=CanvasColorManagement] ImageData getImageData(long sx, long sy, long sw, long sh, ImageDataSettings imageDataSettings);
-+ [CallWith=ScriptState, HighEntropy, MeasureAs=OffscreenCanvasGetImageData, RaisesException] ImageData getImageData(long sx, long sy, long sw, long sh);
-+ [CallWith=ScriptState, HighEntropy, MeasureAs=OffscreenCanvasGetImageData, RaisesException, RuntimeEnabled=CanvasColorManagement] ImageData getImageData(long sx, long sy, long sw, long sh, ImageDataSettings imageDataSettings);
- [RaisesException] void putImageData(ImageData imagedata, long dx, long dy);
- [RaisesException] void putImageData(ImageData imagedata, long dx, long dy, long dirtyX, long dirtyY, long dirtyWidth, long dirtyHeight);
+ [RaisesException] ImageData createImageData([EnforceRange] long sw, [EnforceRange] long sh);
+ [RaisesException, RuntimeEnabled=CanvasColorManagement] ImageData createImageData([EnforceRange] long sw, [EnforceRange] long sh, ImageDataSettings imageDataSettings);
++ /*
+ [HighEntropy, MeasureAs=OffscreenCanvasGetImageData, RaisesException] ImageData getImageData([EnforceRange] long sx, [EnforceRange] long sy, [EnforceRange] long sw, [EnforceRange] long sh);
+ [HighEntropy, MeasureAs=OffscreenCanvasGetImageData, RaisesException, RuntimeEnabled=CanvasColorManagement] ImageData getImageData([EnforceRange] long sx, [EnforceRange] long sy, [EnforceRange] long sw, [EnforceRange] long sh, ImageDataSettings imageDataSettings);
++ */
++ [CallWith=ScriptState, HighEntropy, MeasureAs=OffscreenCanvasGetImageData, RaisesException] ImageData getImageData([EnforceRange] long sx, [EnforceRange] long sy, [EnforceRange] long sw, [EnforceRange] long sh);
++ [CallWith=ScriptState, HighEntropy, MeasureAs=OffscreenCanvasGetImageData, RaisesException, RuntimeEnabled=CanvasColorManagement] ImageData getImageData([EnforceRange] long sx, [EnforceRange] long sy, [EnforceRange] long sw, [EnforceRange] long sh, ImageDataSettings imageDataSettings);
+ [RaisesException] void putImageData(ImageData imagedata, [EnforceRange] long dx, [EnforceRange] long dy);
+ [RaisesException] void putImageData(ImageData imagedata, [EnforceRange] long dx, [EnforceRange] long dy, [EnforceRange] long dirtyX, [EnforceRange] long dirtyY, [EnforceRange] long dirtyWidth, [EnforceRange] long dirtyHeight);
diff --git a/patches/third_party-blink-renderer-modules-cookie_store-cookie_store.cc.patch b/patches/third_party-blink-renderer-modules-cookie_store-cookie_store.cc.patch
index d355d3143d42..023084024fb9 100644
--- a/patches/third_party-blink-renderer-modules-cookie_store-cookie_store.cc.patch
+++ b/patches/third_party-blink-renderer-modules-cookie_store-cookie_store.cc.patch
@@ -1,5 +1,5 @@
diff --git a/third_party/blink/renderer/modules/cookie_store/cookie_store.cc b/third_party/blink/renderer/modules/cookie_store/cookie_store.cc
-index 606ca6e6730a5be8261ddd6e2dc44ab02970c8c9..672554790fe16ba8411c75e6753d60a0060d682b 100644
+index 9e42692ca0dc1926fd174eabb99749a65930144e..87e7f5f2a366287e937ee74c86c89f34d6a1a56c 100644
--- a/third_party/blink/renderer/modules/cookie_store/cookie_store.cc
+++ b/third_party/blink/renderer/modules/cookie_store/cookie_store.cc
@@ -83,6 +83,7 @@ std::unique_ptr ToCanonicalCookie(
diff --git a/patches/third_party-blink-renderer-modules-mediastream-media_devices.cc.patch b/patches/third_party-blink-renderer-modules-mediastream-media_devices.cc.patch
index 1b4308710259..2a5e56b3225a 100644
--- a/patches/third_party-blink-renderer-modules-mediastream-media_devices.cc.patch
+++ b/patches/third_party-blink-renderer-modules-mediastream-media_devices.cc.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/renderer/modules/mediastream/media_devices.cc b/third_party/blink/renderer/modules/mediastream/media_devices.cc
-index f249a349889ef66af4e4c4fd141b658ed82fe682..62cd029698221452b20584b31009456ed8c5437d 100644
+index 4b4377251af7c09aaa836a2ee9dc991cea386bb3..8c29b402daf7b665f0d1c4a248cee1bb11c52925 100644
--- a/third_party/blink/renderer/modules/mediastream/media_devices.cc
+++ b/third_party/blink/renderer/modules/mediastream/media_devices.cc
-@@ -481,6 +481,8 @@ void MediaDevices::DevicesEnumerated(
+@@ -491,6 +491,8 @@ void MediaDevices::DevicesEnumerated(
}
}
diff --git a/patches/third_party-blink-renderer-modules-plugins-dom_plugin_array.cc.patch b/patches/third_party-blink-renderer-modules-plugins-dom_plugin_array.cc.patch
index 9c0602c3b5e7..4b29457e4ed6 100644
--- a/patches/third_party-blink-renderer-modules-plugins-dom_plugin_array.cc.patch
+++ b/patches/third_party-blink-renderer-modules-plugins-dom_plugin_array.cc.patch
@@ -1,16 +1,16 @@
diff --git a/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc b/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc
-index 53c24628f1d406375413ab2d78272383594b4d57..458bfb2ff359e5e6b1bd8c667443a78409ec75e0 100644
+index fcaabbb69c024240d37c056c36b874c0e6cb3a36..43532320baf4ac14ef6e903e1d20324e45affb96 100644
--- a/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc
+++ b/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc
-@@ -138,6 +138,7 @@ void DOMPluginArray::UpdatePluginData() {
- dom_plugins_.clear();
+@@ -197,6 +197,7 @@ void DOMPluginArray::UpdatePluginData() {
+ }
return;
}
+ BRAVE_DOM_PLUGINS_UPDATE_PLUGIN_DATA__RESET_PLUGIN_DATA
PluginData* data = GetPluginData();
if (!data) {
dom_plugins_.clear();
-@@ -159,6 +160,7 @@ void DOMPluginArray::UpdatePluginData() {
+@@ -218,6 +219,7 @@ void DOMPluginArray::UpdatePluginData() {
}
}
}
diff --git a/patches/third_party-blink-renderer-modules-webgl-webgl2_rendering_context_base.cc.patch b/patches/third_party-blink-renderer-modules-webgl-webgl2_rendering_context_base.cc.patch
index 11576f352ab8..1e4e6bbb53d8 100644
--- a/patches/third_party-blink-renderer-modules-webgl-webgl2_rendering_context_base.cc.patch
+++ b/patches/third_party-blink-renderer-modules-webgl-webgl2_rendering_context_base.cc.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc b/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc
-index d706480b2ce4c7d3da4c22784da9d040df0dfe20..e09dd620026bd695669e93b059cc9e69d5f6baf0 100644
+index 2f3348e5bd8c089de9e0ffeb0e603da2ef8ec578..28927fd6095c411383b5760706021d7aab903933 100644
--- a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc
+++ b/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc
-@@ -5250,6 +5250,7 @@ ScriptValue WebGL2RenderingContextBase::getParameter(ScriptState* script_state,
+@@ -5251,6 +5251,7 @@ ScriptValue WebGL2RenderingContextBase::getParameter(ScriptState* script_state,
GLenum pname) {
if (isContextLost())
return ScriptValue::CreateNull(script_state->GetIsolate());
@@ -10,7 +10,7 @@ index d706480b2ce4c7d3da4c22784da9d040df0dfe20..e09dd620026bd695669e93b059cc9e69
switch (pname) {
case GL_SHADING_LANGUAGE_VERSION: {
return WebGLAny(
-@@ -5807,6 +5808,7 @@ ScriptValue WebGL2RenderingContextBase::getFramebufferAttachmentParameter(
+@@ -5808,6 +5809,7 @@ ScriptValue WebGL2RenderingContextBase::getFramebufferAttachmentParameter(
if (isContextLost() || !ValidateGetFramebufferAttachmentParameterFunc(
kFunctionName, target, attachment))
return ScriptValue::CreateNull(script_state->GetIsolate());
@@ -18,7 +18,7 @@ index d706480b2ce4c7d3da4c22784da9d040df0dfe20..e09dd620026bd695669e93b059cc9e69
WebGLFramebuffer* framebuffer_binding = GetFramebufferBinding(target);
DCHECK(!framebuffer_binding || framebuffer_binding->Object());
-@@ -6019,6 +6021,7 @@ ScriptValue WebGL2RenderingContextBase::getTexParameter(
+@@ -6020,6 +6022,7 @@ ScriptValue WebGL2RenderingContextBase::getTexParameter(
GLenum pname) {
if (isContextLost() || !ValidateTextureBinding("getTexParameter", target))
return ScriptValue::CreateNull(script_state->GetIsolate());
diff --git a/patches/third_party-blink-renderer-modules-webgl-webgl_rendering_context_base.cc.patch b/patches/third_party-blink-renderer-modules-webgl-webgl_rendering_context_base.cc.patch
index aba38f905633..ed0c017f1ad8 100644
--- a/patches/third_party-blink-renderer-modules-webgl-webgl_rendering_context_base.cc.patch
+++ b/patches/third_party-blink-renderer-modules-webgl-webgl_rendering_context_base.cc.patch
@@ -1,8 +1,8 @@
diff --git a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
-index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426fbc1773bf 100644
+index 908fb0cce6e381610de1da22deabf1aeb5d27cfe..11694436162430e451cacdb42c164ca8e1c583d2 100644
--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
+++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
-@@ -2929,6 +2929,7 @@ WebGLActiveInfo* WebGLRenderingContextBase::getActiveAttrib(
+@@ -2936,6 +2936,7 @@ WebGLActiveInfo* WebGLRenderingContextBase::getActiveAttrib(
GLuint index) {
if (!ValidateWebGLProgramOrShader("getActiveAttrib", program))
return nullptr;
@@ -10,7 +10,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
GLuint program_id = ObjectNonZero(program);
GLint max_name_length = -1;
ContextGL()->GetProgramiv(program_id, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH,
-@@ -2960,6 +2961,7 @@ WebGLActiveInfo* WebGLRenderingContextBase::getActiveUniform(
+@@ -2967,6 +2968,7 @@ WebGLActiveInfo* WebGLRenderingContextBase::getActiveUniform(
GLuint index) {
if (!ValidateWebGLProgramOrShader("getActiveUniform", program))
return nullptr;
@@ -18,7 +18,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
GLuint program_id = ObjectNonZero(program);
GLint max_name_length = -1;
ContextGL()->GetProgramiv(program_id, GL_ACTIVE_UNIFORM_MAX_LENGTH,
-@@ -2990,6 +2992,7 @@ absl::optional>>
+@@ -2997,6 +2999,7 @@ absl::optional>>
WebGLRenderingContextBase::getAttachedShaders(WebGLProgram* program) {
if (!ValidateWebGLProgramOrShader("getAttachedShaders", program))
return absl::nullopt;
@@ -26,7 +26,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
HeapVector> shader_objects;
for (GLenum shaderType : {GL_VERTEX_SHADER, GL_FRAGMENT_SHADER}) {
-@@ -3004,6 +3007,7 @@ GLint WebGLRenderingContextBase::getAttribLocation(WebGLProgram* program,
+@@ -3011,6 +3014,7 @@ GLint WebGLRenderingContextBase::getAttribLocation(WebGLProgram* program,
const String& name) {
if (!ValidateWebGLProgramOrShader("getAttribLocation", program))
return -1;
@@ -34,7 +34,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (!ValidateLocationLength("getAttribLocation", name))
return -1;
if (!ValidateString("getAttribLocation", name))
-@@ -3037,6 +3041,7 @@ ScriptValue WebGLRenderingContextBase::getBufferParameter(
+@@ -3044,6 +3048,7 @@ ScriptValue WebGLRenderingContextBase::getBufferParameter(
GLenum pname) {
if (isContextLost() || !ValidateBufferTarget("getBufferParameter", target))
return ScriptValue::CreateNull(script_state->GetIsolate());
@@ -42,7 +42,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
switch (pname) {
case GL_BUFFER_USAGE: {
-@@ -3183,6 +3188,7 @@ ScriptValue WebGLRenderingContextBase::getFramebufferAttachmentParameter(
+@@ -3190,6 +3195,7 @@ ScriptValue WebGLRenderingContextBase::getFramebufferAttachmentParameter(
target, attachment))
return ScriptValue::CreateNull(script_state->GetIsolate());
@@ -50,7 +50,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (!framebuffer_binding_ || !framebuffer_binding_->Object()) {
SynthesizeGLError(GL_INVALID_OPERATION, "getFramebufferAttachmentParameter",
"no framebuffer bound");
-@@ -3583,6 +3589,7 @@ ScriptValue WebGLRenderingContextBase::getParameter(ScriptState* script_state,
+@@ -3590,6 +3596,7 @@ ScriptValue WebGLRenderingContextBase::getParameter(ScriptState* script_state,
"invalid parameter name, OES_standard_derivatives not enabled");
return ScriptValue::CreateNull(script_state->GetIsolate());
case WebGLDebugRendererInfo::kUnmaskedRendererWebgl:
@@ -58,7 +58,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (ExtensionEnabled(kWebGLDebugRendererInfoName)) {
if (IdentifiabilityStudySettings::Get()->ShouldSample(
blink::IdentifiableSurface::Type::kWebGLParameter)) {
-@@ -3598,6 +3605,7 @@ ScriptValue WebGLRenderingContextBase::getParameter(ScriptState* script_state,
+@@ -3605,6 +3612,7 @@ ScriptValue WebGLRenderingContextBase::getParameter(ScriptState* script_state,
"invalid parameter name, WEBGL_debug_renderer_info not enabled");
return ScriptValue::CreateNull(script_state->GetIsolate());
case WebGLDebugRendererInfo::kUnmaskedVendorWebgl:
@@ -66,7 +66,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (ExtensionEnabled(kWebGLDebugRendererInfoName)) {
if (IdentifiabilityStudySettings::Get()->ShouldSample(
blink::IdentifiableSurface::Type::kWebGLParameter)) {
-@@ -3690,6 +3698,7 @@ ScriptValue WebGLRenderingContextBase::getProgramParameter(
+@@ -3697,6 +3705,7 @@ ScriptValue WebGLRenderingContextBase::getProgramParameter(
// intended to prevent applications from entering an infinite polling loop.
if (isContextLost() && pname == GL_COMPLETION_STATUS_KHR)
return WebGLAny(script_state, true);
@@ -74,7 +74,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (!ValidateWebGLProgramOrShader("getProgramParamter", program)) {
return ScriptValue::CreateNull(script_state->GetIsolate());
}
-@@ -3745,6 +3754,7 @@ ScriptValue WebGLRenderingContextBase::getProgramParameter(
+@@ -3752,6 +3761,7 @@ ScriptValue WebGLRenderingContextBase::getProgramParameter(
String WebGLRenderingContextBase::getProgramInfoLog(WebGLProgram* program) {
if (!ValidateWebGLProgramOrShader("getProgramInfoLog", program))
return String();
@@ -82,7 +82,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
GLStringQuery query(ContextGL());
return query.Run(ObjectNonZero(program));
}
-@@ -3755,6 +3765,7 @@ ScriptValue WebGLRenderingContextBase::getRenderbufferParameter(
+@@ -3762,6 +3772,7 @@ ScriptValue WebGLRenderingContextBase::getRenderbufferParameter(
GLenum pname) {
if (isContextLost())
return ScriptValue::CreateNull(script_state->GetIsolate());
@@ -90,7 +90,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (target != GL_RENDERBUFFER) {
SynthesizeGLError(GL_INVALID_ENUM, "getRenderbufferParameter",
"invalid target");
-@@ -3806,6 +3817,7 @@ ScriptValue WebGLRenderingContextBase::getShaderParameter(
+@@ -3813,6 +3824,7 @@ ScriptValue WebGLRenderingContextBase::getShaderParameter(
// intended to prevent applications from entering an infinite polling loop.
if (isContextLost() && pname == GL_COMPLETION_STATUS_KHR)
return WebGLAny(script_state, true);
@@ -98,7 +98,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (!ValidateWebGLProgramOrShader("getShaderParameter", shader)) {
return ScriptValue::CreateNull(script_state->GetIsolate());
}
-@@ -3837,6 +3849,7 @@ ScriptValue WebGLRenderingContextBase::getShaderParameter(
+@@ -3844,6 +3856,7 @@ ScriptValue WebGLRenderingContextBase::getShaderParameter(
String WebGLRenderingContextBase::getShaderInfoLog(WebGLShader* shader) {
if (!ValidateWebGLProgramOrShader("getShaderInfoLog", shader))
return String();
@@ -106,7 +106,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
GLStringQuery query(ContextGL());
return query.Run(ObjectNonZero(shader));
}
-@@ -3867,6 +3880,7 @@ WebGLShaderPrecisionFormat* WebGLRenderingContextBase::getShaderPrecisionFormat(
+@@ -3874,6 +3887,7 @@ WebGLShaderPrecisionFormat* WebGLRenderingContextBase::getShaderPrecisionFormat(
GLint precision = 0;
ContextGL()->GetShaderPrecisionFormat(shader_type, precision_type, range,
&precision);
@@ -114,7 +114,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
auto* result = MakeGarbageCollected(
range[0], range[1], precision);
if (IdentifiabilityStudySettings::Get()->ShouldSample(
-@@ -3879,6 +3893,7 @@ WebGLShaderPrecisionFormat* WebGLRenderingContextBase::getShaderPrecisionFormat(
+@@ -3886,6 +3900,7 @@ WebGLShaderPrecisionFormat* WebGLRenderingContextBase::getShaderPrecisionFormat(
String WebGLRenderingContextBase::getShaderSource(WebGLShader* shader) {
if (!ValidateWebGLProgramOrShader("getShaderSource", shader))
return String();
@@ -122,7 +122,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
return EnsureNotNull(shader->Source());
}
-@@ -3908,6 +3923,7 @@ ScriptValue WebGLRenderingContextBase::getTexParameter(
+@@ -3915,6 +3930,7 @@ ScriptValue WebGLRenderingContextBase::getTexParameter(
GLenum pname) {
if (isContextLost())
return ScriptValue::CreateNull(script_state->GetIsolate());
@@ -130,7 +130,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (!ValidateTextureBinding("getTexParameter", target))
return ScriptValue::CreateNull(script_state->GetIsolate());
switch (pname) {
-@@ -3942,6 +3958,7 @@ ScriptValue WebGLRenderingContextBase::getUniform(
+@@ -3949,6 +3965,7 @@ ScriptValue WebGLRenderingContextBase::getUniform(
const WebGLUniformLocation* uniform_location) {
if (!ValidateWebGLProgramOrShader("getUniform", program))
return ScriptValue::CreateNull(script_state->GetIsolate());
@@ -138,7 +138,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
DCHECK(uniform_location);
if (uniform_location->Program() != program) {
SynthesizeGLError(GL_INVALID_OPERATION, "getUniform",
-@@ -4201,6 +4218,7 @@ WebGLUniformLocation* WebGLRenderingContextBase::getUniformLocation(
+@@ -4208,6 +4225,7 @@ WebGLUniformLocation* WebGLRenderingContextBase::getUniformLocation(
const String& name) {
if (!ValidateWebGLProgramOrShader("getUniformLocation", program))
return nullptr;
@@ -146,7 +146,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (!ValidateLocationLength("getUniformLocation", name))
return nullptr;
if (!ValidateString("getUniformLocation", name))
-@@ -4225,6 +4243,7 @@ ScriptValue WebGLRenderingContextBase::getVertexAttrib(
+@@ -4232,6 +4250,7 @@ ScriptValue WebGLRenderingContextBase::getVertexAttrib(
GLenum pname) {
if (isContextLost())
return ScriptValue::CreateNull(script_state->GetIsolate());
@@ -154,7 +154,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
if (index >= max_vertex_attribs_) {
SynthesizeGLError(GL_INVALID_VALUE, "getVertexAttrib",
"index out of range");
-@@ -4302,6 +4321,7 @@ int64_t WebGLRenderingContextBase::getVertexAttribOffset(GLuint index,
+@@ -4309,6 +4328,7 @@ int64_t WebGLRenderingContextBase::getVertexAttribOffset(GLuint index,
GLenum pname) {
if (isContextLost())
return 0;
@@ -162,7 +162,7 @@ index 901eca9e67e43008cfa4ae298f5d1782cfcfbbe2..01210659a4044f7b462edbb32cf0426f
GLvoid* result = nullptr;
// NOTE: If pname is ever a value that returns more than 1 element
// this will corrupt memory.
-@@ -4649,6 +4669,7 @@ void WebGLRenderingContextBase::ReadPixelsHelper(GLint x,
+@@ -4656,6 +4676,7 @@ void WebGLRenderingContextBase::ReadPixelsHelper(GLint x,
int64_t offset) {
if (isContextLost())
return;
diff --git a/patches/tools-gritsettings-resource_ids.spec.patch b/patches/tools-gritsettings-resource_ids.spec.patch
index a9e23803da82..81c71b311835 100644
--- a/patches/tools-gritsettings-resource_ids.spec.patch
+++ b/patches/tools-gritsettings-resource_ids.spec.patch
@@ -1,5 +1,5 @@
diff --git a/tools/gritsettings/resource_ids.spec b/tools/gritsettings/resource_ids.spec
-index 2340bedbe4a5629779a72f2eb5f1b9f550757d1d..ae125bb97a452f185ef0b8c95c7a94bec4c5a7ba 100644
+index 628fa47e4f2532a831204935677761c33bf8d80b..6a48f0c953bd617031adca2e7f3df5f1e91570c0 100644
--- a/tools/gritsettings/resource_ids.spec
+++ b/tools/gritsettings/resource_ids.spec
@@ -47,6 +47,9 @@
@@ -12,7 +12,7 @@ index 2340bedbe4a5629779a72f2eb5f1b9f550757d1d..ae125bb97a452f185ef0b8c95c7a94be
"chrome/app/google_chrome_strings.grd": {
"messages": [400],
},
-@@ -503,6 +506,9 @@
+@@ -523,6 +526,9 @@
"META": {"align": 100},
"messages": [2700],
},
diff --git a/patches/tools-metrics-histograms-histograms_xml-histogram_suffixes_list.xml.patch b/patches/tools-metrics-histograms-histograms_xml-histogram_suffixes_list.xml.patch
deleted file mode 100644
index ded3d98f87a7..000000000000
--- a/patches/tools-metrics-histograms-histograms_xml-histogram_suffixes_list.xml.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/tools/metrics/histograms/histograms_xml/histogram_suffixes_list.xml b/tools/metrics/histograms/histograms_xml/histogram_suffixes_list.xml
-index 1517ecc6e0df08e5c219159bf6707e2e9c4a0b36..9fe9a7c3924f44976d509b7c81b2c561ee498ef1 100644
---- a/tools/metrics/histograms/histograms_xml/histogram_suffixes_list.xml
-+++ b/tools/metrics/histograms/histograms_xml/histogram_suffixes_list.xml
-@@ -14285,6 +14285,7 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
-
-
-
-+
-
-
diff --git a/patches/tools-metrics-histograms-metadata-histogram_suffixes_list.xml.patch b/patches/tools-metrics-histograms-metadata-histogram_suffixes_list.xml.patch
new file mode 100644
index 000000000000..74dd1f121c68
--- /dev/null
+++ b/patches/tools-metrics-histograms-metadata-histogram_suffixes_list.xml.patch
@@ -0,0 +1,12 @@
+diff --git a/tools/metrics/histograms/metadata/histogram_suffixes_list.xml b/tools/metrics/histograms/metadata/histogram_suffixes_list.xml
+index 3cfa4fb9a1d2784955ec7e02dbb05c6833da4db8..c843879fcde215db3b9debc4808dddb8a1387ca2 100644
+--- a/tools/metrics/histograms/metadata/histogram_suffixes_list.xml
++++ b/tools/metrics/histograms/metadata/histogram_suffixes_list.xml
+@@ -13057,6 +13057,7 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
+
+
+
++
+
+
diff --git a/patches/ui-base-BUILD.gn.patch b/patches/ui-base-BUILD.gn.patch
index 04b6832d68cd..ed1636596b98 100644
--- a/patches/ui-base-BUILD.gn.patch
+++ b/patches/ui-base-BUILD.gn.patch
@@ -1,5 +1,5 @@
diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn
-index 898f3292fafc7b8fcb4e290c61f5b1395c94376d..da729f6add551eccac6993e3c2b80feee4bd7ae7 100644
+index 8d3dd673f60f43c944a3a849165c26262375e5fb..168648e3e9f837a5b2920172c9c7d9c9f2aaec52 100644
--- a/ui/base/BUILD.gn
+++ b/ui/base/BUILD.gn
@@ -465,6 +465,7 @@ component("base") {
diff --git a/patches/ui-native_theme-native_theme_mac.mm.patch b/patches/ui-native_theme-native_theme_mac.mm.patch
index b9c78b121249..7bcd99cf2786 100644
--- a/patches/ui-native_theme-native_theme_mac.mm.patch
+++ b/patches/ui-native_theme-native_theme_mac.mm.patch
@@ -1,8 +1,8 @@
diff --git a/ui/native_theme/native_theme_mac.mm b/ui/native_theme/native_theme_mac.mm
-index 1fdbd41d57deda4c1ebbb8e364f333d3d5dc6700..ed198eab46fa6a5c6b42ceef86c9658ba891d721 100644
+index 091f5a02da078c7d35735c945853a31acb4d4046..2847e1879409afc9bcbef3e422795bd6e7ac8bd1 100644
--- a/ui/native_theme/native_theme_mac.mm
+++ b/ui/native_theme/native_theme_mac.mm
-@@ -176,6 +176,7 @@ absl::optional NativeThemeMac::GetOSColor(
+@@ -177,6 +177,7 @@ absl::optional NativeThemeMac::GetOSColor(
// Even with --secondary-ui-md, menus use the platform colors and styling, and
// Mac has a couple of specific color overrides, documented below.
diff --git a/patches/ui-native_theme-native_theme_win.cc.patch b/patches/ui-native_theme-native_theme_win.cc.patch
index e301ecf2d13d..a20a46bfc8b9 100644
--- a/patches/ui-native_theme-native_theme_win.cc.patch
+++ b/patches/ui-native_theme-native_theme_win.cc.patch
@@ -1,8 +1,8 @@
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
-index 40d441fff4794867f6d3a5bf10d7f6b0d9343716..efa37bbc4db3f1e2d969c17b53b37e08d194ffff 100644
+index 485930b6875acc14f2fdd6e39632ae5d3d9f3904..ace2e0c6e9feef9f61a5e7ae45c8d222e831e479 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
-@@ -1692,6 +1692,7 @@ void NativeThemeWin::UpdateDarkModeStatus() {
+@@ -1698,6 +1698,7 @@ void NativeThemeWin::UpdateDarkModeStatus() {
&apps_use_light_theme);
dark_mode_enabled = (apps_use_light_theme == 0);
}
diff --git a/patches/ui-views-controls-button-md_text_button.cc.patch b/patches/ui-views-controls-button-md_text_button.cc.patch
index 68cdc9dff9ce..bea5ee97a102 100644
--- a/patches/ui-views-controls-button-md_text_button.cc.patch
+++ b/patches/ui-views-controls-button-md_text_button.cc.patch
@@ -1,8 +1,8 @@
diff --git a/ui/views/controls/button/md_text_button.cc b/ui/views/controls/button/md_text_button.cc
-index 821faa5047f4078491f49617a1f6895ed1d0fa8c..6e9bebd693edbb792b6d3e57dbe1049532573beb 100644
+index 7e42f93386e5cea6dca0a60f5005ff3d3f7298fb..ee0decd9fa572e058029f09f304d53500d6f0a57 100644
--- a/ui/views/controls/button/md_text_button.cc
+++ b/ui/views/controls/button/md_text_button.cc
-@@ -265,6 +265,7 @@ void MdTextButton::UpdateColors() {
+@@ -250,6 +250,7 @@ void MdTextButton::UpdateColors() {
UpdateTextColor();
UpdateBackgroundColor();
SchedulePaint();
diff --git a/script/signing_helper.py b/script/signing_helper.py
index 805b40348e10..117a04117ca1 100644
--- a/script/signing_helper.py
+++ b/script/signing_helper.py
@@ -128,6 +128,10 @@ def AddBravePartsForSigning(parts, config):
# uses the same identifier as the current Alerts service, the signing fails.
# For now we can set a different identifier and then remove this change once
# the helper starts being bundled into the distribution.
+ # Cr94 update: Alrts helper is now distributed with Chrome and the conflicting
+ # XPC Notification service is supposed to be gone, but we still end up with
+ # the signing error. So, let's keep this override and see if it causes any
+ # issues.
parts['helper-alerts'].identifier = '{}.helper.alerts'.format(config.base_bundle_id)
return parts
diff --git a/services/network/public/cpp/system_request_handler.cc b/services/network/public/cpp/system_request_handler.cc
index 345579a77a65..965b52555d6d 100644
--- a/services/network/public/cpp/system_request_handler.cc
+++ b/services/network/public/cpp/system_request_handler.cc
@@ -5,8 +5,6 @@
#include "brave/services/network/public/cpp/system_request_handler.h"
-#include "services/network/public/cpp/resource_request.h"
-
namespace network {
SystemRequestHandler* SystemRequestHandler::GetInstance() {
diff --git a/services/network/public/cpp/system_request_handler.h b/services/network/public/cpp/system_request_handler.h
index e7177d3316db..99e8bd5d11c1 100644
--- a/services/network/public/cpp/system_request_handler.h
+++ b/services/network/public/cpp/system_request_handler.h
@@ -9,10 +9,7 @@
#include "base/callback.h"
#include "base/component_export.h"
#include "base/memory/singleton.h"
-
-namespace network {
-struct ResourceRequest;
-} // namespace network
+#include "services/network/public/cpp/resource_request.h"
namespace network {
diff --git a/test/BUILD.gn b/test/BUILD.gn
index c830cbf0de4d..a690f022ce8e 100644
--- a/test/BUILD.gn
+++ b/test/BUILD.gn
@@ -175,7 +175,6 @@ test("brave_unit_tests") {
"//brave/chromium_src/components/autofill_assistant/browser:unit_tests",
"//brave/common:network_constants",
"//brave/common:pref_names",
- "//brave/common:unit_tests",
"//brave/components/adblock_rust_ffi",
"//brave/components/brave_ads/test:brave_ads_unit_tests",
"//brave/components/brave_component_updater/browser",
@@ -714,6 +713,10 @@ if (!is_android) {
"//testing/gmock",
]
+ if (use_aura) {
+ deps += [ "//ui/aura:test_support" ]
+ }
+
if (enable_crash_dialog) {
sources += [ "//brave/browser/ui/views/crash_report_permission_ask_dialog_browsertest.cc" ]
}
@@ -875,7 +878,7 @@ if (!is_android) {
"//chrome/browser:theme_properties",
"//chrome/browser/media/router:media_router_feature",
"//chrome/browser/ui",
- "//chrome/browser/web_applications/components",
+ "//chrome/browser/web_applications",
"//chrome/test:test_support_ui",
"//components/bookmarks/browser",
"//components/content_settings/browser",
@@ -1101,9 +1104,11 @@ if (is_android) {
"//components/permissions/android:java",
"//components/search_engines/android:java",
"//components/sync/android:sync_java",
+ "//content/public/android:content_full_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_appcompat_appcompat_java",
"//third_party/androidx:androidx_preference_preference_java",
+ "//third_party/androidx:androidx_test_runner_java",
"//third_party/junit",
"//ui/android:ui_no_recycler_view_java",
]
diff --git a/utility/importer/chrome_importer.cc b/utility/importer/chrome_importer.cc
index a324f8326b75..151408caf0e9 100644
--- a/utility/importer/chrome_importer.cc
+++ b/utility/importer/chrome_importer.cc
@@ -139,12 +139,9 @@ bool SetEncryptionKey(const base::FilePath& source_path) {
std::u16string DecryptedCardFromColumn(sql::Statement* s, int column_index) {
std::u16string credit_card_number;
- int encrypted_number_len = s->ColumnByteLength(column_index);
- if (encrypted_number_len) {
- std::string encrypted_number;
- encrypted_number.resize(encrypted_number_len);
- memcpy(&encrypted_number[0], s->ColumnBlob(column_index),
- encrypted_number_len);
+ std::string encrypted_number;
+ s->ColumnBlobAsString(column_index, &encrypted_number);
+ if (!encrypted_number.empty()) {
OSCrypt::DecryptString16(encrypted_number, &credit_card_number);
}
return credit_card_number;
diff --git a/vendor/bat-native-ads/src/bat/ads/database.cc b/vendor/bat-native-ads/src/bat/ads/database.cc
index 870ad500ed5c..706b9ffe2e85 100644
--- a/vendor/bat-native-ads/src/bat/ads/database.cc
+++ b/vendor/bat-native-ads/src/bat/ads/database.cc
@@ -226,8 +226,7 @@ mojom::DBCommandResponse::Status Database::Execute(mojom::DBCommand* command) {
return mojom::DBCommandResponse::Status::INITIALIZATION_ERROR;
}
- const int error = db_.ExecuteAndReturnErrorCode(command->command.c_str());
- if (error != SQLITE_OK) {
+ if (!db_.Execute(command->command.c_str())) {
BLOG(0, "Database error: " << db_.GetErrorMessage());
return mojom::DBCommandResponse::Status::COMMAND_ERROR;
}
diff --git a/vendor/bat-native-ads/src/bat/ads/internal/ad_targeting/data_types/behavioral/bandits/epsilon_greedy_bandit_arms.cc b/vendor/bat-native-ads/src/bat/ads/internal/ad_targeting/data_types/behavioral/bandits/epsilon_greedy_bandit_arms.cc
index f61964b5e579..a2455edf0bfd 100644
--- a/vendor/bat-native-ads/src/bat/ads/internal/ad_targeting/data_types/behavioral/bandits/epsilon_greedy_bandit_arms.cc
+++ b/vendor/bat-native-ads/src/bat/ads/internal/ad_targeting/data_types/behavioral/bandits/epsilon_greedy_bandit_arms.cc
@@ -62,7 +62,7 @@ EpsilonGreedyBanditArmMap GetArmsFromDictionary(
return arms;
}
- for (const auto& value : dictionary->DictItems()) {
+ for (const auto value : dictionary->DictItems()) {
if (!value.second.is_dict()) {
NOTREACHED();
continue;
diff --git a/vendor/bat-native-ads/src/bat/ads/internal/settings/settings.cc b/vendor/bat-native-ads/src/bat/ads/internal/settings/settings.cc
index 7d779f5aa160..1c230ce2cecb 100644
--- a/vendor/bat-native-ads/src/bat/ads/internal/settings/settings.cc
+++ b/vendor/bat-native-ads/src/bat/ads/internal/settings/settings.cc
@@ -5,7 +5,7 @@
#include "bat/ads/internal/settings/settings.h"
-#include "base/numerics/ranges.h"
+#include "base/cxx17_backports.h"
#include "bat/ads/internal/ads_client_helper.h"
#include "bat/ads/internal/features/ad_serving/ad_serving_features.h"
#include "bat/ads/pref_names.h"
@@ -22,9 +22,9 @@ int64_t GetAdsPerHour() {
static_cast(features::GetDefaultAdNotificationsPerHour());
}
- return base::ClampToRange(
- ads_per_hour, static_cast(kMinimumAdNotificationsPerHour),
- static_cast(kMaximumAdNotificationsPerHour));
+ return base::clamp(ads_per_hour,
+ static_cast(kMinimumAdNotificationsPerHour),
+ static_cast(kMaximumAdNotificationsPerHour));
}
} // namespace settings
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_activity_info.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_activity_info.cc
index 087331ecb881..ca3d7678a5a5 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_activity_info.cc
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_activity_info.cc
@@ -149,11 +149,8 @@ void DatabaseActivityInfo::NormalizeList(
std::string main_query;
for (const auto& info : list) {
main_query += base::StringPrintf(
- "UPDATE %s SET percent = %d, weight = %f WHERE publisher_id = \"%s\";",
- kTableName,
- info->percent,
- info->weight,
- info->id.c_str());
+ "UPDATE %s SET percent = %d, weight = %f WHERE publisher_id = '%s';",
+ kTableName, info->percent, info->weight, info->id.c_str());
}
if (main_query.empty()) {
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_event_log.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_event_log.cc
index 708387231cf0..533f10263155 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_event_log.cc
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_event_log.cc
@@ -79,12 +79,10 @@ void DatabaseEventLog::InsertRecords(
std::string query = base_query;
for (const auto& record : records) {
- query += base::StringPrintf(
- R"(("%s","%s","%s",%u),)",
- base::GenerateGUID().c_str(),
- record.first.c_str(),
- record.second.c_str(),
- static_cast(time));
+ query +=
+ base::StringPrintf(R"(('%s','%s','%s',%u),)",
+ base::GenerateGUID().c_str(), record.first.c_str(),
+ record.second.c_str(), static_cast(time));
}
query.pop_back();
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_publisher_info.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_publisher_info.cc
index 7fff010a01e8..7a5b236141ae 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_publisher_info.cc
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_publisher_info.cc
@@ -48,9 +48,8 @@ void DatabasePublisherInfo::InsertOrUpdate(
"VALUES (?, ?, ?, ?, ?, "
"(SELECT IFNULL( "
"(SELECT favicon FROM %s "
- "WHERE publisher_id = ?), \"\")));",
- kTableName,
- kTableName);
+ "WHERE publisher_id = ?), '')));",
+ kTableName, kTableName);
auto command = type::DBCommand::New();
command->type = type::DBCommand::Type::RUN;
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_server_publisher_amounts.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_server_publisher_amounts.cc
index 9e144ab168d2..0e9a7043cb51 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_server_publisher_amounts.cc
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_server_publisher_amounts.cc
@@ -39,10 +39,8 @@ void DatabaseServerPublisherAmounts::InsertOrUpdate(
std::string value_list;
for (const auto& amount : server_info.banner->amounts) {
- value_list += base::StringPrintf(
- R"(("%s",%g),)",
- server_info.publisher_key.c_str(),
- amount);
+ value_list += base::StringPrintf(R"(('%s',%g),)",
+ server_info.publisher_key.c_str(), amount);
}
DCHECK(!value_list.empty());
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_server_publisher_links.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_server_publisher_links.cc
index a5d43b324472..5e8c2c1a852c 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_server_publisher_links.cc
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_server_publisher_links.cc
@@ -42,11 +42,9 @@ void DatabaseServerPublisherLinks::InsertOrUpdate(
if (link.second.empty()) {
continue;
}
- value_list += base::StringPrintf(
- R"(("%s","%s","%s"),)",
- server_info.publisher_key.c_str(),
- link.first.c_str(),
- link.second.c_str());
+ value_list += base::StringPrintf(R"(('%s','%s','%s'),)",
+ server_info.publisher_key.c_str(),
+ link.first.c_str(), link.second.c_str());
}
if (value_list.empty()) {
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_util.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_util.cc
index 23c083459485..0aa8caccf22d 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_util.cc
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_util.cc
@@ -198,9 +198,9 @@ std::string GenerateStringInCase(const std::vector& items) {
return "";
}
- const std::string items_join = base::JoinString(items, "\", \"");
+ const std::string items_join = base::JoinString(items, "', '");
- return base::StringPrintf("\"%s\"", items_join.c_str());
+ return base::StringPrintf("'%s'", items_join.c_str());
}
} // namespace database
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_util_unittest.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_util_unittest.cc
index ef12ff92bbfb..625a1ded41c4 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_util_unittest.cc
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/database_util_unittest.cc
@@ -21,11 +21,11 @@ TEST(DatabaseUtil, GenerateStringInCase) {
// one item
result = GenerateStringInCase({"id_1"});
- ASSERT_EQ(result, "\"id_1\"");
+ ASSERT_EQ(result, "'id_1'");
// multiple items
result = GenerateStringInCase({"id_1", "id_2", "id_3"});
- ASSERT_EQ(result, "\"id_1\", \"id_2\", \"id_3\"");
+ ASSERT_EQ(result, "'id_1', 'id_2', 'id_3'");
}
} // namespace database
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v1.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v1.h
index ddc16de0b23a..20f1bcc96695 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v1.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v1.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V1_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V1_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V1_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V1_H_
namespace ledger {
namespace database {
@@ -62,4 +62,4 @@ const char v1[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V1_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V1_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v10.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v10.h
index 4e5c55046c39..06385387541d 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v10.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v10.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V10_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V10_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V10_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V10_H_
namespace ledger {
namespace database {
@@ -75,4 +75,4 @@ const char v10[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V10_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V10_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v11.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v11.h
index 47cf45dc31d4..dfec0d2d8b7d 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v11.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v11.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V11_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V11_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V11_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V11_H_
namespace ledger {
namespace database {
@@ -54,9 +54,9 @@ const char v11[] = R"(
ALTER TABLE contribution_info_temp ADD amount DOUBLE;
UPDATE contribution_info_temp SET
- contribution_id = PRINTF("id_%s_%s", date, ABS(RANDOM())),
+ contribution_id = PRINTF('id_%s_%s', date, ABS(RANDOM())),
amount = CAST(
- PRINTF("%s.%s", SUBSTR(probi, 0, LENGTH(probi)-17),
+ PRINTF('%s.%s', SUBSTR(probi, 0, LENGTH(probi)-17),
SUBSTR(SUBSTR(probi, LENGTH(probi)-17, LENGTH(probi)), 0, 2)) as decimal
);
@@ -67,7 +67,7 @@ const char v11[] = R"(
INSERT INTO contribution_info_publishers (contribution_id, publisher_key,
total_amount, contributed_amount) SELECT contribution_id, publisher_id,
amount, amount FROM contribution_info_temp WHERE publisher_id IS NOT NULL AND
- publisher_id != "";
+ publisher_id != '';
PRAGMA foreign_keys = off;
DROP TABLE IF EXISTS contribution_info_temp;
@@ -78,4 +78,4 @@ const char v11[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V11_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V11_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v12.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v12.h
index 548bd26c2fee..0c43274c358c 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v12.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v12.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V12_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V12_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V12_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V12_H_
namespace ledger {
namespace database {
@@ -44,4 +44,4 @@ const char v12[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V12_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V12_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v13.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v13.h
index 9dd2f140e423..127d8fb8bb46 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v13.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v13.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V13_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V13_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V13_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V13_H_
namespace ledger {
namespace database {
@@ -18,4 +18,4 @@ const char v13[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V13_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V13_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v14.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v14.h
index 2e8773ce5610..9c61b09f0fd6 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v14.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v14.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V14_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V14_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V14_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V14_H_
namespace ledger {
namespace database {
@@ -21,4 +21,4 @@ const char v14[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V14_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V14_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v15.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v15.h
index 56547f2ccee3..9810a8ac054f 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v15.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v15.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V15_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V15_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V15_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V15_H_
namespace ledger {
namespace database {
@@ -276,4 +276,4 @@ const char v15[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V15_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V15_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v16.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v16.h
index 42e7123664bb..a350e5033e1d 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v16.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v16.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V16_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V16_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V16_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V16_H_
namespace ledger {
namespace database {
@@ -23,4 +23,4 @@ const char v16[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V16_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V16_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v17.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v17.h
index d98a479c9815..c4e45c34452e 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v17.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v17.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V17_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V17_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V17_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V17_H_
namespace ledger {
namespace database {
@@ -18,4 +18,4 @@ const char v17[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V17_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V17_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v18.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v18.h
index 61f4de3d3986..fb1dfbfcb186 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v18.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v18.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V18_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V18_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V18_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V18_H_
namespace ledger {
namespace database {
@@ -92,4 +92,4 @@ const char v18[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V18_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V18_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v19.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v19.h
index 8fd33fd35c2e..f4635510f284 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v19.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v19.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V19_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V19_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V19_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V19_H_
namespace ledger {
namespace database {
@@ -70,4 +70,4 @@ const char v19[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V19_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V19_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v2.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v2.h
index ad0b5e86c040..9dffb0020bee 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v2.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v2.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V2_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V2_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V2_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V2_H_
namespace ledger {
namespace database {
@@ -19,7 +19,7 @@ const char v2[] = R"(
CREATE TABLE contribution_info (
publisher_id LONGVARCHAR,
- probi TEXT "0" NOT NULL,
+ probi TEXT '0' NOT NULL,
date INTEGER NOT NULL,
category INTEGER NOT NULL,
month INTEGER NOT NULL,
@@ -55,4 +55,4 @@ const char v2[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V2_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V2_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v20.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v20.h
index 371f7940a35a..616a025e5bbf 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v20.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v20.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V20_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V20_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V20_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V20_H_
namespace ledger {
namespace database {
@@ -28,4 +28,4 @@ const char v20[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V20_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V20_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v21.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v21.h
index ebc4c456f902..7e789d58b007 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v21.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v21.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V21_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V21_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V21_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V21_H_
namespace ledger {
namespace database {
@@ -47,4 +47,4 @@ const char v21[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V21_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V21_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v22.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v22.h
index c981d6bd762d..10090a25a88a 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v22.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v22.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V22_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V22_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V22_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V22_H_
namespace ledger {
namespace database {
@@ -41,4 +41,4 @@ const char v22[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V22_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V22_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v23.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v23.h
index a519824c5218..37166c7b0feb 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v23.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v23.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V23_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V23_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V23_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V23_H_
namespace ledger {
namespace database {
@@ -62,4 +62,4 @@ const char v23[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V23_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V23_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v24.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v24.h
index a54aebfc7d0a..37a6c27795c5 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v24.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v24.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V24_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V24_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V24_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V24_H_
namespace ledger {
namespace database {
@@ -18,4 +18,4 @@ const char v24[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V24_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V24_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v25.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v25.h
index 0a2b799b9c3d..472c026aea70 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v25.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v25.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V25_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V25_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V25_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V25_H_
namespace ledger {
namespace database {
@@ -18,4 +18,4 @@ const char v25[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V25_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V25_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v26.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v26.h
index 9c8f4554b386..c57baeccd75d 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v26.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v26.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V26_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V26_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V26_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V26_H_
namespace ledger {
namespace database {
@@ -50,4 +50,4 @@ const char v26[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V26_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V26_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v27.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v27.h
index 05fc3ddee878..ff11cd9bcef9 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v27.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v27.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V27_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V27_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V27_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V27_H_
namespace ledger {
namespace database {
@@ -18,4 +18,4 @@ const char v27[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V27_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V27_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v28.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v28.h
index 87850ee02484..2ddbb3a9c7df 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v28.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v28.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V28_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V28_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V28_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V28_H_
namespace ledger {
namespace database {
@@ -54,4 +54,4 @@ const char v28[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V28_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V28_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v29.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v29.h
index 06684e8b89d9..75da71fe3458 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v29.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v29.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V29_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V29_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V29_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V29_H_
namespace ledger {
namespace database {
@@ -27,4 +27,4 @@ const char v29[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V29_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V29_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v3.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v3.h
index 472bb6a9109b..c07e473f5bfa 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v3.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v3.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V3_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V3_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V3_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V3_H_
namespace ledger {
namespace database {
@@ -35,4 +35,4 @@ const char v3[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V3_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V3_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v4.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v4.h
index 766e3564790a..df71ca512083 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v4.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v4.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V4_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V4_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V4_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V4_H_
namespace ledger {
namespace database {
@@ -51,4 +51,4 @@ const char v4[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V4_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V4_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v5.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v5.h
index a940c4eaa283..dd71ae417e86 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v5.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v5.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V5_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V5_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V5_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V5_H_
namespace ledger {
namespace database {
@@ -18,4 +18,4 @@ const char v5[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V5_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V5_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v6.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v6.h
index b2793fe4727c..911a05982f07 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v6.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v6.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V6_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V6_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V6_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V6_H_
namespace ledger {
namespace database {
@@ -49,4 +49,4 @@ const char v6[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V6_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V6_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v7.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v7.h
index 322b3ed0f17b..895ca10a104f 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v7.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v7.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V7_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V7_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V7_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V7_H_
namespace ledger {
namespace database {
@@ -105,4 +105,4 @@ const char v7[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V7_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V7_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v8.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v8.h
index 9fce04806676..94bf0f16d13b 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v8.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v8.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V8_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V8_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V8_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V8_H_
namespace ledger {
namespace database {
@@ -17,7 +17,7 @@ const char v8[] = R"(
CREATE TABLE contribution_info (
publisher_id LONGVARCHAR,
- probi TEXT "0" NOT NULL,
+ probi TEXT '0' NOT NULL,
date INTEGER NOT NULL,
type INTEGER NOT NULL,
month INTEGER NOT NULL,
@@ -71,4 +71,4 @@ const char v8[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V8_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V8_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v9.h b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v9.h
index 1c0583967a8f..8b90e696cd02 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v9.h
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/database/migration/migration_v9.h
@@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V9_H_
-#define BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V9_H_
+#ifndef BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V9_H_
+#define BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V9_H_
namespace ledger {
namespace database {
@@ -45,4 +45,4 @@ const char v9[] = R"(
} // namespace database
} // namespace ledger
-#endif // BRAVELEDGER_DATABASE_MIGRATION_MIGRATION_V9_H_
+#endif // BRAVE_VENDOR_BAT_NATIVE_LEDGER_SRC_BAT_LEDGER_INTERNAL_DATABASE_MIGRATION_MIGRATION_V9_H_
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/legacy/client_state.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/legacy/client_state.cc
index 89abcb184d12..176ac1020298 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/legacy/client_state.cc
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/legacy/client_state.cc
@@ -155,7 +155,7 @@ bool ClientState::FromDict(
return false;
}
- for (const auto& inline_tip_value : inline_tips_value->DictItems()) {
+ for (const auto inline_tip_value : inline_tips_value->DictItems()) {
const auto& key = inline_tip_value.first;
const auto& value = inline_tip_value.second;
diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/legacy/publisher_settings_state.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/legacy/publisher_settings_state.cc
index 4929245703db..96a4c0a7c28f 100644
--- a/vendor/bat-native-ledger/src/bat/ledger/internal/legacy/publisher_settings_state.cc
+++ b/vendor/bat-native-ledger/src/bat/ledger/internal/legacy/publisher_settings_state.cc
@@ -132,7 +132,7 @@ bool PublisherSettingsState::FromDict(
continue;
}
- for (const auto& item : monthly_balance_value.DictItems()) {
+ for (const auto item : monthly_balance_value.DictItems()) {
const auto& key = item.first;
const auto& value = item.second;