mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 39cd99cc8d | |||
| 8ca6ce276b | |||
| 6af846d7a3 | |||
| 7d014c2076 | |||
| 7cc336dcb2 | |||
| d57e242e5e | |||
| 26252d38c2 | |||
| d9282c041e | |||
| edea8fe4f7 | |||
| ff09b25f95 | |||
| cb4f6ca17b | |||
| 2f826d1ee9 | |||
| e8f5addcff | |||
| 868121c2fc |
@@ -1 +1 @@
|
||||
143.0.7499.192
|
||||
144.0.7559.59
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
from third_party import unidiff
|
||||
|
||||
LICENSE_HEADER_IGNORES = ["html", "license", "readme"]
|
||||
LICENSE_HEADER_IGNORES = ["html", "license", "readme", "deps"]
|
||||
|
||||
patches_dir = None
|
||||
series = None
|
||||
|
||||
@@ -105,6 +105,7 @@ PRUNING_EXCLUDE_PATTERNS = [
|
||||
'*.js',
|
||||
'*.json',
|
||||
'*.txt',
|
||||
'*.binarypb',
|
||||
'*.xtb'
|
||||
]
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ fonts(\\*?)\.googleapis(\\*?)\.com#f0ntz\g<1>.9oo91e8p1\g<2>.qjz9zk
|
||||
google([A-Za-z\-]*?\\*?)\.com(?!mon)#9oo91e\g<1>.qjz9zk
|
||||
gstatic([A-Za-z\-]*?\\*?)\.com#95tat1c\g<1>.qjz9zk
|
||||
chrome([A-Za-z\-]*?\\*?)\.com(?!ponent)#ch40me\g<1>.qjz9zk
|
||||
chromium([A-Za-z\-]*?\\*?)\.org#ch40m1um\g<1>.qjz9zk
|
||||
chromium(?!app)([A-Za-z\-]*?\\*?)\.org#ch40m1um\g<1>.qjz9zk
|
||||
mozilla([A-Za-z\-]*?\\*?)\.org#m0z111a\g<1>.qjz9zk
|
||||
facebook([A-Za-z\-]*?\\*?)\.com#f8c3b00k\g<1>.qjz9zk
|
||||
appspot([A-Za-z\-]*?\\*?)\.com#8pp2p8t\g<1>.qjz9zk
|
||||
|
||||
+1100
-340
File diff suppressed because it is too large
Load Diff
@@ -244,7 +244,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -4281,6 +4281,9 @@ inline constexpr char kServiceWorkerToCo
|
||||
@@ -4318,6 +4318,9 @@ inline constexpr char kServiceWorkerToCo
|
||||
inline constexpr char kSharedWorkerBlobURLFixEnabled[] =
|
||||
"worker.shared_worker_blob_url_fix_enabled";
|
||||
|
||||
@@ -256,7 +256,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
inline constexpr char kClearWindowNameForNewBrowsingContextGroup[] =
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -1147,6 +1147,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -1151,6 +1151,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -275,7 +275,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "chrome/browser/ui/webui/settings/browser_lifetime_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/downloads_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/font_handler.h"
|
||||
@@ -203,6 +204,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
@@ -211,6 +212,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogHistory, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSavedPasswords, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSearchEngine, true);
|
||||
@@ -283,7 +283,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
SettingsUI::SettingsUI(content::WebUI* web_ui)
|
||||
@@ -232,7 +234,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
@@ -240,7 +242,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
AddSettingsPageUIHandler(std::make_unique<DownloadsHandler>(profile));
|
||||
AddSettingsPageUIHandler(std::make_unique<ExtensionControlHandler>());
|
||||
AddSettingsPageUIHandler(std::make_unique<FontHandler>(profile));
|
||||
@@ -294,7 +294,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -999,6 +999,8 @@ void AddImportDataStrings(content::WebUI
|
||||
@@ -1014,6 +1014,8 @@ void AddImportDataStrings(content::WebUI
|
||||
{"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX},
|
||||
{"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX},
|
||||
{"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX},
|
||||
@@ -330,7 +330,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"webui/settings/browser_lifetime_handler.cc",
|
||||
"webui/settings/browser_lifetime_handler.h",
|
||||
"webui/settings/captions_handler.cc",
|
||||
@@ -1408,6 +1412,13 @@ static_library("ui") {
|
||||
@@ -1410,6 +1414,13 @@ static_library("ui") {
|
||||
]
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// Corresponds to the "id" column of the "visits" SQL table.
|
||||
--- a/components/history/core/browser/visit_database.cc
|
||||
+++ b/components/history/core/browser/visit_database.cc
|
||||
@@ -120,6 +120,8 @@ VisitSource VisitSourceFromInt(int value
|
||||
@@ -122,6 +122,8 @@ VisitSource VisitSourceFromInt(int value
|
||||
case SOURCE_SAFARI_IMPORTED:
|
||||
case SOURCE_ACTOR:
|
||||
case SOURCE_OS_MIGRATION_IMPORTED:
|
||||
@@ -423,7 +423,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// In cases of database corruption, SOURCE_BROWSED is a safe default value.
|
||||
--- a/chrome/browser/importer/in_process_importer_bridge.cc
|
||||
+++ b/chrome/browser/importer/in_process_importer_bridge.cc
|
||||
@@ -53,6 +53,8 @@ history::VisitSource ConvertImporterVisi
|
||||
@@ -52,6 +52,8 @@ history::VisitSource ConvertImporterVisi
|
||||
return history::SOURCE_IE_IMPORTED;
|
||||
case user_data_importer::VISIT_SOURCE_SAFARI_IMPORTED:
|
||||
return history::SOURCE_SAFARI_IMPORTED;
|
||||
@@ -449,7 +449,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"importer/importer.cc",
|
||||
--- a/chrome/utility/services.cc
|
||||
+++ b/chrome/utility/services.cc
|
||||
@@ -56,7 +56,9 @@
|
||||
@@ -57,7 +57,9 @@
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
#include "chrome/common/importer/profile_import.mojom.h"
|
||||
@@ -457,8 +457,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "chrome/utility/importer/profile_import_impl.h"
|
||||
+#include "chrome/utility/importer/brave_profile_import_impl.h"
|
||||
#include "components/mirroring/service/mirroring_service.h"
|
||||
#include "services/passage_embeddings/passage_embeddings_service.h"
|
||||
#include "services/proxy_resolver/proxy_resolver_factory_impl.h" // nogncheck
|
||||
#include "services/proxy_resolver/public/mojom/proxy_resolver.mojom.h"
|
||||
@@ -138,6 +140,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
|
||||
|
||||
namespace {
|
||||
@@ -473,14 +473,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
auto RunFilePatcher(mojo::PendingReceiver<patch::mojom::FilePatcher> receiver) {
|
||||
return std::make_unique<patch::FilePatcherImpl>(std::move(receiver));
|
||||
}
|
||||
@@ -434,6 +443,7 @@ void RegisterMainThreadServices(mojo::Se
|
||||
services.Add(ContentBookmarkParser);
|
||||
@@ -435,6 +444,7 @@ void RegisterMainThreadServices(mojo::Se
|
||||
services.Add(RunPassageEmbeddingsService);
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
+ services.Add(RunBraveProfileImporter);
|
||||
services.Add(RunProfileImporter);
|
||||
services.Add(RunMirroringService);
|
||||
services.Add(RunPassageEmbeddingsService);
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
--- a/chrome/utility/importer/external_process_importer_bridge.h
|
||||
+++ b/chrome/utility/importer/external_process_importer_bridge.h
|
||||
@@ -72,7 +72,7 @@ class ExternalProcessImporterBridge : pu
|
||||
@@ -583,7 +583,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// entire group has been collected and is ready to be written to the profile.
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -11279,6 +11279,15 @@ Check your passwords anytime in <ph name
|
||||
@@ -11415,6 +11415,15 @@ Check your passwords anytime in <ph name
|
||||
Microsoft Edge
|
||||
</message>
|
||||
</if>
|
||||
|
||||
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
--- a/extensions/browser/extension_registrar.cc
|
||||
+++ b/extensions/browser/extension_registrar.cc
|
||||
@@ -18,6 +18,7 @@
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
#include "content/public/browser/devtools_agent_host.h"
|
||||
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "extensions/browser/blocklist_extension_prefs.h"
|
||||
#include "extensions/browser/delayed_install_manager.h"
|
||||
#include "extensions/browser/disable_reason.h"
|
||||
@@ -540,6 +541,22 @@ void ExtensionRegistrar::AddComponentExt
|
||||
@@ -543,6 +544,22 @@ void ExtensionRegistrar::AddComponentExt
|
||||
}
|
||||
|
||||
AddExtension(extension);
|
||||
|
||||
@@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "chrome/browser/ui/commerce/ui_utils.h"
|
||||
#include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_bubble.h"
|
||||
#include "chrome/browser/ui/tabs/features.h"
|
||||
@@ -3703,6 +3704,44 @@ TabStripSelectionChange TabStripModel::S
|
||||
@@ -3810,6 +3811,44 @@ TabStripSelectionChange TabStripModel::S
|
||||
return selection;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// This may happen during automated testing or if a user somehow buffers
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
@@ -611,6 +611,10 @@ class TabStripModel {
|
||||
@@ -619,6 +619,10 @@ class TabStripModel {
|
||||
TabStripUserGestureDetails detail = TabStripUserGestureDetails(
|
||||
TabStripUserGestureDetails::GestureType::kOther));
|
||||
|
||||
@@ -93,7 +93,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// Moves the active in the specified direction. Respects group boundaries.
|
||||
void MoveTabNext();
|
||||
void MoveTabPrevious();
|
||||
@@ -1139,6 +1143,11 @@ class TabStripModel {
|
||||
@@ -1168,6 +1172,11 @@ class TabStripModel {
|
||||
kPrevious,
|
||||
};
|
||||
|
||||
@@ -105,9 +105,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// Selects either the next tab (kNext), or the previous tab (kPrevious).
|
||||
void SelectRelativeTab(TabRelativeDirection direction,
|
||||
TabStripUserGestureDetails detail);
|
||||
@@ -1393,6 +1402,9 @@ class TabStripModel {
|
||||
// Tracks whether a modal UI is showing.
|
||||
bool showing_modal_ui_ = false;
|
||||
@@ -1425,6 +1434,9 @@ class TabStripModel {
|
||||
// The focused group. If no group is focused, this is nullopt.
|
||||
std::optional<tab_groups::TabGroupId> focused_group_;
|
||||
|
||||
+ // List of tabs for MRU cycling
|
||||
+ std::vector<int> mru_cycle_list_;
|
||||
@@ -117,7 +117,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -291,7 +291,10 @@
|
||||
@@ -297,7 +297,10 @@
|
||||
#include "ui/compositor/paint_recorder.h"
|
||||
#include "ui/content_accelerators/accelerator_util.h"
|
||||
#include "ui/display/screen.h"
|
||||
@@ -128,7 +128,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "ui/gfx/animation/animation_runner.h"
|
||||
#include "ui/gfx/canvas.h"
|
||||
#include "ui/gfx/color_utils.h"
|
||||
@@ -309,6 +312,7 @@
|
||||
@@ -315,6 +318,7 @@
|
||||
#include "ui/views/controls/button/menu_button.h"
|
||||
#include "ui/views/controls/textfield/textfield.h"
|
||||
#include "ui/views/controls/webview/webview.h"
|
||||
@@ -136,7 +136,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "ui/views/interaction/element_tracker_views.h"
|
||||
#include "ui/views/layout/fill_layout.h"
|
||||
#include "ui/views/view.h"
|
||||
@@ -809,6 +813,83 @@ class BrowserView::ExclusiveAccessContex
|
||||
@@ -816,6 +820,83 @@ class BrowserView::ExclusiveAccessContex
|
||||
base::WeakPtrFactory<ExclusiveAccessContextImpl> weak_ptr_factory_{this};
|
||||
};
|
||||
|
||||
@@ -222,7 +222,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
explicit AccessibilityModeObserver(BrowserView* browser_view)
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.h
|
||||
@@ -80,6 +80,7 @@ class LocationBarView;
|
||||
@@ -82,6 +82,7 @@ class LocationBarView;
|
||||
class MultiContentsView;
|
||||
class ScrimView;
|
||||
class SidePanel;
|
||||
@@ -230,7 +230,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
class TabDragDelegate;
|
||||
class TabSearchBubbleHost;
|
||||
class TabStrip;
|
||||
@@ -555,6 +556,10 @@ class BrowserView : public BrowserWindow
|
||||
@@ -560,6 +561,10 @@ class BrowserView : public BrowserWindow
|
||||
bool IsBorderlessModeEnabled() const override;
|
||||
void ShowChromeLabs() override;
|
||||
BrowserView* AsBrowserView() override;
|
||||
@@ -241,7 +241,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
SharingDialog* ShowSharingDialog(content::WebContents* contents,
|
||||
SharingDialogData data) override;
|
||||
void ShowUpdateChromeDialog() override;
|
||||
@@ -860,6 +865,7 @@ class BrowserView : public BrowserWindow
|
||||
@@ -868,6 +873,7 @@ class BrowserView : public BrowserWindow
|
||||
friend class BrowserViewLayoutDelegateImpl;
|
||||
friend class BrowserViewLayoutDelegateImplOld;
|
||||
friend class BrowserViewLayoutDelegateImplBrowsertest;
|
||||
@@ -249,9 +249,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
friend class TopControlsSlideControllerTest;
|
||||
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, BrowserView);
|
||||
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, AccessibleWindowTitle);
|
||||
@@ -1387,6 +1393,8 @@ class BrowserView : public BrowserWindow
|
||||
|
||||
base::CallbackListSubscription vertical_tab_subscription_;
|
||||
@@ -1434,6 +1440,8 @@ class BrowserView : public BrowserWindow
|
||||
TabStripAndWebAppViewsReparentedState::kMaxValue>
|
||||
tab_strip_web_apps_reparented_state_;
|
||||
|
||||
+ std::unique_ptr<TabCyclingEventHandler> tab_cycling_event_handler_;
|
||||
+
|
||||
|
||||
@@ -51,7 +51,7 @@ Subject: Disable fetching of all field trials
|
||||
/**
|
||||
--- a/components/variations/service/variations_service.cc
|
||||
+++ b/components/variations/service/variations_service.cc
|
||||
@@ -223,22 +223,7 @@ bool GetInstanceManipulations(const net:
|
||||
@@ -224,22 +224,7 @@ bool GetInstanceManipulations(const net:
|
||||
// Variations seed fetching is only enabled in official Chrome builds, if a URL
|
||||
// is specified on the command line, and for testing.
|
||||
bool IsFetchingEnabled() {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2596,6 +2596,7 @@ static_library("browser") {
|
||||
@@ -2583,6 +2583,7 @@ static_library("browser") {
|
||||
"//third_party/libyuv",
|
||||
"//third_party/metrics_proto",
|
||||
"//third_party/re2",
|
||||
@@ -44,7 +44,7 @@
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/BUILD.gn
|
||||
+++ b/content/browser/BUILD.gn
|
||||
@@ -299,6 +299,7 @@ source_set("browser") {
|
||||
@@ -297,6 +297,7 @@ source_set("browser") {
|
||||
"//third_party/re2",
|
||||
"//third_party/snappy",
|
||||
"//third_party/sqlite",
|
||||
@@ -62,7 +62,7 @@
|
||||
#include "components/viz/common/switches.h"
|
||||
#include "components/viz/host/gpu_client.h"
|
||||
#include "components/viz/host/host_frame_sink_manager.h"
|
||||
@@ -3698,6 +3699,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3726,6 +3727,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kEnableWebGLImageChromium,
|
||||
switches::kEnableWebGPUDeveloperFeatures,
|
||||
switches::kFileUrlPathAlias,
|
||||
@@ -124,7 +124,7 @@
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
#include "base/time/time.h"
|
||||
#include "base/trace_event/trace_event.h"
|
||||
@@ -1089,6 +1090,11 @@ Document::Document(const DocumentInit& i
|
||||
@@ -1093,6 +1094,11 @@ Document::Document(const DocumentInit& i
|
||||
TRACE_EVENT_WITH_FLOW0("blink", "Document::Document", TRACE_ID_LOCAL(this),
|
||||
TRACE_EVENT_FLAG_FLOW_OUT);
|
||||
DCHECK(agent_);
|
||||
@@ -153,7 +153,7 @@
|
||||
selector_query_cache_ = MakeGarbageCollected<SelectorQueryCache>();
|
||||
--- a/third_party/blink/renderer/core/dom/document.h
|
||||
+++ b/third_party/blink/renderer/core/dom/document.h
|
||||
@@ -574,6 +574,10 @@ class CORE_EXPORT Document : public Cont
|
||||
@@ -597,6 +597,10 @@ class CORE_EXPORT Document : public Cont
|
||||
has_xml_declaration_ = has_xml_declaration ? 1 : 0;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
V8VisibilityState visibilityState() const;
|
||||
String visibilityStateAsString() const;
|
||||
bool IsPageVisible() const;
|
||||
@@ -2810,6 +2814,9 @@ class CORE_EXPORT Document : public Cont
|
||||
@@ -3055,6 +3059,9 @@ class CORE_EXPORT Document : public Cont
|
||||
|
||||
base::ElapsedTimer start_time_;
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
// - ScriptSchedulingType::kInOrder
|
||||
--- a/third_party/blink/renderer/core/dom/element.cc
|
||||
+++ b/third_party/blink/renderer/core/dom/element.cc
|
||||
@@ -3195,6 +3195,9 @@ Vector<gfx::RectF> Element::GetClientRec
|
||||
@@ -3257,6 +3257,9 @@ Vector<gfx::RectF> Element::GetClientRec
|
||||
}
|
||||
Vector<gfx::RectF> result;
|
||||
for (auto& quad : quads) {
|
||||
@@ -186,7 +186,7 @@
|
||||
result.emplace_back(quad.BoundingBox());
|
||||
}
|
||||
return result;
|
||||
@@ -3224,6 +3227,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
@@ -3286,6 +3289,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
DCHECK(element_layout_object);
|
||||
GetDocument().AdjustRectForScrollAndAbsoluteZoom(result,
|
||||
*element_layout_object);
|
||||
@@ -198,7 +198,7 @@
|
||||
|
||||
--- a/third_party/blink/renderer/core/dom/range.cc
|
||||
+++ b/third_party/blink/renderer/core/dom/range.cc
|
||||
@@ -1655,6 +1655,12 @@ DOMRectList* Range::getClientRects() con
|
||||
@@ -1654,6 +1654,12 @@ DOMRectList* Range::getClientRects() con
|
||||
Vector<gfx::QuadF> quads;
|
||||
GetBorderAndTextQuads(quads);
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
return MakeGarbageCollected<DOMRectList>(quads);
|
||||
}
|
||||
|
||||
@@ -1662,7 +1668,11 @@ DOMRect* Range::getBoundingClientRect()
|
||||
@@ -1661,7 +1667,11 @@ DOMRect* Range::getBoundingClientRect()
|
||||
// TODO(crbug.com/1499981): This should be removed once synchronized scrolling
|
||||
// impact is understood.
|
||||
SyncScrollAttemptHeuristic::DidAccessScrollOffset();
|
||||
@@ -264,7 +264,7 @@
|
||||
const TextDirection& direction,
|
||||
--- 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
|
||||
@@ -107,6 +107,9 @@
|
||||
@@ -103,6 +103,9 @@
|
||||
// https://github.com/include-what-you-use/include-what-you-use/issues/1122
|
||||
// IWYU pragma: no_include "base/numerics/clamped_math.h"
|
||||
|
||||
@@ -274,14 +274,14 @@
|
||||
namespace blink {
|
||||
|
||||
class MemoryManagedPaintCanvas;
|
||||
@@ -1233,9 +1236,22 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
@@ -1170,9 +1173,22 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
TextDirection direction =
|
||||
ToTextDirection(state.GetDirection(), host, computed_style);
|
||||
|
||||
- return MakeGarbageCollected<TextMetrics>(
|
||||
+ TextMetrics* text_metrics = MakeGarbageCollected<TextMetrics>(
|
||||
font, direction, state.GetTextBaseline().AsEnum(),
|
||||
state.GetTextAlign().AsEnum(), text, host->GetPlainTextPainter());
|
||||
font, direction, state.GetTextBaseline(), state.GetTextAlign(), text,
|
||||
host->GetPlainTextPainter());
|
||||
+
|
||||
+ // Scale text metrics if enabled
|
||||
+ if (RuntimeEnabledFeatures::FingerprintingCanvasMeasureTextNoiseEnabled()) {
|
||||
@@ -300,7 +300,7 @@
|
||||
String BaseRenderingContext2D::lang() const {
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1811,6 +1811,7 @@ component("platform") {
|
||||
@@ -1810,6 +1810,7 @@ component("platform") {
|
||||
"//components/paint_preview/common",
|
||||
"//components/search_engines:search_engine_utils",
|
||||
"//components/translate/core/language_detection",
|
||||
@@ -335,7 +335,7 @@
|
||||
#include "third_party/skia/include/core/SkImage.h"
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2441,6 +2441,12 @@
|
||||
@@ -2511,6 +2511,12 @@
|
||||
status: "stable",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ approach to change color components.
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
||||
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
||||
@@ -3701,6 +3701,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3729,6 +3729,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kFileUrlPathAlias,
|
||||
switches::kFingerprintingClientRectsNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise,
|
||||
@@ -65,7 +65,7 @@ approach to change color components.
|
||||
};
|
||||
--- 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
|
||||
@@ -557,6 +557,9 @@ ImageData* BaseRenderingContext2D::getIm
|
||||
@@ -526,6 +526,9 @@ ImageData* BaseRenderingContext2D::getIm
|
||||
snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds();
|
||||
DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
|
||||
}
|
||||
@@ -77,7 +77,7 @@ approach to change color components.
|
||||
return image_data;
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1753,7 +1753,9 @@ component("platform") {
|
||||
@@ -1752,7 +1752,9 @@ component("platform") {
|
||||
"//third_party/blink/renderer:non_test_config",
|
||||
]
|
||||
|
||||
@@ -314,7 +314,7 @@ approach to change color components.
|
||||
SkJpegEncoder::Options options;
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2447,6 +2447,9 @@
|
||||
@@ -2517,6 +2517,9 @@
|
||||
name: "FingerprintingCanvasMeasureTextNoise",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2269,6 +2269,7 @@ static_library("browser") {
|
||||
@@ -2258,6 +2258,7 @@ static_library("browser") {
|
||||
"//components/net_log",
|
||||
"//components/network_hints/common:mojo_bindings",
|
||||
"//components/network_session_configurator/browser",
|
||||
@@ -32,8 +32,8 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#ifndef CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
|
||||
#define CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
|
||||
+const FeatureEntry::Choice kMaxConnectionsPerHostChoices[] = {
|
||||
+ {features::kMaxConnectionsPerHostChoiceDefault, "", ""},
|
||||
+ {features::kMaxConnectionsPerHostChoice15, switches::kMaxConnectionsPerHost, "15"},
|
||||
+ {flags_ui::kGenericExperimentChoiceDefault, "", ""},
|
||||
+ {"15", switches::kMaxConnectionsPerHost, "15"},
|
||||
+};
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
|
||||
--- a/chrome/browser/bromite_flag_entries.h
|
||||
@@ -81,7 +81,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#include "printing/buildflags/buildflags.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
#include "services/network/public/cpp/network_switches.h"
|
||||
@@ -432,6 +436,18 @@ void BrowserProcessImpl::Init() {
|
||||
@@ -441,6 +445,18 @@ void BrowserProcessImpl::Init() {
|
||||
pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
|
||||
base::BindRepeating(&ApplyMetricsReportingPolicy));
|
||||
|
||||
@@ -93,7 +93,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
+ << " expected integer; got (\"" << switch_value << "\" instead)";
|
||||
+ }
|
||||
+ if (max_connections_per_host != 0) {
|
||||
+ net::ClientSocketPoolManager::set_max_sockets_per_group(
|
||||
+ net::ClientSocketPoolManager::set_max_sockets_per_group_for_test(
|
||||
+ net::HttpNetworkSession::NORMAL_SOCKET_POOL, max_connections_per_host);
|
||||
+ }
|
||||
+
|
||||
@@ -102,7 +102,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
|
||||
--- a/chrome/browser/flag_descriptions.h
|
||||
+++ b/chrome/browser/flag_descriptions.h
|
||||
@@ -2753,6 +2753,10 @@ inline constexpr char kLogJsConsoleMessa
|
||||
@@ -2759,6 +2759,10 @@ inline constexpr char kLogJsConsoleMessa
|
||||
"Enable logging JS console messages in system logs, please note that they "
|
||||
"may contain PII.";
|
||||
|
||||
@@ -113,29 +113,6 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
inline constexpr char kMediaRouterCastAllowAllIPsName[] =
|
||||
"Connect to Cast devices on all IP addresses";
|
||||
inline constexpr char kMediaRouterCastAllowAllIPsDescription[] =
|
||||
--- a/components/network_session_configurator/common/network_features.cc
|
||||
+++ b/components/network_session_configurator/common/network_features.cc
|
||||
@@ -8,4 +8,7 @@
|
||||
|
||||
namespace features {
|
||||
|
||||
+const char kMaxConnectionsPerHostChoiceDefault[] = "6",
|
||||
+ kMaxConnectionsPerHostChoice15[] = "15";
|
||||
+
|
||||
} // namespace features
|
||||
--- a/components/network_session_configurator/common/network_features.h
|
||||
+++ b/components/network_session_configurator/common/network_features.h
|
||||
@@ -10,6 +10,10 @@
|
||||
|
||||
namespace features {
|
||||
|
||||
+NETWORK_SESSION_CONFIGURATOR_EXPORT extern const char kMaxConnectionsPerHostChoiceDefault[],
|
||||
+ kMaxConnectionsPerHostChoice6[],
|
||||
+ kMaxConnectionsPerHostChoice15[];
|
||||
+
|
||||
} // namespace features
|
||||
|
||||
#endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_COMMON_NETWORK_FEATURES_H_
|
||||
--- a/components/network_session_configurator/common/network_switch_list.h
|
||||
+++ b/components/network_session_configurator/common/network_switch_list.h
|
||||
@@ -19,6 +19,10 @@ NETWORK_SWITCH(kEnableUserAlternateProto
|
||||
@@ -147,5 +124,5 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
+NETWORK_SWITCH(kMaxConnectionsPerHost, "max-connections-per-host")
|
||||
+
|
||||
// Ignores certificate-related errors.
|
||||
NETWORK_SWITCH(kIgnoreCertificateErrors, "ignore-certificate-errors")
|
||||
|
||||
// Note: In tests using net::EmbeddedTestServer with a custom hostname not
|
||||
// covered by the default test certs, using this switch is usually incorrect.
|
||||
|
||||
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
|
||||
|
||||
--- a/chrome/browser/ui/startup/infobar_utils.cc
|
||||
+++ b/chrome/browser/ui/startup/infobar_utils.cc
|
||||
@@ -188,10 +188,6 @@ void AddInfoBarsIfNecessary(BrowserWindo
|
||||
@@ -176,10 +176,6 @@ void AddInfoBarsIfNecessary(BrowserWindo
|
||||
infobars::ContentInfoBarManager* infobar_manager =
|
||||
infobars::ContentInfoBarManager::FromWebContents(web_contents);
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
+
|
||||
bool ValidateExtensionLocales(const base::FilePath& extension_path,
|
||||
const base::Value::Dict& manifest,
|
||||
std::string* error) {
|
||||
std::u16string* error) {
|
||||
--- a/extensions/browser/l10n_file_util.h
|
||||
+++ b/extensions/browser/l10n_file_util.h
|
||||
@@ -47,7 +47,8 @@ LoadMessageBundleSubstitutionMapFromPath
|
||||
@@ -189,7 +189,7 @@
|
||||
base::FilePath GetComputedHashesPath(const base::FilePath& extension_path);
|
||||
--- a/extensions/common/file_util.cc
|
||||
+++ b/extensions/common/file_util.cc
|
||||
@@ -597,6 +597,25 @@ MessageBundle* LoadMessageBundle(
|
||||
@@ -605,6 +605,25 @@ MessageBundle* LoadMessageBundle(
|
||||
return message_bundle;
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
.Append(kVerifiedContentsFilename);
|
||||
--- a/extensions/browser/renderer_startup_helper.cc
|
||||
+++ b/extensions/browser/renderer_startup_helper.cc
|
||||
@@ -688,6 +688,18 @@ void RendererStartupHelper::GetMessageBu
|
||||
@@ -712,6 +712,18 @@ void RendererStartupHelper::GetMessageBu
|
||||
paths_to_load.push_back(imported_extension->path());
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/extensions/api/storage/managed_value_store_cache.cc
|
||||
+++ b/chrome/browser/extensions/api/storage/managed_value_store_cache.cc
|
||||
@@ -97,9 +97,11 @@ class ManagedValueStoreCache::ExtensionT
|
||||
@@ -98,9 +98,11 @@ class ManagedValueStoreCache::ExtensionT
|
||||
|
||||
// Loads the schemas of the |extensions| and passes a ComponentMap to
|
||||
// Register().
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
raw_ptr<Profile> profile_;
|
||||
policy::PolicyDomain policy_domain_;
|
||||
@@ -178,6 +180,22 @@ bool ManagedValueStoreCache::ExtensionTr
|
||||
@@ -179,6 +181,22 @@ bool ManagedValueStoreCache::ExtensionTr
|
||||
return extension->manifest()->FindPath(manifest_keys::kStorageManagedSchema);
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
// static
|
||||
void ManagedValueStoreCache::ExtensionTracker::LoadSchemasOnFileTaskRunner(
|
||||
ExtensionSet extensions,
|
||||
@@ -202,14 +220,21 @@ void ManagedValueStoreCache::ExtensionTr
|
||||
@@ -203,14 +221,21 @@ void ManagedValueStoreCache::ExtensionTr
|
||||
|
||||
content::GetUIThreadTaskRunner({})->PostTask(
|
||||
FROM_HERE, base::BindOnce(&ExtensionTracker::Register, self,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1407,6 +1407,11 @@ inline constexpr char kExtensionCommands
|
||||
@@ -1418,6 +1418,11 @@ inline constexpr char kExtensionCommands
|
||||
inline constexpr char kPluginsAlwaysOpenPdfExternally[] =
|
||||
"plugins.always_open_pdf_externally";
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
registry->RegisterIntegerPref(prefs::kPdfInfoBarTimesShown, 0);
|
||||
--- a/chrome/browser/ui/startup/infobar_utils.cc
|
||||
+++ b/chrome/browser/ui/startup/infobar_utils.cc
|
||||
@@ -211,6 +211,11 @@ void AddInfoBarsIfNecessary(BrowserWindo
|
||||
@@ -199,6 +199,11 @@ void AddInfoBarsIfNecessary(BrowserWindo
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
raw_ptr<Profile> profile_;
|
||||
--- a/chrome/browser/ui/views/infobars/confirm_infobar.cc
|
||||
+++ b/chrome/browser/ui/views/infobars/confirm_infobar.cc
|
||||
@@ -137,7 +137,9 @@ void ConfirmInfoBar::Layout(PassKey) {
|
||||
@@ -222,7 +222,9 @@ void ConfirmInfoBar::Layout(PassKey) {
|
||||
}
|
||||
|
||||
if constexpr (!views::PlatformStyle::kIsOkButtonLeading) {
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "base/containers/to_vector.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
@@ -265,6 +266,10 @@ network::mojom::SSLConfigPtr SSLConfigSe
|
||||
@@ -267,6 +268,10 @@ network::mojom::SSLConfigPtr SSLConfigSe
|
||||
|
||||
config->ech_enabled = ech_enabled_.GetValue();
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
])
|
||||
|
||||
# If the command finished with a non-zero return code, then report the
|
||||
@@ -378,7 +378,7 @@ def Main(argv):
|
||||
@@ -384,7 +384,7 @@ def Main(argv):
|
||||
# http://lists.apple.com/archives/carbon-dev/2006/Jun/msg00139.html
|
||||
# BUILD will always be an increasing value, so BUILD_PATH gives us
|
||||
# something unique that meetings what LS wants.
|
||||
@@ -162,23 +162,24 @@
|
||||
background-color: var(--background-color);
|
||||
--- a/chrome/app/chrome_main_delegate.cc
|
||||
+++ b/chrome/app/chrome_main_delegate.cc
|
||||
@@ -367,15 +367,15 @@ bool HandleCreditsSwitch(const base::Com
|
||||
@@ -362,16 +362,16 @@ bool HandleCreditsSwitch(const base::Com
|
||||
bool HandleVersionSwitches(const base::CommandLine& command_line) {
|
||||
#if !BUILDFLAG(IS_MAC)
|
||||
if (command_line.HasSwitch(switches::kProductVersion)) {
|
||||
- printf("%s\n", version_info::GetVersionNumber().data());
|
||||
+ printf("%s\n", version_info::GetHeliumVersionNumber().data());
|
||||
- UNSAFE_TODO(printf("%s\n", version_info::GetVersionNumber().data()));
|
||||
+ UNSAFE_TODO(printf("%s\n", version_info::GetHeliumVersionNumber().data()));
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (command_line.HasSwitch(switches::kVersion)) {
|
||||
- printf("%s %s %s\n", version_info::GetProductName().data(),
|
||||
- version_info::GetVersionNumber().data(),
|
||||
- chrome::GetChannelName(chrome::WithExtendedStable(true)).c_str());
|
||||
+ printf("%s %s (Chromium %s)\n", version_info::GetProductName().data(),
|
||||
+ version_info::GetHeliumVersionNumber().data(),
|
||||
+ version_info::GetVersionNumber().data());
|
||||
UNSAFE_TODO(printf(
|
||||
- "%s %s %s\n", version_info::GetProductName().data(),
|
||||
- version_info::GetVersionNumber().data(),
|
||||
- chrome::GetChannelName(chrome::WithExtendedStable(true)).c_str()));
|
||||
+ "%s %s (Chromium %s)\n", version_info::GetProductName().data(),
|
||||
+ version_info::GetHeliumVersionNumber().data(),
|
||||
+ version_info::GetVersionNumber().data()));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -29,6 +29,7 @@ namespace helium {
|
||||
constexpr const char kDisableEchCommandLine[] = "disable-ech";
|
||||
constexpr const char kCanvasNoiseCommandLine[] = "fingerprinting-canvas-noise";
|
||||
constexpr const char kAudioContextJitterCommandLine[] = "fingerprinting-audio-context-jitter";
|
||||
+ constexpr const char kMiddleClickAutoscrollCommandLine[] = "middle-click-autoscroll";
|
||||
@@ -32,6 +32,8 @@ namespace helium {
|
||||
constexpr const char kHeliumNoiseCanvasCommandLine[] = "helium-noise-canvas";
|
||||
constexpr const char kHeliumNoiseAudioCommandLine[] = "helium-noise-audio";
|
||||
|
||||
+ constexpr const char kMiddleClickAutoscrollCommandLine[] = "middle-click-autoscroll";
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -24,4 +24,8 @@
|
||||
"Audio Context fingerprint deception",
|
||||
"Adds small random jitter (±0.01%) to audio data to prevent fingerprinting. Helium flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(blink::features::kAudioContextJitter)},
|
||||
@@ -28,4 +28,8 @@
|
||||
"[Helium Noise] Jitter audio context data",
|
||||
"Adds insignificant jitter to audio data to deceive AudioContext-based fingerprinting. Helium flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseAudio)},
|
||||
+ {helium::kMiddleClickAutoscrollCommandLine,
|
||||
+ "Middle Click Autoscroll",
|
||||
+ "Enables autoscroll on middle click. Helium flag, Chromium feature.",
|
||||
@@ -21,19 +22,20 @@
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
--- a/third_party/blink/public/common/features.h
|
||||
+++ b/third_party/blink/public/common/features.h
|
||||
@@ -23,6 +23,7 @@ namespace blink {
|
||||
namespace features {
|
||||
@@ -45,6 +45,8 @@ BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseCanvas);
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseAudio);
|
||||
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kAudioContextJitter);
|
||||
+BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumMiddleClickAutoscroll);
|
||||
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kDisableLinkDrag);
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kReducedSystemInfo);
|
||||
+
|
||||
// Controls whether to include information about the page's open popup in
|
||||
// AIPageContent.
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kAIPageContentIncludePopupWindows);
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -24,6 +24,15 @@ BASE_FEATURE(kAudioContextJitter,
|
||||
"AudioContextJitter",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
@@ -19,6 +19,15 @@
|
||||
|
||||
namespace blink::features {
|
||||
|
||||
+BASE_FEATURE(kHeliumMiddleClickAutoscroll,
|
||||
+ "HeliumMiddleClickAutoscroll",
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
+ "//components/helium_services",
|
||||
"//components/infobars/core",
|
||||
"//components/lens:features",
|
||||
"//components/lens:mime_type",
|
||||
"//components/lens:lens_url_utils",
|
||||
--- a/components/search_engines/template_url_data_util.cc
|
||||
+++ b/components/search_engines/template_url_data_util.cc
|
||||
@@ -15,6 +15,7 @@
|
||||
@@ -565,7 +565,7 @@
|
||||
+
|
||||
--- a/components/omnibox/browser/autocomplete_input.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_input.cc
|
||||
@@ -741,9 +741,9 @@ bool AutocompleteInput::HasHTTPSScheme(c
|
||||
@@ -740,9 +740,9 @@ bool AutocompleteInput::HasHTTPSScheme(c
|
||||
// static
|
||||
AutocompleteInput::FeaturedKeywordMode
|
||||
AutocompleteInput::GetFeaturedKeywordMode(std::u16string_view text) {
|
||||
@@ -577,7 +577,7 @@
|
||||
return FeaturedKeywordMode::kPrefix;
|
||||
return FeaturedKeywordMode::kFalse;
|
||||
}
|
||||
@@ -911,6 +911,7 @@ std::u16string AutocompleteInput::Autoco
|
||||
@@ -885,6 +885,7 @@ std::u16string AutocompleteInput::Autoco
|
||||
const std::u16string& input,
|
||||
bool trim_leading_whitespace,
|
||||
std::u16string* remaining_input) {
|
||||
@@ -585,7 +585,7 @@
|
||||
// Find end of first token. The AutocompleteController has trimmed leading
|
||||
// whitespace, so we need not skip over that.
|
||||
const size_t first_white(input.find_first_of(base::kWhitespaceUTF16));
|
||||
@@ -919,6 +920,39 @@ std::u16string AutocompleteInput::Autoco
|
||||
@@ -893,6 +894,39 @@ std::u16string AutocompleteInput::Autoco
|
||||
return input; // Only one token provided.
|
||||
}
|
||||
|
||||
@@ -678,7 +678,7 @@
|
||||
|
||||
--- a/components/search_engines/template_url.cc
|
||||
+++ b/components/search_engines/template_url.cc
|
||||
@@ -1700,6 +1700,8 @@ bool TemplateURL::IsBetterThanConflictin
|
||||
@@ -1743,6 +1743,8 @@ bool TemplateURL::IsBetterThanConflictin
|
||||
: base::Time(),
|
||||
// Prefer engines that CANNOT be auto-replaced.
|
||||
!engine->safe_for_autoreplace(),
|
||||
@@ -724,7 +724,7 @@
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -2134,6 +2134,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2160,6 +2160,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
|
||||
{"heliumExtProxyToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION},
|
||||
@@ -736,7 +736,7 @@
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1990,6 +1990,12 @@
|
||||
@@ -2005,6 +2005,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading and proxying extensions">
|
||||
When enabled, Helium will proxy extension downloads and updates to protect your privacy. When disabled, downloading and updating extensions will not work.
|
||||
</message>
|
||||
@@ -765,7 +765,7 @@
|
||||
</template>
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -213,6 +213,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -217,6 +217,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterIntegerPref(prefs::kHeliumSchemaVersion, 0);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
@@ -775,7 +775,7 @@
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -360,6 +360,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -364,6 +364,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumExtProxyEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -798,7 +798,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/third_party/metrics_proto/omnibox_event.proto
|
||||
+++ b/third_party/metrics_proto/omnibox_event.proto
|
||||
@@ -774,6 +774,8 @@ message OmniboxEventProto {
|
||||
@@ -786,6 +786,8 @@ message OmniboxEventProto {
|
||||
// or tabbing to it.
|
||||
TOOLBELT = 9; // Select and activate a search shortcuts action
|
||||
// from the omnibox toolbelt.
|
||||
@@ -809,17 +809,17 @@
|
||||
optional KeywordModeEntryMethod keyword_mode_entry_method = 20;
|
||||
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.h
|
||||
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.h
|
||||
@@ -300,6 +300,9 @@ class OmniboxEditModel {
|
||||
@@ -304,6 +304,9 @@ class OmniboxEditModel {
|
||||
return !is_keyword_hint_ && !keyword_.empty();
|
||||
}
|
||||
|
||||
+ // Accepts the bang at the end of the user query.
|
||||
+ void MaybeAcceptTrailingBang();
|
||||
+
|
||||
// Accepts the current keyword hint as a keyword. It always returns true for
|
||||
// caller convenience. |entry_method| indicates how the user entered
|
||||
// keyword mode.
|
||||
@@ -655,6 +658,10 @@ class OmniboxEditModel {
|
||||
// Accepts the current keyword hint as a keyword. `entry_method` indicates how
|
||||
// the user entered keyword mode.
|
||||
void AcceptKeyword(
|
||||
@@ -664,6 +667,10 @@ class OmniboxEditModel {
|
||||
// triggering is enabled, false otherwise.
|
||||
bool AllowKeywordSpaceTriggering() const;
|
||||
|
||||
@@ -827,12 +827,12 @@
|
||||
+ // that can be accepted by pressing the Return key.
|
||||
+ bool HasTrailingBangKeyword() const;
|
||||
+
|
||||
// Accepts current keyword if the user just typed a space at the end of
|
||||
// |new_text|. This handles both of the following cases:
|
||||
// (assume "foo" is a keyword, | is the input caret, [] is selected text)
|
||||
// Whether the user just typed a space at the end of a keyword, with or
|
||||
// without inline autocompletion:
|
||||
// - youtube| -> youtube | (a space was appended to a keyword)
|
||||
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
||||
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
||||
@@ -859,6 +859,24 @@ void OmniboxEditModel::OpenSelectionForT
|
||||
@@ -885,6 +885,24 @@ void OmniboxEditModel::OpenSelectionForT
|
||||
OpenSelection(popup_selection_, timestamp, disposition, via_keyboard);
|
||||
}
|
||||
|
||||
@@ -854,10 +854,10 @@
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
bool OmniboxEditModel::AcceptKeyword(
|
||||
void OmniboxEditModel::AcceptKeyword(
|
||||
OmniboxEventProto::KeywordModeEntryMethod entry_method) {
|
||||
TRACE_EVENT0("omnibox", "OmniboxEditModel::AcceptKeyword");
|
||||
@@ -867,6 +885,17 @@ bool OmniboxEditModel::AcceptKeyword(
|
||||
@@ -893,6 +911,17 @@ void OmniboxEditModel::AcceptKeyword(
|
||||
|
||||
controller_->StopAutocomplete(/*clear_result=*/false);
|
||||
|
||||
@@ -875,7 +875,7 @@
|
||||
SetIsKeywordHint(false);
|
||||
keyword_mode_entry_method_ = entry_method;
|
||||
if (original_user_text_with_keyword_.empty()) {
|
||||
@@ -909,9 +938,6 @@ bool OmniboxEditModel::AcceptKeyword(
|
||||
@@ -935,9 +964,6 @@ void OmniboxEditModel::AcceptKeyword(
|
||||
}
|
||||
|
||||
base::RecordAction(base::UserMetricsAction("AcceptedKeywordHint"));
|
||||
@@ -883,9 +883,9 @@
|
||||
- controller_->client()->GetTemplateURLService()->GetTemplateURLForKeyword(
|
||||
- keyword_);
|
||||
EmitEnteredKeywordModeHistogram(entry_method, turl, !user_text_.empty());
|
||||
return true;
|
||||
}
|
||||
@@ -1561,7 +1587,13 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
|
||||
@@ -1601,7 +1627,13 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
|
||||
std::u16string OmniboxEditModel::MaybeStripKeyword(
|
||||
const std::u16string& text) const {
|
||||
@@ -900,7 +900,7 @@
|
||||
? AutocompleteInput::SplitReplacementStringFromInput(text, false)
|
||||
: text;
|
||||
}
|
||||
@@ -2735,16 +2767,33 @@ bool OmniboxEditModel::AllowKeywordSpace
|
||||
@@ -2795,6 +2827,21 @@ bool OmniboxEditModel::AllowKeywordSpace
|
||||
return GetPrefService()->GetBoolean(omnibox::kKeywordSpaceTriggeringEnabled);
|
||||
}
|
||||
|
||||
@@ -919,26 +919,40 @@
|
||||
+ return turl && turl->bang_id() > 0;
|
||||
+}
|
||||
+
|
||||
bool OmniboxEditModel::MaybeAcceptKeywordBySpace(
|
||||
bool OmniboxEditModel::ShouldAcceptKeywordAfterInsertingSpaceAtEnd(
|
||||
const std::u16string& new_text) {
|
||||
if (!AllowKeywordSpaceTriggering()) {
|
||||
// Check if the user has disabled space triggering.
|
||||
@@ -2818,16 +2865,20 @@ bool OmniboxEditModel::ShouldAcceptKeywo
|
||||
return false;
|
||||
}
|
||||
|
||||
+ std::u16string new_keyword = base::ToLowerASCII(
|
||||
+ AutocompleteInput::SplitKeywordFromInput(new_text, false, nullptr));
|
||||
- // `input` must end with space. Typing 'youtube' shouldn't enter
|
||||
- // keyword mode until the user types a final space.
|
||||
- if (!IsSpaceCharForAcceptingKeyword(new_text[new_text.length() - 1])) {
|
||||
+ // Parse the keyword from the input so bang keywords in the middle or at the
|
||||
+ // end are accepted when the trailing space is typed.
|
||||
+ std::u16string trimmed_text(
|
||||
+ base::TrimWhitespace(new_text, base::TRIM_LEADING));
|
||||
+ const std::u16string new_keyword = base::ToLowerASCII(
|
||||
+ AutocompleteInput::SplitKeywordFromInput(trimmed_text, false, nullptr));
|
||||
+
|
||||
size_t keyword_length = new_text.length() - 1;
|
||||
- return is_keyword_hint_ && (keyword_.length() == keyword_length) &&
|
||||
+ return is_keyword_hint_ && new_keyword == keyword_ &&
|
||||
IsSpaceCharForAcceptingKeyword(new_text[keyword_length]) &&
|
||||
- !new_text.compare(0, keyword_length, keyword_, 0, keyword_length) &&
|
||||
AcceptKeyword(OmniboxEventProto::SPACE_AT_END);
|
||||
}
|
||||
+ if (new_keyword != keyword_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
- // Check the rest of the input matches `keyword`. This isn't necessary,
|
||||
- // `AutocompleteController` shouldn't show keyword hints on the default match
|
||||
- // for inputs like 'yout '. But that's not a guarantee.
|
||||
- if (new_text.substr(0, new_text.length() - 1) != keyword_) {
|
||||
+ // `input` must end with space. Typing 'youtube' shouldn't enter
|
||||
+ // keyword mode until the user types a final space.
|
||||
+ if (!IsSpaceCharForAcceptingKeyword(new_text[new_text.length() - 1])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
||||
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
||||
@@ -1956,6 +1956,7 @@ bool OmniboxViewViews::HandleKeyEvent(vi
|
||||
@@ -1983,6 +1983,7 @@ bool OmniboxViewViews::HandleKeyEvent(vi
|
||||
metric_value);
|
||||
if (controller()->IsPopupOpen() && !control) {
|
||||
// Normal case of pressing <return> when the popup is open.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
+#include "chrome/browser/channel_selection.h"
|
||||
#include "chrome/browser/devtools/features.h"
|
||||
#include "chrome/browser/flag_descriptions.h"
|
||||
#include "chrome/browser/ip_protection/ip_protection_switches.h"
|
||||
#include "chrome/browser/login_detection/login_detection_util.h"
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/channel_selection.cc
|
||||
@@ -0,0 +1,28 @@
|
||||
@@ -90,7 +90,7 @@
|
||||
"Configures the frame rate the browser is throttled to when Energy Saver is enabled. Helium flag.",
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -255,6 +255,8 @@ static_library("browser") {
|
||||
@@ -262,6 +262,8 @@ static_library("browser") {
|
||||
"browsing_topics/browsing_topics_service_factory.h",
|
||||
"chained_back_navigation_tracker.cc",
|
||||
"chained_back_navigation_tracker.h",
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
</template>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -2140,6 +2140,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2166,6 +2166,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumSpellcheckToggle", IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE},
|
||||
{"heliumSpellcheckToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION},
|
||||
@@ -103,7 +103,7 @@
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -364,6 +364,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -368,6 +368,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumSpellcheckEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -114,7 +114,7 @@
|
||||
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -219,6 +219,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -223,6 +223,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
|
||||
@@ -124,7 +124,7 @@
|
||||
registry->RegisterBooleanPref(
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -2005,6 +2005,19 @@
|
||||
@@ -2020,6 +2020,19 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
|
||||
Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
|
||||
</message>
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
root.FindStringByDottedPath(current_profile + ".Name")) {
|
||||
--- a/chrome/common/importer/firefox_importer_utils.h
|
||||
+++ b/chrome/common/importer/firefox_importer_utils.h
|
||||
@@ -45,13 +45,17 @@ struct FirefoxDetail {
|
||||
@@ -41,13 +41,17 @@ struct FirefoxDetail {
|
||||
std::vector<FirefoxDetail> GetFirefoxDetails(
|
||||
const std::string& firefox_install_id);
|
||||
|
||||
@@ -260,7 +260,7 @@
|
||||
|
||||
// Detects version of Firefox and installation path for the given Firefox
|
||||
// profile.
|
||||
@@ -62,6 +66,7 @@ bool GetFirefoxVersionAndPathFromProfile
|
||||
@@ -58,6 +62,7 @@ bool GetFirefoxVersionAndPathFromProfile
|
||||
// Gets the full path of the profiles.ini file. This file records the profiles
|
||||
// that can be used by Firefox. Returns an empty path if failed.
|
||||
base::FilePath GetProfilesINI();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -1146,11 +1146,6 @@ void RenderViewContextMenu::InitMenu() {
|
||||
@@ -1148,11 +1148,6 @@ void RenderViewContextMenu::InitMenu() {
|
||||
AppendSpellingAndSearchSuggestionItems();
|
||||
}
|
||||
|
||||
@@ -12,15 +12,15 @@
|
||||
if (editable) {
|
||||
AppendOtherEditableItems();
|
||||
}
|
||||
@@ -2245,7 +2240,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2254,7 +2249,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
|
||||
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
|
||||
AppendLiveCaptionItem();
|
||||
- AppendMediaRouterItem();
|
||||
if (IsRegionSearchEnabled()) {
|
||||
AppendRegionSearchItem();
|
||||
}
|
||||
@@ -2374,8 +2368,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
|
||||
if (features::IsReadAnythingMenuShuffleExperimentEnabled()) {
|
||||
// This will be set to false in AppendRegionSearchItem() if it is called.
|
||||
@@ -2406,8 +2400,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
|
||||
void RenderViewContextMenu::AppendReadAnythingItem() {
|
||||
// Show Read Anything option if it's not already open in the side panel.
|
||||
@@ -30,7 +30,7 @@
|
||||
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
|
||||
IDS_CONTENT_CONTEXT_READING_MODE);
|
||||
}
|
||||
@@ -3657,10 +3650,12 @@ void RenderViewContextMenu::ExecuteComma
|
||||
@@ -3689,10 +3682,12 @@ void RenderViewContextMenu::ExecuteComma
|
||||
}
|
||||
|
||||
void RenderViewContextMenu::AddSpellCheckServiceItem(bool is_checked) {
|
||||
@@ -43,7 +43,7 @@
|
||||
if (is_checked) {
|
||||
menu_model_.AddCheckItemWithStringId(
|
||||
IDC_CONTENT_CONTEXT_ACCESSIBILITY_LABELS_TOGGLE,
|
||||
@@ -4038,6 +4033,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
@@ -4070,6 +4065,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
|
||||
bool draw_icon,
|
||||
bool add_separator) {
|
||||
@@ -54,7 +54,7 @@
|
||||
}
|
||||
--- a/chrome/browser/ui/browser_tab_strip_model_delegate.cc
|
||||
+++ b/chrome/browser/ui/browser_tab_strip_model_delegate.cc
|
||||
@@ -310,6 +310,7 @@ void BrowserTabStripModelDelegate::AddTo
|
||||
@@ -312,6 +312,7 @@ void BrowserTabStripModelDelegate::AddTo
|
||||
}
|
||||
|
||||
bool BrowserTabStripModelDelegate::SupportsReadLater() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/omnibox/omnibox_pedal_implementations.cc
|
||||
+++ b/chrome/browser/ui/omnibox/omnibox_pedal_implementations.cc
|
||||
@@ -1990,12 +1990,7 @@ GetPedalImplementations(bool incognito,
|
||||
@@ -2029,12 +2029,7 @@ GetPedalImplementations(bool incognito,
|
||||
if (!incognito && !guest) {
|
||||
add(new OmniboxPedalClearBrowsingData(/*incognito=*/false));
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
add(new OmniboxPedalPlayChromeDinoGame());
|
||||
add(new OmniboxPedalManageSiteSettings());
|
||||
add(new OmniboxPedalManageChromeSettings());
|
||||
@@ -2007,37 +2002,15 @@ GetPedalImplementations(bool incognito,
|
||||
@@ -2046,37 +2041,15 @@ GetPedalImplementations(bool incognito,
|
||||
if (!guest) {
|
||||
add(new OmniboxPedalClearBrowsingData(incognito));
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
std::move(callback), cus->GetRegisteredVersion(crx_id),
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -6957,6 +6957,9 @@ Keep your key file in a safe place. You
|
||||
@@ -7021,6 +7021,9 @@ Keep your key file in a safe place. You
|
||||
<message name="IDS_COMPONENTS_SVC_STATUS_UPDATE_ERROR" desc="Service Status">
|
||||
Update error
|
||||
</message>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/services/network/public/cpp/features.cc
|
||||
+++ b/services/network/public/cpp/features.cc
|
||||
@@ -439,7 +439,7 @@ BASE_FEATURE(kUpdateRequestForCorsRedire
|
||||
@@ -437,7 +437,7 @@ BASE_FEATURE(kUpdateRequestForCorsRedire
|
||||
|
||||
// https://github.com/patcg-individual-drafts/topics
|
||||
// Kill switch for the Topics API.
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
// Enable the shared storage API. Note that enabling this feature does not
|
||||
// automatically expose this API to the web, it only allows the element to be
|
||||
@@ -518,7 +518,7 @@ BASE_FEATURE(kSharedStorageTransactional
|
||||
@@ -516,7 +516,7 @@ BASE_FEATURE(kSharedStorageTransactional
|
||||
|
||||
// Kill switch for the Interest Group API, i.e. if disabled, the
|
||||
// API exposure will be disabled regardless of the OT config.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/search/ntp_features.cc
|
||||
+++ b/components/search/ntp_features.cc
|
||||
@@ -240,7 +240,7 @@ BASE_FEATURE(kNtpNextFeatures, base::FEA
|
||||
@@ -245,7 +245,7 @@ BASE_FEATURE(kNtpNextFeatures, base::FEA
|
||||
BASE_FEATURE(kNtpOneGoogleBarAsyncBarParts, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
// If enabled, a footer will show on the NTP.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -665,7 +665,7 @@ bool HasTabSearchToolbarButton() {
|
||||
@@ -739,7 +739,7 @@ bool HasTabSearchToolbarButton() {
|
||||
return is_tab_search_moving;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -306,13 +306,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
|
||||
@@ -350,13 +350,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
|
||||
|
||||
// Enables preview images in tab-hover cards.
|
||||
// https://crbug.com/928954
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
if (tab_search_action.has_value()) {
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -619,7 +619,7 @@ BASE_FEATURE(kByDateHistoryInSidePanel,
|
||||
@@ -693,7 +693,7 @@ BASE_FEATURE(kByDateHistoryInSidePanel,
|
||||
|
||||
BASE_FEATURE(kTabStripBrowserApi, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
// This serves as a "kill-switch" for migrating the Tab Search feature to be a
|
||||
// toolbar button for non-ChromeOS users in the US.
|
||||
@@ -650,6 +650,8 @@ static std::string GetCountryCode() {
|
||||
@@ -724,6 +724,8 @@ static std::string GetCountryCode() {
|
||||
}
|
||||
|
||||
bool HasTabSearchToolbarButton() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -13667,11 +13667,328 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
@@ -13778,11 +13778,381 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
// AboutFlagsHistogramTest unit test to verify this process).
|
||||
};
|
||||
|
||||
@@ -47,8 +47,12 @@
|
||||
+ "ntp-realbox-next",
|
||||
+ "ntp-next-features",
|
||||
+ "ntp-customize-chrome-auto-open",
|
||||
+ "ntp-feature-optimization-module-removal",
|
||||
+ "ntp-feature-optimization-shortcuts-removal",
|
||||
+ "ntp-feature-optimization-dismiss-modules-removal",
|
||||
+ "enable-ntp-enterprise-shortcuts",
|
||||
+
|
||||
+ // Google Account & Sync
|
||||
+ // Google Account & Sync & Synced profiles
|
||||
+ "use-sync-sandbox",
|
||||
+ "offer-migration-to-dice-users",
|
||||
+ "web-signin-leads-to-implicitly-signed-in-state",
|
||||
@@ -64,6 +68,19 @@
|
||||
+ "mdm-errors-for-dasher-accounts-handling",
|
||||
+ "profile-creation-decline-signin-cta-experiment",
|
||||
+ "show-profile-picker-to-all-users-experiment",
|
||||
+ "migrate-syncing-user-to-signed-in",
|
||||
+ "undo-migration-of-syncing-user-to-signed-in",
|
||||
+ "profile-signals-reporting-enabled",
|
||||
+ "profile-creation-friction-reduction-experiment-prefill-name-requirement",
|
||||
+ "profile-creation-friction-reduction-experiment-remove-signin-step",
|
||||
+ "profile-creation-friction-reduction-experiment-skip-customize-profile",
|
||||
+ "open-all-profiles-from-profile-picker-experiment",
|
||||
+ "profile-picker-text-variations",
|
||||
+ "enable-oauth-multilogin-cookies-binding",
|
||||
+ "enable-oauth-multilogin-cookies-binding-server-experiment",
|
||||
+ "enable-chrome-refresh-token-binding",
|
||||
+ "enable-bound-session-credentials",
|
||||
+ "enable-bound-session-credentials-software-keys-for-manual-testing",
|
||||
+
|
||||
+ // Gemini Nano / Other Google models
|
||||
+ "prompt-api-for-gemini-nano",
|
||||
@@ -73,6 +90,10 @@
|
||||
+ "rewriter-api-for-gemini-nano",
|
||||
+ "proofreader-api-for-gemini-nano",
|
||||
+ "omnibox-on-device-tail-suggestions",
|
||||
+ "language-detection-api",
|
||||
+ "text-safety-classifier",
|
||||
+ "page-content-annotations",
|
||||
+ "page-content-annotations-remote-page-metadata",
|
||||
+
|
||||
+ // AI Mode
|
||||
+ "ai-mode-omnibox-entry-point",
|
||||
@@ -88,6 +109,7 @@
|
||||
+ "contextual-tasks",
|
||||
+ "web-app-migrate-preinstalled-chat",
|
||||
+ "webui-omnibox-aim-popup",
|
||||
+ "aim-entry-point-direct-navigation",
|
||||
+
|
||||
+ // Contextual AI stuff (AI Mode entrypoints?)
|
||||
+ "contextual-search-box-uses-contextual-search-provider",
|
||||
@@ -97,6 +119,8 @@
|
||||
+ "contextual-cueing",
|
||||
+ "contextual-suggestion-ui-improvements",
|
||||
+ "contextual-tasks-context",
|
||||
+ "contextual-tasks-suggestions-enabled",
|
||||
+ "contextual-tasks-context-library",
|
||||
+
|
||||
+ // Shopping stuff
|
||||
+ "product-specifications",
|
||||
@@ -192,12 +216,17 @@
|
||||
+ "glic-pre-warming",
|
||||
+ "glic-fre-pre-warming",
|
||||
+ "browsing-history-actor-integration-M1",
|
||||
+ "browsing-history-actor-integration-M2",
|
||||
+
|
||||
+ // Live captions
|
||||
+ "enable-headless-live-caption",
|
||||
+
|
||||
+ // Google Wallet
|
||||
+ "wallet-service-use-sandbox",
|
||||
+ "enable-secure-payment-confirmation-availability-api",
|
||||
+ "enable-secure-payment-confirmation-fallback-ux",
|
||||
+ "enable-web-payments-experimental-features",
|
||||
+ "enable-debug-for-store-billing",
|
||||
+
|
||||
+ // Safety Hub
|
||||
+ "safety-hub",
|
||||
@@ -242,6 +271,29 @@
|
||||
+ "read-anything-docs-load-more-button",
|
||||
+ "read-anything-read-aloud-ts-text-segmentation",
|
||||
+ "read-anything-with-readability-enabled",
|
||||
+ "read-anything-omnibox-chip",
|
||||
+ "read-anything-immersive-reading-mode",
|
||||
+
|
||||
+ // Misc Google experiments
|
||||
+ "happiness-tracking-surveys-for-desktop-demo",
|
||||
+ "permissions-ai-v3",
|
||||
+ "permissions-ai-v4",
|
||||
+ "permissions-ai-p92",
|
||||
+ "private-metrics-enable-puma",
|
||||
+ "private-metrics-enable-puma-rc",
|
||||
+ "user-value-default-browser-strings",
|
||||
+ "invalidate-search-engine-choice-on-device-restore-detection",
|
||||
+ "variations-seed-corpus",
|
||||
+ "protected-audience-debug-token",
|
||||
+ "rcaps-dynamic-profile-country",
|
||||
+ "related-website-sets-permission-grants",
|
||||
+ "data-sharing",
|
||||
+ "data-sharing-join-only",
|
||||
+ "data-sharing-non-production-environment",
|
||||
+ "shared-data-types-kill-switch",
|
||||
+ "data-sharing-debug-logs",
|
||||
+ "chrome-web-store-navigation-throttle",
|
||||
+ "supervised-user-block-interstitial-v3",
|
||||
+
|
||||
+ // Autofill
|
||||
+ "reintroduce-hybrid-passkey-entry-point",
|
||||
@@ -307,6 +359,7 @@
|
||||
+ "autofill-prefer-buy-now-pay-later-blocklists",
|
||||
+ "mark-all-credentials-as-leaked",
|
||||
+ "apply-clientside-model-predictions-for-otps",
|
||||
+ "enable-your-saved-info-settings-page",
|
||||
+
|
||||
+ // Add new entries above this line and categorize them accordingly.
|
||||
+});
|
||||
@@ -330,7 +383,7 @@
|
||||
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
|
||||
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
|
||||
~FlagsStateSingleton() override = default;
|
||||
@@ -13690,7 +14007,7 @@ class FlagsStateSingleton : public flags
|
||||
@@ -13801,7 +14171,7 @@ class FlagsStateSingleton : public flags
|
||||
|
||||
void RestoreDefaultState() {
|
||||
flags_state_ =
|
||||
@@ -339,7 +392,7 @@
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -14014,7 +14331,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
@@ -14128,7 +14498,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
!entries_for_testing->empty()) {
|
||||
return *entries_for_testing;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/extensions/browser/extension_registrar.cc
|
||||
+++ b/extensions/browser/extension_registrar.cc
|
||||
@@ -532,9 +532,12 @@ void ExtensionRegistrar::AddComponentExt
|
||||
@@ -535,9 +535,12 @@ void ExtensionRegistrar::AddComponentExt
|
||||
if (old_version.IsValid()) {
|
||||
UnregisterServiceWorkerWithRootScope(extension);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -390,11 +390,11 @@ namespace about_flags {
|
||||
@@ -394,11 +394,11 @@ namespace about_flags {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#endif // USE_AURA
|
||||
|
||||
#if defined(USE_AURA)
|
||||
@@ -5222,11 +5222,13 @@ const FeatureEntry::FeatureVariation kPr
|
||||
@@ -5266,11 +5266,13 @@ const FeatureEntry::Choice kOmniboxAutof
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#define IDC_VISIT_DESKTOP_OF_LRU_USER_5 34083
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1493,6 +1493,11 @@ inline constexpr char kPageColorsBlockLi
|
||||
@@ -1504,6 +1504,11 @@ inline constexpr char kPageColorsBlockLi
|
||||
inline constexpr char kPrefersDefaultScrollbarStyles[] =
|
||||
"settings.a11y.prefers_default_scrollbar_styles";
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
// asking the user to set up automatic updates when Keystone promotion is
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -149,6 +149,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -153,6 +153,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterListPref(prefs::kWebRtcLocalIpsAllowedUrls);
|
||||
registry->RegisterBooleanPref(prefs::kWebRtcTextLogCollectionAllowed, false);
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
registry->RegisterBooleanPref(policy::policy_prefs::kHideWebStoreIcon, false);
|
||||
--- a/chrome/browser/ui/browser_command_controller.cc
|
||||
+++ b/chrome/browser/ui/browser_command_controller.cc
|
||||
@@ -389,7 +389,9 @@ bool BrowserCommandController::IsReserve
|
||||
@@ -406,7 +406,9 @@ bool BrowserCommandController::IsReserve
|
||||
command_id == IDC_NEW_INCOGNITO_WINDOW || command_id == IDC_NEW_TAB ||
|
||||
command_id == IDC_NEW_WINDOW || command_id == IDC_RESTORE_TAB ||
|
||||
command_id == IDC_SELECT_NEXT_TAB ||
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
|
||||
void BrowserCommandController::TabStateChanged() {
|
||||
@@ -1179,6 +1181,14 @@ bool BrowserCommandController::ExecuteCo
|
||||
@@ -1205,6 +1207,14 @@ bool BrowserCommandController::ExecuteCo
|
||||
case IDC_DUPLICATE_TARGET_TAB:
|
||||
DuplicateKeyboardFocusedTab(browser_);
|
||||
break;
|
||||
@@ -66,7 +66,7 @@
|
||||
// Hosted App commands
|
||||
case IDC_COPY_URL:
|
||||
CopyURL(browser_, browser_->tab_strip_model()->GetActiveWebContents());
|
||||
@@ -1929,6 +1939,12 @@ void BrowserCommandController::UpdateCom
|
||||
@@ -1984,6 +1994,12 @@ void BrowserCommandController::UpdateCom
|
||||
|
||||
bool dev_tools_enabled = DevToolsWindow::AllowDevToolsFor(
|
||||
profile(), browser_->tab_strip_model()->GetActiveWebContents());
|
||||
@@ -142,7 +142,7 @@
|
||||
"G", IDC_FIND_NEXT, VIRTKEY, CONTROL
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -587,6 +587,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -591,6 +591,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
|
||||
(*s_allowlist)[::prefs::kCaretBrowsingEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -223,7 +223,7 @@
|
||||
.action(@selector(paste:)),
|
||||
--- a/chrome/browser/ui/cocoa/share_menu_controller.mm
|
||||
+++ b/chrome/browser/ui/cocoa/share_menu_controller.mm
|
||||
@@ -99,12 +99,6 @@ bool CanShare() {
|
||||
@@ -98,12 +98,6 @@ bool CanShare() {
|
||||
// to fetch sharing services that can handle the NSURL type.
|
||||
NSArray* services = [NSSharingService
|
||||
sharingServicesForItems:@[ [NSURL URLWithString:@"https://google.com"] ]];
|
||||
@@ -236,7 +236,7 @@
|
||||
for (NSSharingService* service in services) {
|
||||
// Email share service causes mysterious crashes, so share directly.
|
||||
// See https://crbug.com/356643975
|
||||
@@ -298,13 +292,4 @@ bool CanShare() {
|
||||
@@ -297,13 +291,4 @@ bool CanShare() {
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,247 +0,0 @@
|
||||
Audio Context fingerprinting mitigation, inspired by this patch in Cromite:
|
||||
https://github.com/uazo/cromite/blob/b2824377/build/patches/AudioBuffer-AnalyserNode-fp-mitigations.patch
|
||||
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -28,6 +28,7 @@ namespace helium {
|
||||
|
||||
constexpr const char kDisableEchCommandLine[] = "disable-ech";
|
||||
constexpr const char kCanvasNoiseCommandLine[] = "fingerprinting-canvas-noise";
|
||||
+ constexpr const char kAudioContextJitterCommandLine[] = "fingerprinting-audio-context-jitter";
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -20,4 +20,8 @@
|
||||
"Canvas fingerprint deception",
|
||||
"Enable noising pixels when the contents of a canvas are read back by a script. Bound to a browser session. Helium flag, Chromium feature.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(fingerprinting_protection_interventions::features::kCanvasNoise)},
|
||||
+ {helium::kAudioContextJitterCommandLine,
|
||||
+ "Audio Context fingerprint deception",
|
||||
+ "Adds small random jitter (±0.01%) to audio data to prevent fingerprinting. Helium flag.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(blink::features::kAudioContextJitter)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -20,6 +20,10 @@
|
||||
|
||||
namespace blink::features {
|
||||
|
||||
+BASE_FEATURE(kAudioContextJitter,
|
||||
+ "AudioContextJitter",
|
||||
+ base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+
|
||||
BASE_FEATURE(kDisableLinkDrag, "DisableLinkDrag", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kReducedSystemInfo, "ReducedSystemInfo", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kRemoveClientHints, "RemoveClientHints", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
--- a/third_party/blink/public/common/features.h
|
||||
+++ b/third_party/blink/public/common/features.h
|
||||
@@ -22,6 +22,8 @@
|
||||
namespace blink {
|
||||
namespace features {
|
||||
|
||||
+BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kAudioContextJitter);
|
||||
+
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kDisableLinkDrag);
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kReducedSystemInfo);
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kRemoveClientHints);
|
||||
--- a/third_party/blink/renderer/modules/webaudio/audio_buffer.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/audio_buffer.cc
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/containers/span.h"
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
#include "third_party/blink/renderer/bindings/modules/v8/v8_audio_buffer_options.h"
|
||||
#include "third_party/blink/renderer/modules/webaudio/base_audio_context.h"
|
||||
#include "third_party/blink/renderer/platform/audio/audio_bus.h"
|
||||
@@ -200,6 +201,20 @@ AudioBuffer::AudioBuffer(AudioBus* bus)
|
||||
}
|
||||
}
|
||||
|
||||
+void AudioBuffer::JitterAudioData() {
|
||||
+ if (!base::FeatureList::IsEnabled(features::kAudioContextJitter)) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ for (unsigned i = 0; i < channels_.size(); ++i) {
|
||||
+ if (NotShared<DOMFloat32Array> channel = getChannelData(i)) {
|
||||
+ for (float& sample : channel->AsSpan()) {
|
||||
+ sample = BaseAudioContext::JitterAudioData(sample);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
NotShared<DOMFloat32Array> AudioBuffer::getChannelData(
|
||||
unsigned channel_index,
|
||||
ExceptionState& exception_state) {
|
||||
--- a/third_party/blink/renderer/modules/webaudio/audio_buffer.h
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/audio_buffer.h
|
||||
@@ -115,6 +115,8 @@ class MODULES_EXPORT AudioBuffer final :
|
||||
|
||||
std::unique_ptr<SharedAudioBuffer> CreateSharedAudioBuffer();
|
||||
|
||||
+ void JitterAudioData();
|
||||
+
|
||||
private:
|
||||
static DOMFloat32Array* CreateFloat32ArrayOrNull(
|
||||
uint32_t length,
|
||||
--- a/third_party/blink/renderer/modules/webaudio/audio_context.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/audio_context.cc
|
||||
@@ -863,7 +863,12 @@ double AudioContext::baseLatency() const
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(main_thread_sequence_checker_);
|
||||
DCHECK(destination());
|
||||
|
||||
- return base_latency_;
|
||||
+ if (!base::FeatureList::IsEnabled(features::kAudioContextJitter)) {
|
||||
+ return base_latency_;
|
||||
+ }
|
||||
+
|
||||
+ // Round to two decimal places
|
||||
+ return std::round(base_latency_ * 100.0) / 100.0;
|
||||
}
|
||||
|
||||
double AudioContext::outputLatency() const {
|
||||
--- a/third_party/blink/renderer/modules/webaudio/base_audio_context.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/base_audio_context.cc
|
||||
@@ -776,6 +776,13 @@ LocalDOMWindow* BaseAudioContext::GetWin
|
||||
return To<LocalDOMWindow>(GetExecutionContext());
|
||||
}
|
||||
|
||||
+float BaseAudioContext::JitterAudioData(float data) {
|
||||
+ float variation = base::RandFloat() * 0.0001f; // 1/10000
|
||||
+ float sign = base::RandBool() ? 1.0f : -1.0f;
|
||||
+
|
||||
+ return data * (1.0f + variation * sign);
|
||||
+}
|
||||
+
|
||||
void BaseAudioContext::NotifySourceNodeStartedProcessing(AudioNode* node) {
|
||||
DCHECK(IsMainThread());
|
||||
DeferredTaskHandler::GraphAutoLocker locker(this);
|
||||
--- a/third_party/blink/renderer/modules/webaudio/base_audio_context.h
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/base_audio_context.h
|
||||
@@ -327,6 +327,8 @@ class MODULES_EXPORT BaseAudioContext
|
||||
// if the execution context does not exist.
|
||||
bool CheckExecutionContextAndThrowIfNecessary(ExceptionState&);
|
||||
|
||||
+ static float JitterAudioData(float data);
|
||||
+
|
||||
protected:
|
||||
enum class ContextType { kRealtimeContext, kOfflineContext };
|
||||
|
||||
--- a/third_party/blink/renderer/modules/webaudio/offline_audio_context.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/offline_audio_context.cc
|
||||
@@ -396,6 +396,8 @@ void OfflineAudioContext::FireCompletion
|
||||
return;
|
||||
}
|
||||
|
||||
+ rendered_buffer->JitterAudioData();
|
||||
+
|
||||
// Call the offline rendering completion event listener and resolve the
|
||||
// promise too.
|
||||
DispatchEvent(*OfflineAudioCompletionEvent::Create(rendered_buffer));
|
||||
--- a/third_party/blink/renderer/modules/webaudio/realtime_analyser.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/realtime_analyser.cc
|
||||
@@ -32,6 +32,8 @@
|
||||
#include <complex>
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
+#include "third_party/blink/renderer/modules/webaudio/base_audio_context.h"
|
||||
#include "third_party/blink/renderer/platform/audio/audio_bus.h"
|
||||
#include "third_party/blink/renderer/platform/audio/audio_utilities.h"
|
||||
#include "third_party/blink/renderer/platform/audio/vector_math.h"
|
||||
@@ -114,10 +116,15 @@ void RealtimeAnalyser::GetFloatFrequency
|
||||
const float* source = magnitude_buffer_.Data();
|
||||
float* destination = destination_array->Data();
|
||||
|
||||
+ const bool kJitterEnabled = base::FeatureList::IsEnabled(
|
||||
+ features::kAudioContextJitter);
|
||||
+
|
||||
for (unsigned i = 0; i < len; ++i) {
|
||||
const float linear_value = UNSAFE_TODO(source[i]);
|
||||
const double db_mag = audio_utilities::LinearToDecibels(linear_value);
|
||||
- UNSAFE_TODO(destination[i]) = static_cast<float>(db_mag);
|
||||
+ auto db_value = static_cast<float>(db_mag);
|
||||
+ UNSAFE_TODO(destination[i]) = kJitterEnabled ?
|
||||
+ BaseAudioContext::JitterAudioData(db_value) : db_value;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -149,15 +156,22 @@ void RealtimeAnalyser::GetByteFrequencyD
|
||||
const float* source = magnitude_buffer_.Data();
|
||||
unsigned char* destination = destination_array->Data();
|
||||
|
||||
+ const bool kJitterEnabled = base::FeatureList::IsEnabled(
|
||||
+ features::kAudioContextJitter);
|
||||
+
|
||||
for (unsigned i = 0; i < len; ++i) {
|
||||
const float linear_value = UNSAFE_TODO(source[i]);
|
||||
const double db_mag = audio_utilities::LinearToDecibels(linear_value);
|
||||
|
||||
// The range m_minDecibels to m_maxDecibels will be scaled to byte values
|
||||
// from 0 to UCHAR_MAX.
|
||||
- const double scaled_value =
|
||||
+ double scaled_value =
|
||||
UCHAR_MAX * (db_mag - min_decibels) * range_scale_factor;
|
||||
|
||||
+ if (kJitterEnabled) {
|
||||
+ scaled_value = BaseAudioContext::JitterAudioData(scaled_value);
|
||||
+ }
|
||||
+
|
||||
// Clip to valid range.
|
||||
UNSAFE_TODO(destination[i]) =
|
||||
static_cast<unsigned char>(ClampTo(scaled_value, 0, UCHAR_MAX));
|
||||
@@ -182,12 +196,19 @@ void RealtimeAnalyser::GetFloatTimeDomai
|
||||
|
||||
const unsigned write_index = GetWriteIndex();
|
||||
|
||||
+ const bool kJitterEnabled = base::FeatureList::IsEnabled(
|
||||
+ features::kAudioContextJitter);
|
||||
+
|
||||
for (unsigned i = 0; i < len; ++i) {
|
||||
// Buffer access is protected due to modulo operation.
|
||||
float value = UNSAFE_TODO(
|
||||
input_buffer[(i + write_index - fft_size + kInputBufferSize) %
|
||||
kInputBufferSize]);
|
||||
|
||||
+ if (kJitterEnabled) {
|
||||
+ value = BaseAudioContext::JitterAudioData(value);
|
||||
+ }
|
||||
+
|
||||
UNSAFE_TODO(destination[i]) = value;
|
||||
}
|
||||
}
|
||||
@@ -209,12 +230,19 @@ void RealtimeAnalyser::GetByteTimeDomain
|
||||
|
||||
const unsigned write_index = GetWriteIndex();
|
||||
|
||||
+ const bool kJitterEnabled = base::FeatureList::IsEnabled(
|
||||
+ features::kAudioContextJitter);
|
||||
+
|
||||
for (unsigned i = 0; i < len; ++i) {
|
||||
// Buffer access is protected due to modulo operation.
|
||||
- const float value = UNSAFE_TODO(
|
||||
+ float value = UNSAFE_TODO(
|
||||
input_buffer[(i + write_index - fft_size + kInputBufferSize) %
|
||||
kInputBufferSize]);
|
||||
|
||||
+ if (kJitterEnabled) {
|
||||
+ value = BaseAudioContext::JitterAudioData(value);
|
||||
+ }
|
||||
+
|
||||
// Scale from nominal -1 -> +1 to unsigned byte.
|
||||
const double scaled_value = 128 * (value + 1);
|
||||
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -622,7 +622,6 @@
|
||||
// AudioContext.playoutStats interface.
|
||||
// https://chromestatus.com/feature/5172818344148992
|
||||
name: "AudioContextPlayoutStats",
|
||||
- origin_trial_feature_name: "AudioContextPlayoutStats",
|
||||
status: "experimental",
|
||||
},
|
||||
{
|
||||
@@ -1,69 +0,0 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -27,6 +27,7 @@ namespace helium {
|
||||
};
|
||||
|
||||
constexpr const char kDisableEchCommandLine[] = "disable-ech";
|
||||
+ constexpr const char kCanvasNoiseCommandLine[] = "fingerprinting-canvas-noise";
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -16,4 +16,8 @@
|
||||
"Disables TLS Encrypted Client Hello. Not recommended unless you live in an area with heavy Internet"
|
||||
" censorship and ECH prevents websites from loading. Helium flag.",
|
||||
kOsAll, SINGLE_VALUE_TYPE(helium::kDisableEchCommandLine)},
|
||||
+ {helium::kCanvasNoiseCommandLine,
|
||||
+ "Canvas fingerprint deception",
|
||||
+ "Enable noising pixels when the contents of a canvas are read back by a script. Bound to a browser session. Helium flag, Chromium feature.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(fingerprinting_protection_interventions::features::kCanvasNoise)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
--- a/components/fingerprinting_protection_filter/interventions/common/interventions_features.cc
|
||||
+++ b/components/fingerprinting_protection_filter/interventions/common/interventions_features.cc
|
||||
@@ -10,13 +10,13 @@ namespace fingerprinting_protection_inte
|
||||
|
||||
// Whether the canvas interventions should be enabled that add noise to the
|
||||
// readback values.
|
||||
-BASE_FEATURE(kCanvasNoise, base::FeatureState::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kCanvasNoise, base::FeatureState::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE_PARAM(bool,
|
||||
kCanvasNoiseInRegularMode,
|
||||
&kCanvasNoise,
|
||||
"enable_in_regular_mode",
|
||||
- false);
|
||||
+ true);
|
||||
|
||||
// [Experimental] Whether readback of canvases should be blocked.
|
||||
BASE_FEATURE(kBlockCanvasReadback,
|
||||
--- a/third_party/blink/renderer/core/canvas_interventions/canvas_interventions_helper.cc
|
||||
+++ b/third_party/blink/renderer/core/canvas_interventions/canvas_interventions_helper.cc
|
||||
@@ -157,17 +157,6 @@ bool CanvasInterventionsHelper::MaybeNoi
|
||||
GetContextTypeForMetrics(execution_context)}),
|
||||
static_cast<int>(high_entropy_canvas_op_types), canvas_op_exclusive_max);
|
||||
|
||||
- AuditsIssue::ReportUserReidentificationCanvasNoisedIssue(
|
||||
- CaptureSourceLocation(execution_context), execution_context);
|
||||
-
|
||||
- execution_context->AddConsoleMessage(MakeGarbageCollected<ConsoleMessage>(
|
||||
- mojom::blink::ConsoleMessageSource::kIntervention,
|
||||
- mojom::blink::ConsoleMessageLevel::kInfo,
|
||||
- "Noise was added to a canvas readback. If this has caused breakage, "
|
||||
- "please file a bug at https://issues.chromium.org/issues/"
|
||||
- "new?component=1456351&title=Canvas%20noise%20breakage. This "
|
||||
- "feature can be disabled through chrome://flags/#enable-canvas-noise"));
|
||||
-
|
||||
base::TimeDelta elapsed_time = base::TimeTicks::Now() - start_time;
|
||||
|
||||
UMA_HISTOGRAM_CUSTOM_MICROSECONDS_TIMES(kNoiseDurationMetricName,
|
||||
@@ -175,9 +164,6 @@ bool CanvasInterventionsHelper::MaybeNoi
|
||||
base::Milliseconds(100), 100);
|
||||
UMA_HISTOGRAM_COUNTS_1M(kCanvasSizeMetricName,
|
||||
pixmap_to_noise.width() * pixmap_to_noise.height());
|
||||
- UseCounter::Count(execution_context, WebFeature::kCanvasReadbackNoise);
|
||||
- auto* helper = CanvasInterventionsHelper::From(execution_context);
|
||||
- helper->IncrementNoisedCanvasReadbacks();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -0,0 +1,423 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -30,6 +30,7 @@ namespace helium {
|
||||
|
||||
constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
constexpr const char kHeliumNoiseCanvasCommandLine[] = "helium-noise-canvas";
|
||||
+ constexpr const char kHeliumNoiseAudioCommandLine[] = "helium-noise-audio";
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -24,4 +24,8 @@
|
||||
"[Helium Noise] Canvas pixel noising",
|
||||
"Adds insignificant noise to canvas pixels during readback to deceive canvas-based fingerprinting. Helium flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseCanvas)},
|
||||
+ {helium::kHeliumNoiseAudioCommandLine,
|
||||
+ "[Helium Noise] Jitter audio context data",
|
||||
+ "Adds insignificant jitter to audio data to deceive AudioContext-based fingerprinting. Helium flag.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseAudio)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -47,6 +47,10 @@ BASE_FEATURE(kHeliumNoise,
|
||||
BASE_FEATURE(kHeliumNoiseCanvas,
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
+// Audio Context jitter for fingerprinting protection.
|
||||
+BASE_FEATURE(kHeliumNoiseAudio,
|
||||
+ base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+
|
||||
// Controls whether to include information about the page's open popup in
|
||||
// AIPageContent.
|
||||
BASE_FEATURE(kAIPageContentIncludePopupWindows,
|
||||
--- a/third_party/blink/public/common/features.h
|
||||
+++ b/third_party/blink/public/common/features.h
|
||||
@@ -43,6 +43,7 @@ BLINK_COMMON_EXPORT extern const base::F
|
||||
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoise);
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseCanvas);
|
||||
+BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseAudio);
|
||||
|
||||
// Controls whether to include information about the page's open popup in
|
||||
// AIPageContent.
|
||||
--- a/third_party/blink/renderer/modules/webaudio/audio_buffer.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/audio_buffer.cc
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/containers/span.h"
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
#include "third_party/blink/renderer/bindings/modules/v8/v8_audio_buffer_options.h"
|
||||
#include "third_party/blink/renderer/modules/webaudio/base_audio_context.h"
|
||||
#include "third_party/blink/renderer/platform/audio/audio_bus.h"
|
||||
@@ -200,6 +201,20 @@ AudioBuffer::AudioBuffer(AudioBus* bus)
|
||||
}
|
||||
}
|
||||
|
||||
+void AudioBuffer::JitterAudioData(ExecutionContext* context) {
|
||||
+ if (!base::FeatureList::IsEnabled(blink::features::kHeliumNoiseAudio)) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ for (unsigned i = 0; i < channels_.size(); ++i) {
|
||||
+ if (NotShared<DOMFloat32Array> channel = getChannelData(i)) {
|
||||
+ for (float& sample : channel->AsSpan()) {
|
||||
+ sample = BaseAudioContext::JitterAudioData(sample, context);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
NotShared<DOMFloat32Array> AudioBuffer::getChannelData(
|
||||
unsigned channel_index,
|
||||
ExceptionState& exception_state) {
|
||||
--- a/third_party/blink/renderer/modules/webaudio/audio_buffer.h
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/audio_buffer.h
|
||||
@@ -41,6 +41,7 @@ namespace blink {
|
||||
|
||||
class AudioBus;
|
||||
class AudioBufferOptions;
|
||||
+class ExecutionContext;
|
||||
class ExceptionState;
|
||||
class SharedAudioBuffer;
|
||||
|
||||
@@ -115,6 +116,8 @@ class MODULES_EXPORT AudioBuffer final :
|
||||
|
||||
std::unique_ptr<SharedAudioBuffer> CreateSharedAudioBuffer();
|
||||
|
||||
+ void JitterAudioData(ExecutionContext* context);
|
||||
+
|
||||
private:
|
||||
static DOMFloat32Array* CreateFloat32ArrayOrNull(
|
||||
uint32_t length,
|
||||
--- a/third_party/blink/renderer/modules/webaudio/audio_context.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/audio_context.cc
|
||||
@@ -921,7 +921,12 @@ double AudioContext::baseLatency() const
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(main_thread_sequence_checker_);
|
||||
DCHECK(destination());
|
||||
|
||||
- return base_latency_;
|
||||
+ if (!base::FeatureList::IsEnabled(blink::features::kHeliumNoiseAudio)) {
|
||||
+ return base_latency_;
|
||||
+ }
|
||||
+
|
||||
+ // Round to two decimal places
|
||||
+ return std::round(base_latency_ * 100.0) / 100.0;
|
||||
}
|
||||
|
||||
double AudioContext::outputLatency() const {
|
||||
--- a/third_party/blink/renderer/modules/webaudio/base_audio_context.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/base_audio_context.cc
|
||||
@@ -26,10 +26,13 @@
|
||||
#include "third_party/blink/renderer/modules/webaudio/base_audio_context.h"
|
||||
|
||||
#include <algorithm>
|
||||
+#include <bit>
|
||||
|
||||
#include "base/metrics/histogram_functions.h"
|
||||
#include "build/build_config.h"
|
||||
#include "media/base/audio_bus.h"
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
+#include "third_party/blink/public/common/helium_noise/noise_token.h"
|
||||
#include "third_party/blink/public/mojom/devtools/console_message.mojom-blink.h"
|
||||
#include "third_party/blink/public/mojom/frame/lifecycle.mojom-shared.h"
|
||||
#include "third_party/blink/public/platform/platform.h"
|
||||
@@ -37,7 +40,9 @@
|
||||
#include "third_party/blink/renderer/bindings/core/v8/dictionary.h"
|
||||
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
|
||||
#include "third_party/blink/renderer/bindings/modules/v8/v8_periodic_wave_constraints.h"
|
||||
+#include "third_party/blink/renderer/core/helium_noise/helium_noise_hash.h"
|
||||
#include "third_party/blink/renderer/core/dom/dom_exception.h"
|
||||
+#include "third_party/blink/renderer/core/execution_context/execution_context.h"
|
||||
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
|
||||
#include "third_party/blink/renderer/core/frame/settings.h"
|
||||
#include "third_party/blink/renderer/core/html/media/html_media_element.h"
|
||||
@@ -777,6 +782,35 @@ LocalDOMWindow* BaseAudioContext::GetWin
|
||||
return To<LocalDOMWindow>(GetExecutionContext());
|
||||
}
|
||||
|
||||
+float BaseAudioContext::JitterAudioData(float data, ExecutionContext* context) {
|
||||
+ if (!base::FeatureList::IsEnabled(blink::features::kHeliumNoiseAudio)) {
|
||||
+ return data;
|
||||
+ }
|
||||
+
|
||||
+ if (!context || !context->GetHeliumNoiseTokens().contains(
|
||||
+ HeliumNoiseFeature::kAudio)) {
|
||||
+ return data;
|
||||
+ }
|
||||
+
|
||||
+ HeliumNoiseHash noise_hash(
|
||||
+ context->GetHeliumNoiseTokens().at(HeliumNoiseFeature::kAudio));
|
||||
+
|
||||
+ // Update the hash with audio data for extra entropy. This makes it
|
||||
+ // harder to identify or remove the noise, similar to how we do
|
||||
+ // it in canvas.
|
||||
+ uint64_t data_bits = std::bit_cast<uint64_t>(static_cast<double>(data));
|
||||
+ noise_hash.Update(data_bits);
|
||||
+
|
||||
+ // Generate jitter within [-0.0001, 0.0001] (aka ±0.01%)
|
||||
+ // Note: GetValueBelow(2) returns an int value, either 0 or 1.
|
||||
+ constexpr float scale = 0.0001f / 10000.0f;
|
||||
+ int noise_value = noise_hash.GetValueBelow(10000 + 1);
|
||||
+ int noise_sign = noise_hash.GetValueBelow(2) ? 1 : -1;
|
||||
+ float jitter = noise_value * noise_sign * scale;
|
||||
+
|
||||
+ return data * (1.0f + jitter);
|
||||
+}
|
||||
+
|
||||
void BaseAudioContext::NotifySourceNodeStartedProcessing(AudioNode* node) {
|
||||
DCHECK(IsMainThread());
|
||||
DeferredTaskHandler::GraphAutoLocker locker(this);
|
||||
--- a/third_party/blink/renderer/modules/webaudio/base_audio_context.h
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/base_audio_context.h
|
||||
@@ -327,6 +327,8 @@ class MODULES_EXPORT BaseAudioContext
|
||||
// if the execution context does not exist.
|
||||
bool CheckExecutionContextAndThrowIfNecessary(ExceptionState&);
|
||||
|
||||
+ static float JitterAudioData(float data, ExecutionContext* context);
|
||||
+
|
||||
protected:
|
||||
enum class ContextType { kRealtimeContext, kOfflineContext };
|
||||
|
||||
--- a/third_party/blink/renderer/modules/webaudio/offline_audio_context.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/offline_audio_context.cc
|
||||
@@ -396,6 +396,8 @@ void OfflineAudioContext::FireCompletion
|
||||
return;
|
||||
}
|
||||
|
||||
+ rendered_buffer->JitterAudioData(GetExecutionContext());
|
||||
+
|
||||
// Call the offline rendering completion event listener and resolve the
|
||||
// promise too.
|
||||
DispatchEvent(*OfflineAudioCompletionEvent::Create(rendered_buffer));
|
||||
--- a/third_party/blink/renderer/modules/webaudio/realtime_analyser.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/realtime_analyser.cc
|
||||
@@ -33,6 +33,8 @@
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "media/base/audio_bus.h"
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
+#include "third_party/blink/renderer/modules/webaudio/base_audio_context.h"
|
||||
#include "third_party/blink/renderer/platform/audio/audio_bus.h"
|
||||
#include "third_party/blink/renderer/platform/audio/audio_utilities.h"
|
||||
#include "third_party/blink/renderer/platform/audio/vector_math.h"
|
||||
@@ -98,7 +100,8 @@ bool RealtimeAnalyser::SetFftSize(uint32
|
||||
}
|
||||
|
||||
void RealtimeAnalyser::GetFloatFrequencyData(DOMFloat32Array* destination_array,
|
||||
- double current_time) {
|
||||
+ double current_time,
|
||||
+ ExecutionContext* context) {
|
||||
DCHECK(IsMainThread());
|
||||
DCHECK(destination_array);
|
||||
|
||||
@@ -115,16 +118,22 @@ void RealtimeAnalyser::GetFloatFrequency
|
||||
const float* source = magnitude_buffer_.Data();
|
||||
float* destination = destination_array->Data();
|
||||
|
||||
+ const bool jitter_enabled = base::FeatureList::IsEnabled(
|
||||
+ blink::features::kHeliumNoiseAudio);
|
||||
+
|
||||
for (unsigned i = 0; i < len; ++i) {
|
||||
const float linear_value = UNSAFE_TODO(source[i]);
|
||||
const double db_mag = audio_utilities::LinearToDecibels(linear_value);
|
||||
- UNSAFE_TODO(destination[i]) = static_cast<float>(db_mag);
|
||||
+ auto db_value = static_cast<float>(db_mag);
|
||||
+ UNSAFE_TODO(destination[i]) = jitter_enabled ?
|
||||
+ BaseAudioContext::JitterAudioData(db_value, context) : db_value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void RealtimeAnalyser::GetByteFrequencyData(DOMUint8Array* destination_array,
|
||||
- double current_time) {
|
||||
+ double current_time,
|
||||
+ ExecutionContext* context) {
|
||||
DCHECK(IsMainThread());
|
||||
DCHECK(destination_array);
|
||||
|
||||
@@ -150,15 +159,22 @@ void RealtimeAnalyser::GetByteFrequencyD
|
||||
const float* source = magnitude_buffer_.Data();
|
||||
unsigned char* destination = destination_array->Data();
|
||||
|
||||
+ const bool jitter_enabled = base::FeatureList::IsEnabled(
|
||||
+ blink::features::kHeliumNoiseAudio);
|
||||
+
|
||||
for (unsigned i = 0; i < len; ++i) {
|
||||
const float linear_value = UNSAFE_TODO(source[i]);
|
||||
const double db_mag = audio_utilities::LinearToDecibels(linear_value);
|
||||
|
||||
// The range m_minDecibels to m_maxDecibels will be scaled to byte values
|
||||
// from 0 to UCHAR_MAX.
|
||||
- const double scaled_value =
|
||||
+ double scaled_value =
|
||||
UCHAR_MAX * (db_mag - min_decibels) * range_scale_factor;
|
||||
|
||||
+ if (jitter_enabled) {
|
||||
+ scaled_value = BaseAudioContext::JitterAudioData(scaled_value, context);
|
||||
+ }
|
||||
+
|
||||
// Clip to valid range.
|
||||
UNSAFE_TODO(destination[i]) =
|
||||
static_cast<unsigned char>(ClampTo(scaled_value, 0, UCHAR_MAX));
|
||||
@@ -167,7 +183,8 @@ void RealtimeAnalyser::GetByteFrequencyD
|
||||
}
|
||||
|
||||
void RealtimeAnalyser::GetFloatTimeDomainData(
|
||||
- DOMFloat32Array* destination_array) {
|
||||
+ DOMFloat32Array* destination_array,
|
||||
+ ExecutionContext* context) {
|
||||
DCHECK(IsMainThread());
|
||||
DCHECK(destination_array);
|
||||
|
||||
@@ -183,18 +200,26 @@ void RealtimeAnalyser::GetFloatTimeDomai
|
||||
|
||||
const unsigned write_index = GetWriteIndex();
|
||||
|
||||
+ const bool jitter_enabled = base::FeatureList::IsEnabled(
|
||||
+ blink::features::kHeliumNoiseAudio);
|
||||
+
|
||||
for (unsigned i = 0; i < len; ++i) {
|
||||
// Buffer access is protected due to modulo operation.
|
||||
float value = UNSAFE_TODO(
|
||||
input_buffer[(i + write_index - fft_size + kInputBufferSize) %
|
||||
kInputBufferSize]);
|
||||
|
||||
+ if (jitter_enabled) {
|
||||
+ value = BaseAudioContext::JitterAudioData(value, context);
|
||||
+ }
|
||||
+
|
||||
UNSAFE_TODO(destination[i]) = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-void RealtimeAnalyser::GetByteTimeDomainData(DOMUint8Array* destination_array) {
|
||||
+void RealtimeAnalyser::GetByteTimeDomainData(DOMUint8Array* destination_array,
|
||||
+ ExecutionContext* context) {
|
||||
DCHECK(IsMainThread());
|
||||
DCHECK(destination_array);
|
||||
|
||||
@@ -210,12 +235,19 @@ void RealtimeAnalyser::GetByteTimeDomain
|
||||
|
||||
const unsigned write_index = GetWriteIndex();
|
||||
|
||||
+ const bool jitter_enabled = base::FeatureList::IsEnabled(
|
||||
+ blink::features::kHeliumNoiseAudio);
|
||||
+
|
||||
for (unsigned i = 0; i < len; ++i) {
|
||||
// Buffer access is protected due to modulo operation.
|
||||
- const float value = UNSAFE_TODO(
|
||||
+ float value = UNSAFE_TODO(
|
||||
input_buffer[(i + write_index - fft_size + kInputBufferSize) %
|
||||
kInputBufferSize]);
|
||||
|
||||
+ if (jitter_enabled) {
|
||||
+ value = BaseAudioContext::JitterAudioData(value, context);
|
||||
+ }
|
||||
+
|
||||
// Scale from nominal -1 -> +1 to unsigned byte.
|
||||
const double scaled_value = 128 * (value + 1);
|
||||
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -630,7 +630,6 @@
|
||||
// AudioContext.playoutStats interface.
|
||||
// https://chromestatus.com/feature/5172818344148992
|
||||
name: "AudioContextPlayoutStats",
|
||||
- origin_trial_feature_name: "AudioContextPlayoutStats",
|
||||
status: "experimental",
|
||||
},
|
||||
{
|
||||
--- a/third_party/blink/renderer/modules/webaudio/analyser_handler.h
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/analyser_handler.h
|
||||
@@ -13,6 +13,7 @@ namespace blink {
|
||||
|
||||
class AudioNode;
|
||||
class ExceptionState;
|
||||
+class ExecutionContext;
|
||||
|
||||
class AnalyserHandler final : public AudioHandler {
|
||||
public:
|
||||
@@ -37,17 +38,17 @@ class AnalyserHandler final : public Aud
|
||||
}
|
||||
void SetSmoothingTimeConstant(double k, ExceptionState&);
|
||||
|
||||
- void GetFloatFrequencyData(DOMFloat32Array* array, double current_time) {
|
||||
- analyser_.GetFloatFrequencyData(array, current_time);
|
||||
+ void GetFloatFrequencyData(DOMFloat32Array* array, double current_time, ExecutionContext* context) {
|
||||
+ analyser_.GetFloatFrequencyData(array, current_time, context);
|
||||
}
|
||||
- void GetByteFrequencyData(DOMUint8Array* array, double current_time) {
|
||||
- analyser_.GetByteFrequencyData(array, current_time);
|
||||
+ void GetByteFrequencyData(DOMUint8Array* array, double current_time, ExecutionContext* context) {
|
||||
+ analyser_.GetByteFrequencyData(array, current_time, context);
|
||||
}
|
||||
- void GetFloatTimeDomainData(DOMFloat32Array* array) {
|
||||
- analyser_.GetFloatTimeDomainData(array);
|
||||
+ void GetFloatTimeDomainData(DOMFloat32Array* array, ExecutionContext* context) {
|
||||
+ analyser_.GetFloatTimeDomainData(array, context);
|
||||
}
|
||||
- void GetByteTimeDomainData(DOMUint8Array* array) {
|
||||
- analyser_.GetByteTimeDomainData(array);
|
||||
+ void GetByteTimeDomainData(DOMUint8Array* array, ExecutionContext* context) {
|
||||
+ analyser_.GetByteTimeDomainData(array, context);
|
||||
}
|
||||
|
||||
private:
|
||||
--- a/third_party/blink/renderer/modules/webaudio/analyser_node.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/analyser_node.cc
|
||||
@@ -118,20 +118,22 @@ double AnalyserNode::smoothingTimeConsta
|
||||
|
||||
void AnalyserNode::getFloatFrequencyData(NotShared<DOMFloat32Array> array) {
|
||||
GetAnalyserHandler().GetFloatFrequencyData(array.Get(),
|
||||
- context()->currentTime());
|
||||
+ context()->currentTime(),
|
||||
+ GetExecutionContext());
|
||||
}
|
||||
|
||||
void AnalyserNode::getByteFrequencyData(NotShared<DOMUint8Array> array) {
|
||||
GetAnalyserHandler().GetByteFrequencyData(array.Get(),
|
||||
- context()->currentTime());
|
||||
+ context()->currentTime(),
|
||||
+ GetExecutionContext());
|
||||
}
|
||||
|
||||
void AnalyserNode::getFloatTimeDomainData(NotShared<DOMFloat32Array> array) {
|
||||
- GetAnalyserHandler().GetFloatTimeDomainData(array.Get());
|
||||
+ GetAnalyserHandler().GetFloatTimeDomainData(array.Get(), GetExecutionContext());
|
||||
}
|
||||
|
||||
void AnalyserNode::getByteTimeDomainData(NotShared<DOMUint8Array> array) {
|
||||
- GetAnalyserHandler().GetByteTimeDomainData(array.Get());
|
||||
+ GetAnalyserHandler().GetByteTimeDomainData(array.Get(), GetExecutionContext());
|
||||
}
|
||||
|
||||
void AnalyserNode::ReportDidCreate() {
|
||||
--- a/third_party/blink/renderer/modules/webaudio/realtime_analyser.h
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/realtime_analyser.h
|
||||
@@ -36,6 +36,7 @@
|
||||
namespace blink {
|
||||
|
||||
class AudioBus;
|
||||
+class ExecutionContext;
|
||||
|
||||
class RealtimeAnalyser final {
|
||||
DISALLOW_NEW();
|
||||
@@ -65,10 +66,10 @@ class RealtimeAnalyser final {
|
||||
double SmoothingTimeConstant() const { return smoothing_time_constant_; }
|
||||
void SetSmoothingTimeConstant(double k) { smoothing_time_constant_ = k; }
|
||||
|
||||
- void GetFloatFrequencyData(DOMFloat32Array*, double);
|
||||
- void GetByteFrequencyData(DOMUint8Array*, double);
|
||||
- void GetFloatTimeDomainData(DOMFloat32Array*);
|
||||
- void GetByteTimeDomainData(DOMUint8Array*);
|
||||
+ void GetFloatFrequencyData(DOMFloat32Array*, double, ExecutionContext*);
|
||||
+ void GetByteFrequencyData(DOMUint8Array*, double, ExecutionContext*);
|
||||
+ void GetFloatTimeDomainData(DOMFloat32Array*, ExecutionContext*);
|
||||
+ void GetByteTimeDomainData(DOMUint8Array*, ExecutionContext*);
|
||||
|
||||
// The audio thread writes input data here.
|
||||
void WriteInput(AudioBus*, uint32_t frames_to_process);
|
||||
@@ -0,0 +1,421 @@
|
||||
# Some files in this patch are sourced from Chromium. They were
|
||||
# heavily modified to fit Helium's needs.
|
||||
#
|
||||
# Chromium's license header is maintained wherever applicable to
|
||||
# respect the original authorship of code.
|
||||
#
|
||||
# Chromium LICENSE:
|
||||
#
|
||||
# Copyright 2015 The Chromium Authors
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -29,6 +29,7 @@ namespace helium {
|
||||
constexpr const char kDisableEchCommandLine[] = "disable-ech";
|
||||
|
||||
constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
+ constexpr const char kHeliumNoiseCanvasCommandLine[] = "helium-noise-canvas";
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -20,4 +20,8 @@
|
||||
"Helium Noise",
|
||||
"Helium's anti-fingerprinting functionality. Adds insignificant noise to various features to deceive fingerprinting scripts. Enabled by default, must be enabled for other anti-fingerprinting features to work. Helium flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoise)},
|
||||
+ {helium::kHeliumNoiseCanvasCommandLine,
|
||||
+ "[Helium Noise] Canvas pixel noising",
|
||||
+ "Adds insignificant noise to canvas pixels during readback to deceive canvas-based fingerprinting. Helium flag.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseCanvas)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -43,6 +43,10 @@ const base::FeatureParam<std::string> kS
|
||||
BASE_FEATURE(kHeliumNoise,
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
+// Canvas noise for fingerprinting protection.
|
||||
+BASE_FEATURE(kHeliumNoiseCanvas,
|
||||
+ base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+
|
||||
// Controls whether to include information about the page's open popup in
|
||||
// AIPageContent.
|
||||
BASE_FEATURE(kAIPageContentIncludePopupWindows,
|
||||
--- a/third_party/blink/public/common/features.h
|
||||
+++ b/third_party/blink/public/common/features.h
|
||||
@@ -42,6 +42,7 @@ BLINK_COMMON_EXPORT extern const base::F
|
||||
// on the identifier name of the generated feature.
|
||||
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoise);
|
||||
+BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseCanvas);
|
||||
|
||||
// Controls whether to include information about the page's open popup in
|
||||
// AIPageContent.
|
||||
--- /dev/null
|
||||
+++ b/third_party/blink/renderer/core/helium_noise/canvas_noising_helper.cc
|
||||
@@ -0,0 +1,240 @@
|
||||
+// Copyright 2026 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
+// -----------------------------------------------------------------------
|
||||
+// Copyright 2025 The Chromium Authors
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+
|
||||
+#include "third_party/blink/renderer/core/helium_noise/canvas_noising_helper.h"
|
||||
+
|
||||
+#include <array>
|
||||
+#include <cstddef>
|
||||
+#include <cstdint>
|
||||
+
|
||||
+#include "base/check_op.h"
|
||||
+#include "base/containers/span.h"
|
||||
+#include "base/containers/span_writer.h"
|
||||
+#include "base/memory/scoped_refptr.h"
|
||||
+#include "base/numerics/byte_conversions.h"
|
||||
+#include "base/numerics/safe_conversions.h"
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
+#include "third_party/blink/renderer/core/execution_context/execution_context.h"
|
||||
+#include "third_party/blink/renderer/core/helium_noise/helium_noise_hash.h"
|
||||
+#include "third_party/blink/renderer/platform/graphics/canvas_high_entropy_op_type.h"
|
||||
+#include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h"
|
||||
+#include "third_party/blink/renderer/platform/graphics/unaccelerated_static_bitmap_image.h"
|
||||
+#include "third_party/skia/include/core/SkBitmap.h"
|
||||
+#include "third_party/skia/include/core/SkImageInfo.h"
|
||||
+#include "ui/gfx/skia_span_util.h"
|
||||
+
|
||||
+namespace blink {
|
||||
+
|
||||
+namespace {
|
||||
+
|
||||
+constexpr uint8_t kMaxClosePixelDelta = 10u;
|
||||
+constexpr uint8_t kMaxNoisePerChannel = 3u;
|
||||
+constexpr uint8_t kChannelsPerPixel = 4u;
|
||||
+constexpr std::array<uint8_t, 4u> kEmptyPixel({0, 0, 0, 0});
|
||||
+
|
||||
+struct PixelLocation {
|
||||
+ int x;
|
||||
+ int y;
|
||||
+};
|
||||
+
|
||||
+void ClampPixelLocation(PixelLocation* location,
|
||||
+ const int width,
|
||||
+ const int height) {
|
||||
+ CHECK(width >= 1 && height >= 1);
|
||||
+ location->x = std::min(std::max(0, location->x), width - 1);
|
||||
+ location->y = std::min(std::max(0, location->y), height - 1);
|
||||
+}
|
||||
+
|
||||
+// Returns two random pixel locations; one close to the offset and one
|
||||
+// randomly selected from the entire canvas.
|
||||
+const std::pair<PixelLocation, PixelLocation> GetRandomPixelLocations(
|
||||
+ HeliumNoiseHash& token_hash,
|
||||
+ const PixelLocation offset,
|
||||
+ const int width,
|
||||
+ const int height) {
|
||||
+ std::pair<PixelLocation, PixelLocation> pixel_locations;
|
||||
+ // Uses 2 * log2(kMaxClosePixelDelta*2+1) = 8 bits from hash.
|
||||
+ pixel_locations.first = {
|
||||
+ offset.x + token_hash.GetValueBelow(kMaxClosePixelDelta * 2) -
|
||||
+ kMaxClosePixelDelta + 1,
|
||||
+ offset.y + token_hash.GetValueBelow(kMaxClosePixelDelta * 2) -
|
||||
+ kMaxClosePixelDelta + 1};
|
||||
+ // x and y might be negative or go beyond the width or height here, so we need
|
||||
+ // to clamp them.
|
||||
+ ClampPixelLocation(&pixel_locations.first, width, height);
|
||||
+ // Uses max 2 * log2(kMaximumCanvasSize) = 40 bits from hash.
|
||||
+ pixel_locations.second = {token_hash.GetValueBelow(width),
|
||||
+ token_hash.GetValueBelow(height)};
|
||||
+ // Used at most 48 bits from hash
|
||||
+ return pixel_locations;
|
||||
+}
|
||||
+
|
||||
+void HeliumNoisePixel(base::span<uint8_t> pixel, HeliumNoiseHash& token_hash) {
|
||||
+ base::SpanWriter writer(base::as_writable_bytes(pixel));
|
||||
+ for (int i = 0; i < kChannelsPerPixel; ++i) {
|
||||
+ int channel_value = pixel[i];
|
||||
+ // Clamp min- and maxNoisedVal to [0, 255] and [1, 255] for the alpha
|
||||
+ // channel if it was non-zero before.
|
||||
+ int lowerLimit = (i == kChannelsPerPixel - 1 && channel_value > 0) ? 1 : 0;
|
||||
+ int minNoisedVal = channel_value <= kMaxNoisePerChannel
|
||||
+ ? lowerLimit
|
||||
+ : channel_value - kMaxNoisePerChannel;
|
||||
+ int maxNoisedVal = channel_value >= 255 - kMaxNoisePerChannel
|
||||
+ ? 255
|
||||
+ : channel_value + kMaxNoisePerChannel;
|
||||
+ int noise = token_hash.GetValueBelow(
|
||||
+ std::min(kMaxNoisePerChannel * 2 + 1, maxNoisedVal - minNoisedVal + 1));
|
||||
+ writer.WriteU8LittleEndian(
|
||||
+ base::checked_cast<uint8_t>(minNoisedVal + noise));
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+base::span<uint8_t, 4u> GetPixelAt(const int x,
|
||||
+ const int y,
|
||||
+ const int width,
|
||||
+ const base::span<uint8_t> pixels) {
|
||||
+ return pixels
|
||||
+ .subspan(static_cast<size_t>((x + y * width) * kChannelsPerPixel))
|
||||
+ .first<4u>();
|
||||
+}
|
||||
+
|
||||
+uint64_t GetValueFromPixelLocations(
|
||||
+ const std::pair<PixelLocation, PixelLocation> locations,
|
||||
+ const base::span<uint8_t> pixels,
|
||||
+ int width) {
|
||||
+ uint64_t result = 0u;
|
||||
+ result |= base::U32FromLittleEndian(
|
||||
+ GetPixelAt(locations.first.x, locations.first.y, width, pixels));
|
||||
+ result <<= 32u;
|
||||
+ result |= base::U32FromLittleEndian(
|
||||
+ GetPixelAt(locations.second.x, locations.second.y, width, pixels));
|
||||
+ return result;
|
||||
+}
|
||||
+
|
||||
+void CopyPixelValue(const base::span<uint8_t> from_pixel,
|
||||
+ base::span<uint8_t> to_pixel) {
|
||||
+ base::SpanWriter writer(base::as_writable_bytes(to_pixel));
|
||||
+ writer.Write(from_pixel.first<kChannelsPerPixel>());
|
||||
+}
|
||||
+
|
||||
+// Adds noise to the provided pixels in place, using |token_hash| as the
|
||||
+// source for pseudo-randomness. This function assumes that there are 4
|
||||
+// channels per pixel.
|
||||
+void HeliumNoisePixels(const HeliumNoiseHash& token_hash,
|
||||
+ base::span<uint8_t> pixels,
|
||||
+ const int width,
|
||||
+ const int height) {
|
||||
+ CHECK_EQ(pixels.size(),
|
||||
+ static_cast<size_t>(width * height * kChannelsPerPixel));
|
||||
+
|
||||
+ const size_t row_size = width * kChannelsPerPixel;
|
||||
+ std::vector<uint8_t> row1(row_size);
|
||||
+ std::vector<uint8_t> row2(row_size);
|
||||
+ base::span<uint8_t> unnoised_previous_row(row1);
|
||||
+ base::span<uint8_t> unnoised_current_row(row2);
|
||||
+
|
||||
+ for (int y = 0; y < height; ++y) {
|
||||
+ unnoised_current_row.copy_from(pixels.subspan(y * row_size, row_size));
|
||||
+ for (int x = 0; x < width; ++x) {
|
||||
+ auto pixel = GetPixelAt(x, y, width, pixels);
|
||||
+ if (pixel == kEmptyPixel) {
|
||||
+ continue;
|
||||
+ }
|
||||
+ if (y > 0 && x > 0 &&
|
||||
+ GetPixelAt(x - 1, 0, width, unnoised_previous_row) == pixel) {
|
||||
+ // same top-left pixel, copy.
|
||||
+ CopyPixelValue(GetPixelAt(x - 1, y - 1, width, pixels), pixel);
|
||||
+ } else if (y > 0 &&
|
||||
+ GetPixelAt(x, 0, width, unnoised_previous_row) == pixel) {
|
||||
+ // same top pixel, copy.
|
||||
+ CopyPixelValue(GetPixelAt(x, y - 1, width, pixels), pixel);
|
||||
+ } else if (y > 0 && x < width - 1 &&
|
||||
+ GetPixelAt(x + 1, 0, width, unnoised_previous_row) == pixel) {
|
||||
+ // same top-right pixel, copy.
|
||||
+ CopyPixelValue(GetPixelAt(x + 1, y - 1, width, pixels), pixel);
|
||||
+ } else if (x > 0 &&
|
||||
+ GetPixelAt(x - 1, 0, width, unnoised_current_row) == pixel) {
|
||||
+ // same left pixel, copy.
|
||||
+ CopyPixelValue(GetPixelAt(x - 1, y, width, pixels), pixel);
|
||||
+ } else {
|
||||
+ // otherwise, noise the pixel.
|
||||
+ HeliumNoiseHash hash_copy = token_hash;
|
||||
+ hash_copy.Update(base::U32FromLittleEndian(pixel));
|
||||
+ // GetRandomPixelLocations consumes at most 46 bits from hash.
|
||||
+ const std::pair<PixelLocation, PixelLocation> other_pixels =
|
||||
+ GetRandomPixelLocations(hash_copy, {x, y}, width, height);
|
||||
+ hash_copy.Update(
|
||||
+ GetValueFromPixelLocations(other_pixels, pixels, width));
|
||||
+ // HeliumNoisePixel consumes 12 bits from hash
|
||||
+ HeliumNoisePixel(pixel, hash_copy);
|
||||
+ }
|
||||
+ }
|
||||
+ // Previous can be overwritten (new current). Current is the now previous.
|
||||
+ std::swap(unnoised_previous_row, unnoised_current_row);
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+} // namespace
|
||||
+
|
||||
+// static
|
||||
+bool CanvasNoisingHelper::MaybeNoiseSnapshot(
|
||||
+ ExecutionContext* execution_context,
|
||||
+ scoped_refptr<StaticBitmapImage>& snapshot) {
|
||||
+ CHECK(snapshot);
|
||||
+
|
||||
+ if (!base::FeatureList::IsEnabled(
|
||||
+ blink::features::kHeliumNoiseCanvas)) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ // Check if execution context exists and has a canvas noise token
|
||||
+ if (!execution_context ||
|
||||
+ !execution_context->GetHeliumNoiseTokens().contains(
|
||||
+ HeliumNoiseFeature::kCanvas)) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ // Use kUnpremul_SkAlphaType as alpha type as we are changing the pixel values
|
||||
+ // of all channels, including the alpha channel.
|
||||
+ auto info = SkImageInfo::Make(
|
||||
+ snapshot->GetSize().width(), snapshot->GetSize().height(),
|
||||
+ viz::ToClosestSkColorType(snapshot->GetSharedImageFormat()),
|
||||
+ kUnpremul_SkAlphaType, snapshot->GetColorSpace().ToSkColorSpace());
|
||||
+ SkBitmap bm;
|
||||
+ if (!bm.tryAllocPixels(info)) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ // Copy the original pixels from snapshot to the modifiable SkPixmap. SkBitmap
|
||||
+ // should already allocate the correct amount of pixels, so this shouldn't
|
||||
+ // fail because of memory allocation.
|
||||
+ auto pixmap_to_noise = bm.pixmap();
|
||||
+ PaintImage paint_image = snapshot->PaintImageForCurrentFrame();
|
||||
+ if (!paint_image.readPixels(bm.info(), pixmap_to_noise.writable_addr(),
|
||||
+ bm.rowBytes(), 0, 0)) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ base::span<uint8_t> modify_pixels =
|
||||
+ gfx::SkPixmapToWritableSpan(pixmap_to_noise);
|
||||
+
|
||||
+ auto token_hash = HeliumNoiseHash(
|
||||
+ execution_context->GetHeliumNoiseTokens().at(
|
||||
+ HeliumNoiseFeature::kCanvas));
|
||||
+
|
||||
+ HeliumNoisePixels(token_hash, modify_pixels, pixmap_to_noise.width(),
|
||||
+ pixmap_to_noise.height());
|
||||
+
|
||||
+ auto noised_image = bm.asImage();
|
||||
+ snapshot = blink::UnacceleratedStaticBitmapImage::Create(
|
||||
+ std::move(noised_image), snapshot->Orientation());
|
||||
+
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+} // namespace blink
|
||||
--- /dev/null
|
||||
+++ b/third_party/blink/renderer/core/helium_noise/canvas_noising_helper.h
|
||||
@@ -0,0 +1,31 @@
|
||||
+// Copyright 2026 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
+// -----------------------------------------------------------------------
|
||||
+// Copyright 2025 The Chromium Authors
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+
|
||||
+#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HELIUM_NOISE_CANVAS_NOISING_HELPER_H_
|
||||
+#define THIRD_PARTY_BLINK_RENDERER_CORE_HELIUM_NOISE_CANVAS_NOISING_HELPER_H_
|
||||
+
|
||||
+#include "third_party/blink/renderer/core/core_export.h"
|
||||
+#include "third_party/blink/renderer/core/execution_context/execution_context.h"
|
||||
+#include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h"
|
||||
+
|
||||
+namespace blink {
|
||||
+
|
||||
+class CORE_EXPORT CanvasNoisingHelper {
|
||||
+ public:
|
||||
+ // If allowed, performs noising on a copy of the snapshot StaticBitmapImage
|
||||
+ // and modifies it in place. Returns true if noise was applied.
|
||||
+ static bool MaybeNoiseSnapshot(ExecutionContext* execution_context,
|
||||
+ scoped_refptr<StaticBitmapImage>& snapshot);
|
||||
+
|
||||
+ private:
|
||||
+ CanvasNoisingHelper() = delete;
|
||||
+};
|
||||
+
|
||||
+} // namespace blink
|
||||
+
|
||||
+#endif // THIRD_PARTY_BLINK_RENDERER_CORE_HELIUM_NOISE_CANVAS_NOISING_HELPER_H_
|
||||
--- a/third_party/blink/renderer/core/helium_noise/build.gni
|
||||
+++ b/third_party/blink/renderer/core/helium_noise/build.gni
|
||||
@@ -5,4 +5,6 @@
|
||||
blink_core_sources_helium_noise = [
|
||||
"helium_noise_hash.cc",
|
||||
"helium_noise_hash.h",
|
||||
+ "canvas_noising_helper.cc",
|
||||
+ "canvas_noising_helper.h",
|
||||
]
|
||||
--- a/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc
|
||||
+++ b/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc
|
||||
@@ -72,6 +72,7 @@
|
||||
#include "third_party/blink/renderer/core/frame/settings.h"
|
||||
#include "third_party/blink/renderer/core/frame/web_feature.h"
|
||||
#include "third_party/blink/renderer/core/geometry/dom_matrix.h"
|
||||
+#include "third_party/blink/renderer/core/helium_noise/canvas_noising_helper.h"
|
||||
#include "third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.h"
|
||||
#include "third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h"
|
||||
#include "third_party/blink/renderer/core/html/canvas/canvas_draw_listener.h"
|
||||
@@ -1305,6 +1306,9 @@ String HTMLCanvasElement::ToDataURLInter
|
||||
|
||||
scoped_refptr<StaticBitmapImage> image_bitmap = Snapshot(source_buffer);
|
||||
if (image_bitmap) {
|
||||
+ CanvasNoisingHelper::MaybeNoiseSnapshot(GetExecutionContext(),
|
||||
+ image_bitmap);
|
||||
+
|
||||
std::unique_ptr<ImageDataBuffer> data_buffer =
|
||||
ImageDataBuffer::Create(image_bitmap);
|
||||
if (!data_buffer)
|
||||
@@ -1416,6 +1420,9 @@ void HTMLCanvasElement::toBlob(V8BlobCal
|
||||
CanvasAsyncBlobCreator* async_creator = nullptr;
|
||||
scoped_refptr<StaticBitmapImage> image_bitmap = Snapshot(kBackBuffer);
|
||||
if (image_bitmap) {
|
||||
+ CanvasNoisingHelper::MaybeNoiseSnapshot(GetExecutionContext(),
|
||||
+ image_bitmap);
|
||||
+
|
||||
auto* options = ImageEncodeOptions::Create();
|
||||
options->setType(ImageEncoderUtils::MimeTypeName(encoding_mime_type));
|
||||
async_creator = MakeGarbageCollected<CanvasAsyncBlobCreator>(
|
||||
--- a/third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.cc
|
||||
+++ b/third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.cc
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "third_party/blink/renderer/core/fileapi/blob.h"
|
||||
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
|
||||
#include "third_party/blink/renderer/core/frame/local_frame.h"
|
||||
+#include "third_party/blink/renderer/core/helium_noise/canvas_noising_helper.h"
|
||||
#include "third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.h"
|
||||
#include "third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h"
|
||||
#include "third_party/blink/renderer/core/html/canvas/canvas_rendering_context.h"
|
||||
@@ -343,11 +344,13 @@ ScriptPromise<Blob> OffscreenCanvas::con
|
||||
base::TimeTicks start_time = base::TimeTicks::Now();
|
||||
scoped_refptr<StaticBitmapImage> image_bitmap = context_->GetImage();
|
||||
if (image_bitmap) {
|
||||
+ auto* execution_context = ExecutionContext::From(script_state);
|
||||
+ CanvasNoisingHelper::MaybeNoiseSnapshot(execution_context, image_bitmap);
|
||||
+
|
||||
auto* resolver = MakeGarbageCollected<ScriptPromiseResolver<Blob>>(
|
||||
script_state, exception_state.GetContext());
|
||||
CanvasAsyncBlobCreator::ToBlobFunctionType function_type =
|
||||
CanvasAsyncBlobCreator::kOffscreenCanvasConvertToBlobPromise;
|
||||
- auto* execution_context = ExecutionContext::From(script_state);
|
||||
auto* async_creator = MakeGarbageCollected<CanvasAsyncBlobCreator>(
|
||||
image_bitmap, options, function_type, start_time, execution_context,
|
||||
resolver);
|
||||
File diff suppressed because it is too large
Load Diff
@@ -23,7 +23,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -210,6 +210,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -214,6 +214,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
@@ -60,9 +60,9 @@
|
||||
whats_new::LogStartupType(whats_new::StartupType::kIneligible);
|
||||
--- a/tools/gritsettings/resource_ids.spec
|
||||
+++ b/tools/gritsettings/resource_ids.spec
|
||||
@@ -1228,6 +1228,10 @@
|
||||
"META": {"sizes": {"includes": [30],}},
|
||||
"includes": [7480],
|
||||
@@ -1254,6 +1254,10 @@
|
||||
"META": {"sizes": {"includes": [5]}},
|
||||
"includes": [7490],
|
||||
},
|
||||
+ "<(SHARED_INTERMEDIATE_DIR)/components/helium_onboarding/resources.grd": {
|
||||
+ "META": {"sizes": {"includes": [30],}},
|
||||
@@ -73,7 +73,7 @@
|
||||
# START ios/ section.
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8586,6 +8586,7 @@ static_library("browser_generated_files"
|
||||
@@ -8598,6 +8598,7 @@ static_library("browser_generated_files"
|
||||
"//chrome/browser/v8_compile_hints/proto",
|
||||
"//chrome/browser/web_applications/mojom:mojom_web_apps_enum",
|
||||
"//chrome/common/request_header_integrity:buildflags",
|
||||
@@ -83,7 +83,7 @@
|
||||
"//components/webui/chrome_urls/mojom:mojo_bindings",
|
||||
--- a/chrome/chrome_paks.gni
|
||||
+++ b/chrome/chrome_paks.gni
|
||||
@@ -470,11 +470,13 @@ template("chrome_extra_paks") {
|
||||
@@ -474,11 +474,13 @@ template("chrome_extra_paks") {
|
||||
if (!is_android && !is_chromeos) {
|
||||
sources += [
|
||||
"$root_gen_dir/chrome/intro_resources.pak",
|
||||
@@ -109,7 +109,7 @@
|
||||
#endif
|
||||
--- a/chrome/common/webui_url_constants.h
|
||||
+++ b/chrome/common/webui_url_constants.h
|
||||
@@ -604,6 +604,8 @@ inline constexpr char kChromeUIProfilePi
|
||||
@@ -605,6 +605,8 @@ inline constexpr char kChromeUIProfilePi
|
||||
inline constexpr char kChromeUIProfilePickerStartupQuery[] = "startup";
|
||||
inline constexpr char kChromeUIProfilePickerGlicQuery[] = "glic";
|
||||
inline constexpr char kChromeUIProfilePickerUrl[] = "chrome://profile-picker/";
|
||||
@@ -141,7 +141,7 @@
|
||||
#include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
|
||||
#include "chrome/browser/ui/webui/policy/policy_ui.h"
|
||||
#include "chrome/browser/ui/webui/predictors/predictors_ui.h"
|
||||
@@ -419,6 +420,7 @@ void RegisterChromeWebUIConfigs() {
|
||||
@@ -429,6 +430,7 @@ void RegisterChromeWebUIConfigs() {
|
||||
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID)
|
||||
map.AddWebUIConfig(std::make_unique<ManagedUserProfileNoticeUIConfig>());
|
||||
map.AddWebUIConfig(std::make_unique<IntroUIConfig>());
|
||||
@@ -527,12 +527,12 @@
|
||||
url.host() != chrome::kChromeUINetExportHost &&
|
||||
url.host() != chrome::kChromeUINewTabHost &&
|
||||
+ url.host() != chrome::kHeliumSetupHost &&
|
||||
url.host() != chrome::kChromeUIContextualTasksHost &&
|
||||
url.host() != password_manager::kChromeUIPasswordManagerHost;
|
||||
}
|
||||
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1956,6 +1956,12 @@
|
||||
@@ -1971,6 +1971,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SCHEMA_IGNORE" desc="Checkbox label to ignore any future services change alerts">
|
||||
Don't notify me again
|
||||
</message>
|
||||
@@ -547,7 +547,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -360,6 +360,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -364,6 +364,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumServicesOrigin] =
|
||||
settings_api::PrefType::kString;
|
||||
@@ -611,7 +611,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -2119,6 +2119,8 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2145,6 +2145,8 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
|
||||
{"heliumServicesTitle", IDS_SETTINGS_HELIUM_SERVICES},
|
||||
{"heliumServicesDescription", IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1306,6 +1306,10 @@ inline constexpr char
|
||||
@@ -1308,6 +1308,10 @@ inline constexpr char
|
||||
"restricted_managed_guest_session_extension_cleanup_exempt_list";
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
registry->RegisterBooleanPref(prefs::kShowHomeButton, false,
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
@@ -82,12 +82,14 @@
|
||||
#include "chrome/browser/web_applications/policy/web_app_policy_manager.h"
|
||||
@@ -84,12 +84,14 @@
|
||||
#include "chrome/browser/web_applications/web_app_provider.h"
|
||||
#include "chrome/browser/web_applications/web_app_tab_helper.h"
|
||||
#include "chrome/common/chrome_features.h"
|
||||
+#include "chrome/common/pref_names.h"
|
||||
#include "chrome/common/webui_url_constants.h"
|
||||
#include "components/commerce/core/commerce_utils.h"
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "components/reading_list/core/reading_list_model.h"
|
||||
#include "components/tab_groups/tab_group_id.h"
|
||||
#include "components/tab_groups/tab_group_visual_data.h"
|
||||
@@ -1605,7 +1607,11 @@ void TabStripModel::AddTab(std::unique_p
|
||||
@@ -1665,7 +1667,11 @@ void TabStripModel::AddTab(std::unique_p
|
||||
// For all other types, respect what was passed to us, normalizing -1s and
|
||||
// values that are too large.
|
||||
if (index < 0 || index > count()) {
|
||||
@@ -66,17 +66,17 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -521,6 +521,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -519,6 +519,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
{"lightMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_LIGHT_LABEL},
|
||||
{"darkMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_DARK_LABEL},
|
||||
{"systemMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_SYSTEM_LABEL},
|
||||
+ {"openNewTabNextToActive", IDS_SETTINGS_NEW_TAB_NEXT_TO_ACTIVE_BUTTON},
|
||||
{"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
|
||||
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
|
||||
{"allowSplitViewDragAndDrop",
|
||||
{"tabStripPosition", IDS_SETTINGS_TAB_STRIP_POSITION},
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -225,6 +225,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -227,6 +227,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
(*s_allowlist)[::prefs::kUseCustomChromeFrame] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
#endif
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
// Prevent future modification of the scheme lists. This is to prevent
|
||||
--- a/content/renderer/render_thread_impl.cc
|
||||
+++ b/content/renderer/render_thread_impl.cc
|
||||
@@ -879,10 +879,18 @@ void RenderThreadImpl::RegisterSchemes()
|
||||
@@ -878,10 +878,18 @@ void RenderThreadImpl::RegisterSchemes()
|
||||
chrome_scheme);
|
||||
WebSecurityPolicy::RegisterURLSchemeAsWebUI(chrome_scheme);
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser_navigator.cc
|
||||
+++ b/chrome/browser/ui/browser_navigator.cc
|
||||
@@ -562,6 +562,12 @@ base::WeakPtr<content::NavigationHandle>
|
||||
@@ -558,6 +558,12 @@ base::WeakPtr<content::NavigationHandle>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser.cc
|
||||
+++ b/chrome/browser/ui/browser.cc
|
||||
@@ -2240,6 +2240,13 @@ void Browser::SetContentsBounds(WebConte
|
||||
@@ -2245,6 +2245,13 @@ void Browser::SetContentsBounds(WebConte
|
||||
}
|
||||
|
||||
void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
|
||||
@@ -146,7 +146,7 @@
|
||||
std::vector<StatusBubble*> status_bubbles = GetStatusBubbles();
|
||||
for (StatusBubble* status_bubble : status_bubbles) {
|
||||
StatusBubbleViews* status_bubble_views =
|
||||
@@ -2247,7 +2254,7 @@ void Browser::UpdateTargetURL(WebContent
|
||||
@@ -2252,7 +2259,7 @@ void Browser::UpdateTargetURL(WebContent
|
||||
ContentsWebView* anchor =
|
||||
static_cast<ContentsWebView*>(status_bubble_views->base_view());
|
||||
if (source == anchor->GetWebContents()) {
|
||||
@@ -228,7 +228,7 @@
|
||||
// bitmask of FormatUrlTypes, see it for details. |unescape_rules| defines how
|
||||
--- a/chrome/browser/ui/web_applications/app_browser_controller.cc
|
||||
+++ b/chrome/browser/ui/web_applications/app_browser_controller.cc
|
||||
@@ -223,7 +223,8 @@ std::u16string AppBrowserController::For
|
||||
@@ -242,7 +242,8 @@ std::u16string AppBrowserController::For
|
||||
url_formatter::FormatUrlTypes format_types) {
|
||||
auto origin = url::Origin::Create(url);
|
||||
return url_formatter::FormatUrl(origin.opaque() ? url : origin.GetURL(),
|
||||
@@ -318,7 +318,7 @@
|
||||
} // namespace url_formatter
|
||||
--- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
|
||||
+++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
|
||||
@@ -372,7 +372,7 @@ std::string ChromeAutocompleteProviderCl
|
||||
@@ -373,7 +373,7 @@ std::string ChromeAutocompleteProviderCl
|
||||
std::string
|
||||
ChromeAutocompleteProviderClient::GetEmbedderRepresentationOfAboutScheme()
|
||||
const {
|
||||
@@ -342,7 +342,7 @@
|
||||
// Match input about: or |embedderAbout| URL input against builtin URLs.
|
||||
--- a/chrome/browser/ui/browser_commands.cc
|
||||
+++ b/chrome/browser/ui/browser_commands.cc
|
||||
@@ -169,6 +169,7 @@
|
||||
@@ -171,6 +171,7 @@
|
||||
#include "components/tabs/public/tab_interface.h"
|
||||
#include "components/translate/core/browser/language_state.h"
|
||||
#include "components/translate/core/browser/translate_manager.h"
|
||||
@@ -350,7 +350,7 @@
|
||||
#include "components/user_education/common/feature_promo/feature_promo_controller.h"
|
||||
#include "components/web_modal/web_contents_modal_dialog_manager.h"
|
||||
#include "components/webapps/common/web_app_id.h"
|
||||
@@ -2447,7 +2448,12 @@ bool IsDebuggerAttachedToCurrentTab(Brow
|
||||
@@ -2473,7 +2474,12 @@ bool IsDebuggerAttachedToCurrentTab(Brow
|
||||
|
||||
void CopyURL(BrowserWindowInterface* bwi, content::WebContents* web_contents) {
|
||||
ui::ScopedClipboardWriter scw(ui::ClipboardBuffer::kCopyPaste);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/common/chrome_features.cc
|
||||
+++ b/chrome/common/chrome_features.cc
|
||||
@@ -1185,7 +1185,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
|
||||
@@ -1198,7 +1198,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
|
||||
// Automatically enables HTTPS-First Mode in a balanced configuration when
|
||||
// possible.
|
||||
BASE_FEATURE(kHttpsFirstBalancedModeAutoEnable,
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
+#endif // EXTENSIONS_COMMON_MANIFEST_URL_PATCHER_H_
|
||||
--- a/extensions/common/BUILD.gn
|
||||
+++ b/extensions/common/BUILD.gn
|
||||
@@ -456,6 +456,8 @@ static_library("common") {
|
||||
@@ -457,6 +457,8 @@ static_library("common") {
|
||||
"manifest_handlers/webview_info.h",
|
||||
"manifest_url_handlers.cc",
|
||||
"manifest_url_handlers.h",
|
||||
@@ -166,7 +166,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -358,6 +358,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -362,6 +362,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
// Helium services page
|
||||
(*s_allowlist)[::prefs::kHeliumServicesEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -177,7 +177,7 @@
|
||||
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -213,6 +213,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -217,6 +217,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterIntegerPref(prefs::kHeliumSchemaVersion, 0);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
@@ -201,7 +201,7 @@
|
||||
</template>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -2130,6 +2130,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2156,6 +2156,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_DESCRIPTION},
|
||||
{"heliumGotIt", IDS_SETTINGS_GOT_IT},
|
||||
{"heliumSchemaIgnore", IDS_SETTINGS_HELIUM_SCHEMA_IGNORE},
|
||||
@@ -214,7 +214,7 @@
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1984,6 +1984,12 @@
|
||||
@@ -1999,6 +1999,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of all Helium services">
|
||||
When enabled, Helium will be able to connect to anonymous web services to provide additional functionality. When disabled, additional features will not work.
|
||||
</message>
|
||||
@@ -294,7 +294,7 @@
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
--- a/chrome/browser/extensions/BUILD.gn
|
||||
+++ b/chrome/browser/extensions/BUILD.gn
|
||||
@@ -559,6 +559,7 @@ source_set("extensions") {
|
||||
@@ -558,6 +558,7 @@ source_set("extensions") {
|
||||
"//components/enterprise",
|
||||
"//components/guest_view/buildflags",
|
||||
"//components/guest_view/common",
|
||||
@@ -571,7 +571,7 @@
|
||||
// A POST request is sent with an override to GET due to server requirements.
|
||||
--- a/chrome/browser/extensions/webstore_data_fetcher.h
|
||||
+++ b/chrome/browser/extensions/webstore_data_fetcher.h
|
||||
@@ -50,7 +50,8 @@ class WebstoreDataFetcher {
|
||||
@@ -51,7 +51,8 @@ class WebstoreDataFetcher {
|
||||
FetchItemSnippetResponse* mock_response);
|
||||
|
||||
// Starts the request to fetch web store data using the item snippets API.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
@@ -22,8 +22,10 @@
|
||||
@@ -24,8 +24,10 @@
|
||||
#include "base/task/thread_pool.h"
|
||||
#include "base/threading/scoped_blocking_call.h"
|
||||
#include "build/build_config.h"
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "components/spellcheck/browser/spellcheck_platform.h"
|
||||
#include "components/spellcheck/common/spellcheck_common.h"
|
||||
#include "components/spellcheck/common/spellcheck_features.h"
|
||||
@@ -276,15 +278,26 @@ GURL SpellcheckHunspellDictionary::GetDi
|
||||
@@ -277,15 +279,26 @@ GURL SpellcheckHunspellDictionary::GetDi
|
||||
std::string bdict_file = dictionary_file_.path.BaseName().MaybeAsASCII();
|
||||
DCHECK(!bdict_file.empty());
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8261,6 +8261,8 @@ static_library("browser") {
|
||||
@@ -8266,6 +8266,8 @@ static_library("browser") {
|
||||
deps += [
|
||||
"//components/spellcheck/browser",
|
||||
"//components/spellcheck/common",
|
||||
@@ -107,7 +107,7 @@
|
||||
if (!is_android) {
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -362,6 +362,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -366,6 +366,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumBangsEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -118,7 +118,7 @@
|
||||
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -215,6 +215,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -219,6 +219,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumBangsEnabled, true);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumExtProxyEnabled, true);
|
||||
@@ -144,7 +144,7 @@
|
||||
</template>
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1291,6 +1291,9 @@
|
||||
@@ -1306,6 +1306,9 @@
|
||||
<message name="IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED_HELP" desc="Error message when spell dictionary download fails more than once possibly due to a network policy or configuration.">
|
||||
Please check with your network administrator to make sure that the firewall is not blocking downloads from Google servers.
|
||||
</message>
|
||||
@@ -154,7 +154,7 @@
|
||||
</if>
|
||||
</if>
|
||||
<if expr="is_chromeos">
|
||||
@@ -1996,6 +1999,12 @@
|
||||
@@ -2011,6 +2014,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
|
||||
Helium will fetch a list of bangs that help you browse the Internet faster, such as !w or !gh. When disabled, bangs will not work.
|
||||
</message>
|
||||
@@ -169,7 +169,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1241,7 +1241,7 @@ void AddLanguagesStrings(content::WebUID
|
||||
@@ -1256,7 +1256,7 @@ void AddLanguagesStrings(content::WebUID
|
||||
{"languagesDictionaryDownloadError",
|
||||
IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED},
|
||||
{"languagesDictionaryDownloadErrorHelp",
|
||||
@@ -178,7 +178,7 @@
|
||||
#endif
|
||||
#endif // !BUILDFLAG(IS_CHROMEOS)
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -2137,6 +2137,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2163,6 +2163,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
|
||||
{"heliumBangsToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
|
||||
@@ -37,28 +37,12 @@ MojoActionForChromeAction(actions::Actio
|
||||
@@ -42,28 +42,12 @@ MojoActionForChromeAction(actions::Actio
|
||||
return side_panel::customize_chrome::mojom::ActionId::kShowBookmarks;
|
||||
case kActionSidePanelShowHistoryCluster:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kShowHistoryCluster;
|
||||
@@ -29,7 +29,7 @@
|
||||
case kActionShowDownloads:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kShowDownloads;
|
||||
case kActionClearBrowsingData:
|
||||
@@ -97,26 +81,12 @@ std::optional<actions::ActionId> ChromeA
|
||||
@@ -104,26 +88,12 @@ std::optional<actions::ActionId> ChromeA
|
||||
return kActionSidePanelShowBookmarks;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kShowHistoryCluster:
|
||||
return kActionSidePanelShowHistoryCluster;
|
||||
@@ -56,7 +56,7 @@
|
||||
case side_panel::customize_chrome::mojom::ActionId::kShowDownloads:
|
||||
return kActionShowDownloads;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kClearBrowsingData:
|
||||
@@ -291,16 +261,8 @@ void CustomizeToolbarHandler::ListAction
|
||||
@@ -334,16 +304,8 @@ void CustomizeToolbarHandler::ListAction
|
||||
add_action(kActionNewIncognitoWindow,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kNavigation);
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
add_action(kActionSidePanelShowHistoryCluster,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kYourChrome);
|
||||
add_action(kActionShowDownloads,
|
||||
@@ -314,18 +276,12 @@ void CustomizeToolbarHandler::ListAction
|
||||
@@ -357,18 +319,12 @@ void CustomizeToolbarHandler::ListAction
|
||||
}
|
||||
add_action(kActionPrint,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kTools);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--- a/chrome/browser/profiles/profiles_state.cc
|
||||
+++ b/chrome/browser/profiles/profiles_state.cc
|
||||
@@ -326,7 +326,7 @@ std::u16string GetDefaultNameForNewEnter
|
||||
name = base::UTF8ToUTF16(hosted_domain);
|
||||
@@ -328,7 +328,7 @@ std::u16string GetDefaultNameForNewEnter
|
||||
name = base::UTF8ToUTF16(*hosted_domain);
|
||||
} else {
|
||||
name = l10n_util::GetStringUTF16(
|
||||
- IDS_SIGNIN_DICE_WEB_INTERCEPT_ENTERPRISE_PROFILE_NAME);
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
// See http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
||||
--- a/chrome/common/chrome_paths_win.cc
|
||||
+++ b/chrome/common/chrome_paths_win.cc
|
||||
@@ -49,6 +49,14 @@ bool GetDefaultUserDataDirectory(base::F
|
||||
@@ -47,6 +47,14 @@ bool GetDefaultUserDataDirectory(base::F
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
--- a/build/config/chrome_build.gni
|
||||
+++ b/build/config/chrome_build.gni
|
||||
@@ -92,4 +92,4 @@ declare_args() {
|
||||
@@ -104,4 +104,4 @@ declare_args() {
|
||||
|
||||
# Whether to enable built-in branding assets (logos & marketing snippets) for
|
||||
# search providers in choice UIs.
|
||||
-enable_builtin_search_provider_assets = is_chrome_branded
|
||||
-enable_builtin_search_provider_assets = is_internal_chrome_branded
|
||||
+enable_builtin_search_provider_assets = true
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "components/safe_browsing/core/common/features.h"
|
||||
#include "components/safe_browsing/core/common/hashprefix_realtime/hash_realtime_utils.h"
|
||||
#include "components/saved_tab_groups/public/features.h"
|
||||
@@ -2667,14 +2665,9 @@ void AddSearchStrings(content::WebUIData
|
||||
@@ -2714,14 +2712,9 @@ void AddSearchStrings(content::WebUIData
|
||||
html_source->AddString("searchExplanationLearnMoreURL",
|
||||
chrome::kOmniboxLearnMoreURL);
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"saveGuestChoiceText", IDS_SEARCH_ENGINE_CHOICE_GUEST_SESSION_CHECKBOX);
|
||||
--- a/components/regional_capabilities/regional_capabilities_service.cc
|
||||
+++ b/components/regional_capabilities/regional_capabilities_service.cc
|
||||
@@ -167,6 +167,8 @@ std::pair<CountryId, LoadedCountrySource
|
||||
@@ -218,6 +218,8 @@ std::pair<CountryId, LoadedCountrySource
|
||||
// Pass `out_scope_check_outcome` to collect information about the outcome of
|
||||
// the program checks.
|
||||
Program CountryIdToProgram(const CountryId& country_id) {
|
||||
@@ -43,7 +43,7 @@
|
||||
static constexpr Program kCountryDerivedPrograms[] = {
|
||||
#if BUILDFLAG(IS_IOS)
|
||||
// Only iOS can derive Taiyaki scope directly from the country.
|
||||
@@ -290,14 +292,13 @@ RegionalCapabilitiesService::GetRegional
|
||||
@@ -341,14 +343,13 @@ RegionalCapabilitiesService::GetRegional
|
||||
}
|
||||
|
||||
bool RegionalCapabilitiesService::IsInSearchEngineChoiceScreenRegion() {
|
||||
@@ -60,7 +60,7 @@
|
||||
}
|
||||
|
||||
bool RegionalCapabilitiesService::
|
||||
@@ -358,6 +359,7 @@ RegionalCapabilitiesService::GetChoiceSc
|
||||
@@ -454,6 +455,7 @@ RegionalCapabilitiesService::GetChoiceSc
|
||||
}
|
||||
|
||||
bool RegionalCapabilitiesService::IsInEeaCountry() {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
namespace {
|
||||
|
||||
const bool kEnableBuiltinSearchProviderAssets =
|
||||
@@ -1885,18 +1881,6 @@ std::string TemplateURL::GetBuiltinDescr
|
||||
@@ -1929,18 +1925,6 @@ std::string TemplateURL::GetBuiltinDescr
|
||||
}
|
||||
|
||||
std::optional<std::u16string> TemplateURL::GetBuiltinMarketingSnippet() const {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1941,6 +1941,40 @@
|
||||
@@ -1956,6 +1956,40 @@
|
||||
<message name="IDS_SETTINGS_SECURITY_DESCRIPTION" desc="Description of the controls available on the security settings page">
|
||||
Safe Browsing (protection from dangerous sites) and other security settings
|
||||
</message>
|
||||
@@ -43,7 +43,7 @@
|
||||
Google Advanced Protection Program
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -2117,6 +2117,23 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2143,6 +2143,23 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
|
||||
{"securityPageTitle", IDS_SETTINGS_SECURITY},
|
||||
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
|
||||
@@ -69,7 +69,7 @@
|
||||
{"advancedProtectionProgramDesc",
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
|
||||
@@ -67,6 +67,11 @@
|
||||
@@ -58,6 +58,11 @@
|
||||
sub-label="$i18n{siteSettingsSublabel}"
|
||||
on-click="onSiteSettingsLinkRowClick_"
|
||||
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
|
||||
@@ -83,7 +83,7 @@
|
||||
</cr-toast>
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
@@ -47,6 +47,14 @@
|
||||
@@ -39,6 +39,14 @@
|
||||
</settings-privacy-page>
|
||||
</template>
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
routes_.PRIVACY_SANDBOX, currentRoute, inSearchMode)]]"
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
@@ -172,6 +172,12 @@ export class SettingsPrivacyPageElement
|
||||
@@ -165,6 +165,12 @@ export class SettingsPrivacyPageElement
|
||||
Router.getInstance().navigateTo(routes.SITE_SETTINGS);
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
private onSecurityPageClick_() {
|
||||
this.interactedWithPage_();
|
||||
this.metricsBrowserProxy_.recordAction(
|
||||
@@ -254,6 +260,10 @@ export class SettingsPrivacyPageElement
|
||||
@@ -240,6 +246,10 @@ export class SettingsPrivacyPageElement
|
||||
override getFocusConfig() {
|
||||
const map = new Map();
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
if (routes.COOKIES) {
|
||||
map.set(routes.COOKIES.path, '#thirdPartyCookiesLinkRow');
|
||||
}
|
||||
@@ -287,6 +297,9 @@ export class SettingsPrivacyPageElement
|
||||
@@ -267,6 +277,9 @@ export class SettingsPrivacyPageElement
|
||||
override getAssociatedControlFor(childViewId: string): HTMLElement {
|
||||
let triggerId: string|null = null;
|
||||
switch (childViewId) {
|
||||
@@ -142,8 +142,8 @@
|
||||
GLIC_SECTION: Route;
|
||||
+ HELIUM_SERVICES: Route;
|
||||
HISTORY_SEARCH: Route;
|
||||
INCOGNITO_TRACKING_PROTECTIONS: Route;
|
||||
LANGUAGES: Route;
|
||||
MANAGE_PROFILE: Route;
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -18,6 +18,8 @@ function addPrivacyChildRoutes(r: Partia
|
||||
@@ -157,7 +157,7 @@
|
||||
if (visibility.safetyHub !== false) {
|
||||
--- a/chrome/browser/resources/settings/BUILD.gn
|
||||
+++ b/chrome/browser/resources/settings/BUILD.gn
|
||||
@@ -156,6 +156,7 @@ build_webui("build") {
|
||||
@@ -155,6 +155,7 @@ build_webui("build") {
|
||||
"privacy_page/security/security_page_v2.ts",
|
||||
"privacy_page/security/security_page.ts",
|
||||
"privacy_page/security/security_page_feature_row.ts",
|
||||
@@ -165,7 +165,7 @@
|
||||
"privacy_sandbox/privacy_sandbox_ad_measurement_subpage.ts",
|
||||
"privacy_sandbox/privacy_sandbox_fledge_subpage.ts",
|
||||
"privacy_sandbox/privacy_sandbox_interest_item.ts",
|
||||
@@ -390,6 +391,7 @@ build_webui("build") {
|
||||
@@ -392,6 +393,7 @@ build_webui("build") {
|
||||
"languages_page/languages_util.ts",
|
||||
"people_page/import_data_browser_proxy.ts",
|
||||
"people_page/manage_profile_browser_proxy.ts",
|
||||
@@ -260,18 +260,26 @@
|
||||
+ aria-label="$i18n{heliumOriginOverrideLabel}"
|
||||
+ auto-validate
|
||||
+ error-message="Invalid origin"
|
||||
+ spellcheck="false"
|
||||
+ />
|
||||
+ spellcheck="false">
|
||||
+ </cr-input>
|
||||
+ </div>
|
||||
+</div>
|
||||
+</settings-subpage>
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.ts
|
||||
@@ -0,0 +1,97 @@
|
||||
@@ -0,0 +1,105 @@
|
||||
+// Copyright 2025 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
+
|
||||
+import '../controls/settings_toggle_button.js';
|
||||
+import '../settings_page/settings_subpage.js';
|
||||
+import 'chrome://resources/cr_elements/cr_button/cr_button.js';
|
||||
+import 'chrome://resources/cr_elements/cr_checkbox/cr_checkbox.js';
|
||||
+import 'chrome://resources/cr_elements/cr_collapse/cr_collapse.js';
|
||||
+import 'chrome://resources/cr_elements/cr_icon/cr_icon.js';
|
||||
+import 'chrome://resources/cr_elements/cr_input/cr_input.js';
|
||||
+
|
||||
+import {PrefsMixin} from '/shared/settings/prefs/prefs_mixin.js';
|
||||
+import {HelpBubbleMixin} from 'chrome://resources/cr_components/help_bubble/help_bubble_mixin.js';
|
||||
+import type {CrInputElement} from 'chrome://resources/cr_elements/cr_input/cr_input.js';
|
||||
@@ -367,7 +375,7 @@
|
||||
+customElements.define(SettingsHeliumServicesPageElement.is, SettingsHeliumServicesPageElement);
|
||||
--- a/chrome/browser/resources/settings/lazy_load.ts
|
||||
+++ b/chrome/browser/resources/settings/lazy_load.ts
|
||||
@@ -25,6 +25,7 @@ import './privacy_page/privacy_guide/pri
|
||||
@@ -26,6 +26,7 @@ import './privacy_page/privacy_guide/pri
|
||||
import './privacy_page/security/security_keys_subpage.js';
|
||||
import './privacy_page/security/security_page_v2.js';
|
||||
import './privacy_page/security/security_page.js';
|
||||
@@ -375,8 +383,8 @@
|
||||
import './privacy_sandbox/privacy_sandbox_ad_measurement_subpage.js';
|
||||
import './privacy_sandbox/privacy_sandbox_fledge_subpage.js';
|
||||
import './privacy_sandbox/privacy_sandbox_interest_item.js';
|
||||
@@ -244,6 +245,7 @@ export {SecurityKeysSubpageElement} from
|
||||
export {HttpsFirstModeSetting, SafeBrowsingSetting, SettingsSecurityPageElement} from './privacy_page/security/security_page.js';
|
||||
@@ -246,6 +247,7 @@ export {SafeBrowsingSetting} from './pri
|
||||
export {HttpsFirstModeSetting, SettingsSecurityPageElement} from './privacy_page/security/security_page.js';
|
||||
export {SecurityPageFeatureRowElement} from './privacy_page/security/security_page_feature_row.js';
|
||||
export {SecuritySettingsBundleSetting, SettingsSecurityPageV2Element} from './privacy_page/security/security_page_v2.js';
|
||||
+export {SettingsHeliumServicesPageElement} from './privacy_page/services_page.js';
|
||||
@@ -393,7 +401,7 @@
|
||||
#include "components/policy/core/common/policy_pref_names.h"
|
||||
#include "components/pref_registry/pref_registry_syncable.h"
|
||||
#include "components/prefs/pref_registry_simple.h"
|
||||
@@ -204,6 +205,13 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -208,6 +209,13 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
false);
|
||||
#endif
|
||||
|
||||
@@ -417,7 +425,7 @@
|
||||
#include "components/language/core/browser/pref_names.h"
|
||||
#include "components/live_caption/pref_names.h"
|
||||
#include "components/media_router/common/pref_names.h"
|
||||
@@ -354,6 +355,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -358,6 +359,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kString;
|
||||
#endif
|
||||
|
||||
@@ -745,10 +753,10 @@
|
||||
+#endif // COMPONENTS_HELIUM_SERVICES_SCHEMA_H_
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -1296,6 +1296,8 @@ static_library("ui") {
|
||||
"webui/settings/saved_info_handler.h",
|
||||
"webui/settings/search_engines_handler.cc",
|
||||
@@ -1298,6 +1298,8 @@ static_library("ui") {
|
||||
"webui/settings/search_engines_handler.h",
|
||||
"webui/settings/security_settings_provider.cc",
|
||||
"webui/settings/security_settings_provider.h",
|
||||
+ "webui/settings/services_schema_handler.cc",
|
||||
+ "webui/settings/services_schema_handler.h",
|
||||
"webui/settings/settings_clear_browsing_data_handler.cc",
|
||||
@@ -817,15 +825,15 @@
|
||||
+}
|
||||
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
@@ -76,6 +76,7 @@
|
||||
#include "chrome/browser/ui/webui/settings/safety_hub_handler.h"
|
||||
@@ -77,6 +77,7 @@
|
||||
#include "chrome/browser/ui/webui/settings/saved_info_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/search_engines_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/security_settings_provider.h"
|
||||
+#include "chrome/browser/ui/webui/settings/services_schema_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/settings_localized_strings_provider.h"
|
||||
#include "chrome/browser/ui/webui/settings/settings_media_devices_selection_handler.h"
|
||||
@@ -252,6 +253,8 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
@@ -260,6 +261,8 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
AddSettingsPageUIHandler(std::make_unique<ProtocolHandlersHandler>(profile));
|
||||
AddSettingsPageUIHandler(std::make_unique<PrivacySandboxHandler>());
|
||||
AddSettingsPageUIHandler(std::make_unique<SearchEnginesHandler>(profile));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/chromium_strings.grd
|
||||
+++ b/chrome/app/chromium_strings.grd
|
||||
@@ -956,6 +956,10 @@ Chromium is unable to recover your setti
|
||||
@@ -953,6 +953,10 @@ Chromium is unable to recover your setti
|
||||
Customize and control Chromium. Update is available.
|
||||
</message>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<message name="IDS_APPMENU_TOOLTIP_ALERT" desc="The tooltip to show for the browser menu when a non-update alert is displayed">
|
||||
Customize and control Chromium. Something needs your attention - click for details.
|
||||
</message>
|
||||
@@ -1620,6 +1624,11 @@ Chromium is unable to recover your setti
|
||||
@@ -1629,6 +1633,11 @@ Chromium is unable to recover your setti
|
||||
Chromium couldn't update to the latest version, so you're missing out on new features and security fixes.
|
||||
</message>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
Update Chromium
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -13186,6 +13186,9 @@ Check your passwords anytime in <ph name
|
||||
@@ -13334,6 +13334,9 @@ Check your passwords anytime in <ph name
|
||||
<message name="IDS_APP_MENU_BUTTON_UPDATE" desc="Short label next to app-menu button when an update is available.">
|
||||
Update
|
||||
</message>
|
||||
@@ -37,7 +37,7 @@
|
||||
Finish update
|
||||
--- a/chrome/app/chrome_command_ids.h
|
||||
+++ b/chrome/app/chrome_command_ids.h
|
||||
@@ -301,6 +301,7 @@
|
||||
@@ -304,6 +304,7 @@
|
||||
#define IDC_SHOW_COMMENTS_SIDE_PANEL 40297
|
||||
#define IDC_RECENT_TABS_SEE_DEVICE_TABS 40298
|
||||
#define IDC_SHOW_AI_MODE_OMNIBOX_BUTTON 40299
|
||||
@@ -57,7 +57,7 @@
|
||||
void ShowPrivacySandboxSettings(Browser* browser);
|
||||
--- a/chrome/browser/ui/chrome_pages.cc
|
||||
+++ b/chrome/browser/ui/chrome_pages.cc
|
||||
@@ -615,6 +615,11 @@ void ShowAboutChrome(Browser* browser) {
|
||||
@@ -616,6 +616,11 @@ void ShowAboutChrome(Browser* browser) {
|
||||
ShowSingletonTabIgnorePathOverwriteNTP(browser, GURL(kChromeUIHelpURL));
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
ShowSettingsSubPage(browser, kSearchEnginesSubPage);
|
||||
--- a/chrome/browser/ui/browser_command_controller.cc
|
||||
+++ b/chrome/browser/ui/browser_command_controller.cc
|
||||
@@ -1067,6 +1067,9 @@ bool BrowserCommandController::ExecuteCo
|
||||
@@ -1093,6 +1093,9 @@ bool BrowserCommandController::ExecuteCo
|
||||
case IDC_UPGRADE_DIALOG:
|
||||
OpenUpdateChromeDialog(browser_);
|
||||
break;
|
||||
@@ -81,7 +81,7 @@
|
||||
case IDC_OPEN_SAFETY_HUB:
|
||||
ShowSettingsSubPage(browser_->GetBrowserForOpeningWebUi(),
|
||||
chrome::kSafetyHubSubPage);
|
||||
@@ -1631,6 +1634,7 @@ void BrowserCommandController::InitComma
|
||||
@@ -1682,6 +1685,7 @@ void BrowserCommandController::InitComma
|
||||
|
||||
// These are always enabled; the menu determines their menu item visibility.
|
||||
command_updater_.UpdateCommandEnabled(IDC_UPGRADE_DIALOG, true);
|
||||
@@ -91,7 +91,7 @@
|
||||
// Safety Hub commands.
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
@@ -281,6 +281,9 @@ class AppMenuModel : public ui::SimpleMe
|
||||
@@ -288,6 +288,9 @@ class AppMenuModel : public ui::SimpleMe
|
||||
// boolean indicating whether any menu items were added.
|
||||
bool AddDefaultBrowserMenuItems();
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
[[nodiscard]] bool AddSafetyHubMenuItem();
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
@@ -104,6 +104,7 @@
|
||||
@@ -103,6 +103,7 @@
|
||||
#include "components/dom_distiller/core/url_utils.h"
|
||||
#include "components/feature_engagement/public/event_constants.h"
|
||||
#include "components/feature_engagement/public/feature_constants.h"
|
||||
@@ -111,7 +111,7 @@
|
||||
#include "components/lens/lens_features.h"
|
||||
#include "components/omnibox/browser/vector_icons.h"
|
||||
#include "components/password_manager/content/common/web_ui_constants.h"
|
||||
@@ -2062,7 +2063,8 @@ bool AppMenuModel::AddGlobalErrorMenuIte
|
||||
@@ -2100,7 +2101,8 @@ bool AppMenuModel::AddGlobalErrorMenuIte
|
||||
// how update the menu if new errors are added.
|
||||
const GlobalErrorService::GlobalErrorList& errors =
|
||||
GlobalErrorServiceFactory::GetForProfile(browser_->profile())->errors();
|
||||
@@ -121,7 +121,7 @@
|
||||
for (GlobalError* error : errors) {
|
||||
DCHECK(error);
|
||||
if (error->HasMenuItem()) {
|
||||
@@ -2126,6 +2128,22 @@ bool AppMenuModel::AddSafetyHubMenuItem(
|
||||
@@ -2164,6 +2166,22 @@ bool AppMenuModel::AddSafetyHubMenuItem(
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,61 +1,3 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -103,14 +103,14 @@ BASE_FEATURE(kReloadSelectionModel, base
|
||||
// Enforces close tab hotkey to only close the active view of a split tab,
|
||||
// when it is the only tab in selection model.
|
||||
BASE_FEATURE(kCloseActiveTabInSplitViewViaHotkey,
|
||||
- base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+ base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
// Add tab group colours when viewing tab groups using the top mac OS menu bar.
|
||||
BASE_FEATURE(kShowTabGroupsMacSystemMenu, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
#endif // BUILDFLAG(IS_MAC)
|
||||
|
||||
-BASE_FEATURE(kSideBySide, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kSideBySide, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
// The delay before showing the drop target for the side-by-side drag-and-drop
|
||||
// entrypoint.
|
||||
@@ -148,17 +148,17 @@ BASE_FEATURE_PARAM(int,
|
||||
kSideBySideDropTargetMinWidth,
|
||||
&kSideBySide,
|
||||
"drop_target_min_width",
|
||||
- 120);
|
||||
+ 50);
|
||||
BASE_FEATURE_PARAM(int,
|
||||
kSideBySideDropTargetMaxWidth,
|
||||
&kSideBySide,
|
||||
"drop_target_max_width",
|
||||
- 360);
|
||||
+ 200);
|
||||
BASE_FEATURE_PARAM(int,
|
||||
kSideBySideDropTargetTargetWidthPercentage,
|
||||
&kSideBySide,
|
||||
"drop_target_width_percentage",
|
||||
- 30);
|
||||
+ 10);
|
||||
BASE_FEATURE_PARAM(int,
|
||||
kSideBySideDropTargetForLinkTargetWidthPercentage,
|
||||
&kSideBySide,
|
||||
@@ -264,7 +264,7 @@ BASE_FEATURE_PARAM(int,
|
||||
|
||||
// When enabled along with SideBySide flag, split tabs will be restored on
|
||||
// startup.
|
||||
-BASE_FEATURE(kSideBySideSessionRestore, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kSideBySideSessionRestore, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
bool IsRestoringSplitViewEnabled() {
|
||||
return base::FeatureList::IsEnabled(features::kSideBySide) &&
|
||||
@@ -273,7 +273,7 @@ bool IsRestoringSplitViewEnabled() {
|
||||
|
||||
BASE_FEATURE(kSideBySideLinkMenuNewBadge, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
-BASE_FEATURE(kSideBySideKeyboardShortcut, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kSideBySideKeyboardShortcut, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
bool IsSideBySideKeyboardShortcutEnabled() {
|
||||
return base::FeatureList::IsEnabled(features::kSideBySide) &&
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_resize_area.cc
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_resize_area.cc
|
||||
@@ -24,8 +24,8 @@
|
||||
@@ -88,7 +30,7 @@
|
||||
|
||||
MultiContentsView(BrowserView* browser_view,
|
||||
std::unique_ptr<MultiContentsViewDelegate> delegate);
|
||||
@@ -168,10 +167,6 @@ class MultiContentsView : public views::
|
||||
@@ -163,10 +162,6 @@ class MultiContentsView : public views::
|
||||
return contents_container_views_[1]->contents_view();
|
||||
}
|
||||
|
||||
@@ -99,7 +41,7 @@
|
||||
MultiContentsBackgroundView* background_view_for_testing() const {
|
||||
return background_view_;
|
||||
}
|
||||
@@ -280,10 +275,6 @@ class MultiContentsView : public views::
|
||||
@@ -275,10 +270,6 @@ class MultiContentsView : public views::
|
||||
// Nullopt if not currently resizing.
|
||||
std::optional<double> initial_start_width_on_resize_;
|
||||
|
||||
@@ -144,7 +86,7 @@
|
||||
SetLayoutManager(std::make_unique<views::DelegatingLayoutManager>(this));
|
||||
SetProperty(views::kElementIdentifierKey, kMultiContentsViewElementId);
|
||||
|
||||
@@ -360,11 +355,8 @@ void MultiContentsView::OnResize(int res
|
||||
@@ -336,11 +331,8 @@ void MultiContentsView::OnResize(int res
|
||||
std::make_optional(contents_container_views_[0]->size().width());
|
||||
}
|
||||
double total_width = contents_container_views_[0]->size().width() +
|
||||
@@ -157,7 +99,7 @@
|
||||
static_cast<double>(resize_amount));
|
||||
|
||||
// If end_width is within the snap point widths, update to the snap point.
|
||||
@@ -473,11 +465,6 @@ views::ProposedLayout MultiContentsView:
|
||||
@@ -449,11 +441,6 @@ views::ProposedLayout MultiContentsView:
|
||||
gfx::Rect end_rect(resize_rect.top_right(),
|
||||
gfx::Size(widths.end_width, available_space.height()));
|
||||
|
||||
@@ -169,7 +111,7 @@
|
||||
layouts.child_layouts.emplace_back(contents_container_views_[0],
|
||||
contents_container_views_[0]->GetVisible(),
|
||||
start_rect);
|
||||
@@ -612,8 +599,10 @@ MultiContentsView::ViewWidths MultiConte
|
||||
@@ -588,8 +575,10 @@ MultiContentsView::ViewWidths MultiConte
|
||||
widths.resize_width = resize_area_->GetPreferredSize().width();
|
||||
widths.start_width =
|
||||
start_ratio_ * (available_space.width() - widths.resize_width);
|
||||
@@ -181,7 +123,7 @@
|
||||
} else {
|
||||
CHECK(!contents_container_views_[1]->GetVisible());
|
||||
widths.start_width = available_space.width();
|
||||
@@ -675,10 +664,6 @@ void MultiContentsView::SetShouldShowTop
|
||||
@@ -651,10 +640,6 @@ void MultiContentsView::SetShouldShowTop
|
||||
return;
|
||||
}
|
||||
contents_separators_.should_show_top = should_show;
|
||||
@@ -190,29 +132,29 @@
|
||||
- end_contents_view_inset_.set_top(
|
||||
- should_show ? 0 : MultiContentsView::kSplitViewContentInset);
|
||||
|
||||
InvalidateLayout();
|
||||
}
|
||||
@@ -688,8 +673,6 @@ void MultiContentsView::SetShouldShowLea
|
||||
// This can be called during BrowserView layout, so protect against creating a
|
||||
// layout loop.
|
||||
@@ -666,8 +651,6 @@ void MultiContentsView::SetShouldShowLea
|
||||
return;
|
||||
}
|
||||
contents_separators_.should_show_leading = should_show;
|
||||
- start_contents_view_inset_.set_left(
|
||||
- should_show ? 0 : MultiContentsView::kSplitViewContentInset);
|
||||
|
||||
InvalidateLayout();
|
||||
}
|
||||
@@ -699,8 +682,6 @@ void MultiContentsView::SetShouldShowTra
|
||||
// This can be called during BrowserView layout, so protect against creating a
|
||||
// layout loop.
|
||||
@@ -679,8 +662,6 @@ void MultiContentsView::SetShouldShowTra
|
||||
return;
|
||||
}
|
||||
contents_separators_.should_show_trailing = should_show;
|
||||
- end_contents_view_inset_.set_right(
|
||||
- should_show ? 0 : MultiContentsView::kSplitViewContentInset);
|
||||
|
||||
InvalidateLayout();
|
||||
}
|
||||
// This can be called during BrowserView layout, so protect against creating a
|
||||
// layout loop.
|
||||
--- a/chrome/browser/ui/views/frame/contents_container_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/contents_container_view.cc
|
||||
@@ -20,7 +20,6 @@
|
||||
@@ -21,7 +21,6 @@
|
||||
#include "chrome/browser/ui/views/frame/contents_container_outline.h"
|
||||
#include "chrome/browser/ui/views/frame/contents_separator.h"
|
||||
#include "chrome/browser/ui/views/frame/contents_web_view.h"
|
||||
@@ -220,7 +162,7 @@
|
||||
#include "chrome/browser/ui/views/frame/scrim_view.h"
|
||||
#include "chrome/browser/ui/views/frame/tab_modal_dialog_host.h"
|
||||
#include "chrome/browser/ui/views/frame/top_container_view.h"
|
||||
@@ -52,10 +51,6 @@
|
||||
@@ -54,10 +53,6 @@
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
@@ -503,15 +445,15 @@
|
||||
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -141,7 +141,6 @@
|
||||
@@ -143,7 +143,6 @@
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_view.h"
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_view_delegate.h"
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_view_drop_target_controller.h"
|
||||
-#include "chrome/browser/ui/views/frame/multi_contents_view_mini_toolbar.h"
|
||||
#include "chrome/browser/ui/views/frame/scrim_view.h"
|
||||
#include "chrome/browser/ui/views/frame/shadow_overlay_view.h"
|
||||
#include "chrome/browser/ui/views/frame/tab_modal_dialog_host.h"
|
||||
#include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
|
||||
@@ -2281,12 +2280,6 @@ void BrowserView::UpdateToolbar(content:
|
||||
@@ -2322,12 +2321,6 @@ void BrowserView::UpdateToolbar(content:
|
||||
if (toolbar_) {
|
||||
toolbar_->Update(contents);
|
||||
}
|
||||
@@ -593,32 +535,3 @@
|
||||
|
||||
raw_ptr<TabStripModel> tab_strip_model_ = nullptr;
|
||||
|
||||
--- a/chrome/browser/ui/browser_commands.cc
|
||||
+++ b/chrome/browser/ui/browser_commands.cc
|
||||
@@ -574,8 +574,12 @@ void ReloadInternal(BrowserWindowInterfa
|
||||
WebContents* const active_contents = tab_strip_model->GetActiveWebContents();
|
||||
|
||||
std::vector<WebContents*> tabs_to_reload;
|
||||
+ const bool only_active_split_tab_selected =
|
||||
+ browser->GetTabStripModel()->IsActiveTabSplit() &&
|
||||
+ browser->GetTabStripModel()->selection_model().size() == 2;
|
||||
|
||||
- if (base::FeatureList::IsEnabled(features::kReloadSelectionModel)) {
|
||||
+ if (base::FeatureList::IsEnabled(features::kReloadSelectionModel) ||
|
||||
+ only_active_split_tab_selected) {
|
||||
tabs_to_reload.push_back(active_contents);
|
||||
} else {
|
||||
// Reloading a tab may change the selection (see crbug.com/339061099), so
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -4983,8 +4983,8 @@ void RenderViewContextMenu::OpenLinkInSp
|
||||
|
||||
TabStripModel* const tab_strip_model = browser->tab_strip_model();
|
||||
tabs::TabInterface* const source_tab =
|
||||
- tabs::TabInterface::GetFromContents(source_web_contents_);
|
||||
- if (source_tab->IsSplit()) {
|
||||
+ tabs::TabInterface::MaybeGetFromContents(source_web_contents_);
|
||||
+ if (source_tab && source_tab->IsSplit()) {
|
||||
// Navigate the inactive tab to the URL
|
||||
const split_tabs::SplitTabId split_id = source_tab->GetSplit().value();
|
||||
for (tabs::TabInterface* tab :
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1310,6 +1310,10 @@ inline constexpr char
|
||||
@@ -1312,6 +1312,10 @@ inline constexpr char
|
||||
// instead of tab strip end.
|
||||
inline constexpr char kNewTabNextToActive[] = "helium.browser.new_tab_next_to_active";
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
registry->RegisterBooleanPref(prefs::kShowHomeButton, false,
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
@@ -1704,11 +1704,11 @@ void TabStripModel::CloseSelectedTabs()
|
||||
@@ -1764,11 +1764,11 @@ void TabStripModel::CloseSelectedTabs()
|
||||
}
|
||||
|
||||
void TabStripModel::SelectNextTab(TabStripUserGestureDetails detail) {
|
||||
@@ -38,7 +38,7 @@
|
||||
}
|
||||
|
||||
void TabStripModel::SelectLastTab(TabStripUserGestureDetails detail) {
|
||||
@@ -3710,6 +3710,18 @@ TabStripSelectionChange TabStripModel::S
|
||||
@@ -3817,6 +3817,18 @@ TabStripSelectionChange TabStripModel::S
|
||||
return selection;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
if (mru_cycle_list_.empty()) {
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
@@ -1143,6 +1143,11 @@ class TabStripModel {
|
||||
@@ -1172,6 +1172,11 @@ class TabStripModel {
|
||||
kPrevious,
|
||||
};
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
void SelectMRUTab(TabRelativeDirection direction,
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -228,6 +228,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -230,6 +230,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
|
||||
(*s_allowlist)[::prefs::kNewTabNextToActive] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -96,14 +96,14 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -522,6 +522,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -520,6 +520,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
{"darkMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_DARK_LABEL},
|
||||
{"systemMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_SYSTEM_LABEL},
|
||||
{"openNewTabNextToActive", IDS_SETTINGS_NEW_TAB_NEXT_TO_ACTIVE_BUTTON},
|
||||
+ {"cycleTabsInMRUOrder", IDS_SETTINGS_CYCLE_TABS_IN_MRU_ORDER},
|
||||
{"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
|
||||
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
|
||||
{"allowSplitViewDragAndDrop",
|
||||
{"tabStripPosition", IDS_SETTINGS_TAB_STRIP_POSITION},
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
|
||||
@@ -6,6 +6,11 @@
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -366,6 +366,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -370,6 +370,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumUpdateFetchingEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -68,7 +68,7 @@
|
||||
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -220,6 +220,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -224,6 +224,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumUpdateFetchingEnabled, true);
|
||||
@@ -78,7 +78,7 @@
|
||||
registry->RegisterBooleanPref(
|
||||
--- a/chrome/browser/extensions/extension_service.cc
|
||||
+++ b/chrome/browser/extensions/extension_service.cc
|
||||
@@ -33,6 +33,7 @@
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/syslog_logging.h"
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
@@ -86,7 +86,7 @@
|
||||
#include "base/threading/thread_restrictions.h"
|
||||
#include "base/time/time.h"
|
||||
#include "base/trace_event/trace_event.h"
|
||||
@@ -72,6 +73,9 @@
|
||||
@@ -70,6 +71,9 @@
|
||||
#include "chrome/common/pref_names.h"
|
||||
#include "chrome/common/url_constants.h"
|
||||
#include "components/crx_file/id_util.h"
|
||||
@@ -96,7 +96,7 @@
|
||||
#include "components/policy/core/common/policy_pref_names.h"
|
||||
#include "components/supervised_user/core/browser/supervised_user_preferences.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
@@ -206,6 +210,7 @@ ExtensionService::ExtensionService(
|
||||
@@ -205,6 +209,7 @@ ExtensionService::ExtensionService(
|
||||
ready_(ready),
|
||||
updater_(ExtensionUpdater::Get(profile)),
|
||||
component_loader_(ComponentLoader::Get(profile_)),
|
||||
@@ -104,7 +104,7 @@
|
||||
error_controller_(error_controller),
|
||||
external_install_manager_(ExternalInstallManager::Get(profile)),
|
||||
extension_registrar_delegate_(
|
||||
@@ -279,6 +284,33 @@ ExtensionService::ExtensionService(
|
||||
@@ -278,6 +283,33 @@ ExtensionService::ExtensionService(
|
||||
prefs::kExtensionsUIDeveloperMode,
|
||||
base::BindRepeating(&ExtensionService::OnDeveloperModePrefChanged,
|
||||
base::Unretained(this)));
|
||||
@@ -140,7 +140,7 @@
|
||||
base::WeakPtr<ExtensionServiceInterface> ExtensionService::AsWeakPtr() {
|
||||
--- a/chrome/browser/extensions/extension_service.h
|
||||
+++ b/chrome/browser/extensions/extension_service.h
|
||||
@@ -165,6 +165,8 @@ class ExtensionService : public Extensio
|
||||
@@ -164,6 +164,8 @@ class ExtensionService : public Extensio
|
||||
// KeyedService two-phase shutdown.
|
||||
void Shutdown();
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
// Performs action based on verdicts received from the Extension Telemetry
|
||||
// server. Currently, these verdicts are limited to off-store extensions.
|
||||
void PerformActionBasedOnExtensionTelemetryServiceVerdicts(
|
||||
@@ -355,6 +357,8 @@ class ExtensionService : public Extensio
|
||||
@@ -354,6 +356,8 @@ class ExtensionService : public Extensio
|
||||
// Used in test to ensure the service's shutdown method has been called.
|
||||
bool is_shut_down_executed_ = false;
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
"//content/public/browser",
|
||||
--- a/extensions/browser/api/storage/storage_frontend.cc
|
||||
+++ b/extensions/browser/api/storage/storage_frontend.cc
|
||||
@@ -25,6 +25,8 @@
|
||||
@@ -20,6 +20,8 @@
|
||||
#include "base/strings/string_util.h"
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "base/trace_event/trace_event.h"
|
||||
@@ -179,7 +179,7 @@
|
||||
#include "components/value_store/value_store_factory.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
@@ -222,6 +224,24 @@ void StorageFrontend::OnReadFinished(
|
||||
@@ -217,6 +219,24 @@ void StorageFrontend::OnReadFinished(
|
||||
|
||||
if (success) {
|
||||
get_result.data = result.PassSettings();
|
||||
@@ -217,7 +217,7 @@
|
||||
if ( bin.assetSourceRegistry instanceof Object ) {
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -2018,6 +2018,12 @@
|
||||
@@ -2033,6 +2033,12 @@
|
||||
Helium will automatically download and install browser and component updates as they become available. We recommend keeping this setting enabled to ensure you get the latest features and security updates. Automatic core browser updates are not available on this platform yet, but component updates are. Please use external software to keep Helium up to date.
|
||||
</message>
|
||||
</if>
|
||||
@@ -246,7 +246,7 @@
|
||||
</template>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -2144,6 +2144,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2170,6 +2170,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_HELIUM_SERVICES_UPDATE},
|
||||
{"heliumUpdatesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION},
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
// Separate ChromeOS list, as it is quite large.
|
||||
--- a/ui/base/resource/resource_bundle.cc
|
||||
+++ b/ui/base/resource/resource_bundle.cc
|
||||
@@ -764,7 +764,7 @@ base::RefCountedMemory* ResourceBundle::
|
||||
@@ -762,7 +762,7 @@ base::RefCountedMemory* ResourceBundle::
|
||||
|
||||
std::string_view data = GetRawDataResourceForScale(resource_id, scale_factor);
|
||||
if (data.empty())
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "chrome/browser/extensions/component_loader.h"
|
||||
#include "chrome/browser/extensions/corrupted_extension_reinstaller.h"
|
||||
#include "chrome/browser/extensions/data_deleter.h"
|
||||
@@ -31,6 +32,9 @@
|
||||
@@ -30,6 +31,9 @@
|
||||
#include "chrome/browser/ui/webui/favicon_source.h"
|
||||
#include "chrome/common/webui_url_constants.h"
|
||||
#include "components/favicon_base/favicon_url_parser.h"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
namespace extensions {
|
||||
struct InstallWarning;
|
||||
@@ -90,6 +91,10 @@ class Manifest final {
|
||||
@@ -104,6 +105,10 @@ class Manifest final {
|
||||
location == mojom::ManifestLocation::kExternalComponent;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
location <= mojom::ManifestLocation::kMaxValue;
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -6212,7 +6212,8 @@ void AddChromeSchemeFactories(
|
||||
@@ -6223,7 +6223,8 @@ void AddChromeSchemeFactories(
|
||||
std::vector<std::string> allowed_webui_hosts;
|
||||
// Support for chrome:// scheme if appropriate.
|
||||
if ((extension->is_extension() || extension->is_platform_app()) &&
|
||||
@@ -165,7 +165,7 @@
|
||||
#include "components/pref_registry/pref_registry_syncable.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "components/supervised_user/core/common/buildflags.h"
|
||||
@@ -694,11 +695,18 @@ bool ExtensionPrefs::ReadPrefAsBoolean(c
|
||||
@@ -701,11 +702,18 @@ bool ExtensionPrefs::ReadPrefAsBoolean(c
|
||||
std::string_view pref_key,
|
||||
bool* out_value) const {
|
||||
const base::Value::Dict* ext = GetExtensionPref(extension_id);
|
||||
@@ -187,7 +187,7 @@
|
||||
if (!value) {
|
||||
return false;
|
||||
}
|
||||
@@ -1135,6 +1143,9 @@ void ExtensionPrefs::ClearInapplicableDi
|
||||
@@ -1142,6 +1150,9 @@ void ExtensionPrefs::ClearInapplicableDi
|
||||
const DisableReasonSet kAllowDisableReasons = {
|
||||
disable_reason::DISABLE_RELOAD,
|
||||
disable_reason::DISABLE_UNSUPPORTED_REQUIREMENT,
|
||||
@@ -197,7 +197,7 @@
|
||||
disable_reason::DISABLE_CORRUPTED, disable_reason::DISABLE_REINSTALL};
|
||||
|
||||
const base::flat_set<int> current_disable_reasons =
|
||||
@@ -2219,6 +2230,7 @@ void ExtensionPrefs::RegisterProfilePref
|
||||
@@ -2226,6 +2237,7 @@ void ExtensionPrefs::RegisterProfilePref
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterDictionaryPref(pref_names::kExtensions);
|
||||
registry->RegisterListPref(pref_names::kPinnedExtensions,
|
||||
@@ -205,7 +205,7 @@
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterListPref(pref_names::kDeletedComponentExtensions);
|
||||
registry->RegisterDictionaryPref(kExtensionsBlocklistUpdate);
|
||||
@@ -2299,14 +2311,14 @@ bool ExtensionPrefs::GetUserExtensionPre
|
||||
@@ -2306,14 +2318,14 @@ bool ExtensionPrefs::GetUserExtensionPre
|
||||
ExtensionIdContainer* id_container_out) const {
|
||||
DCHECK(id_container_out->empty());
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
+ ))
|
||||
--- a/tools/gritsettings/resource_ids.spec
|
||||
+++ b/tools/gritsettings/resource_ids.spec
|
||||
@@ -206,7 +206,7 @@
|
||||
@@ -213,7 +213,7 @@
|
||||
"META": {"sizes": {"includes": [500]}},
|
||||
"includes": [2850],
|
||||
},
|
||||
@@ -114,7 +114,7 @@
|
||||
"//ui/base/unowned_user_data",
|
||||
--- a/chrome/chrome_paks.gni
|
||||
+++ b/chrome/chrome_paks.gni
|
||||
@@ -150,6 +150,7 @@ template("chrome_extra_paks") {
|
||||
@@ -152,6 +152,7 @@ template("chrome_extra_paks") {
|
||||
"$root_gen_dir/third_party/blink/public/resources/blink_resources.pak",
|
||||
"$root_gen_dir/third_party/blink/public/resources/inspector_overlay_resources.pak",
|
||||
"$root_gen_dir/third_party/blink/public/strings/permission_element_generated_strings.pak",
|
||||
@@ -122,7 +122,7 @@
|
||||
"$root_gen_dir/ui/resources/ui_lottie_resources.pak",
|
||||
"$root_gen_dir/ui/webui/resources/webui_resources.pak",
|
||||
]
|
||||
@@ -172,6 +173,7 @@ template("chrome_extra_paks") {
|
||||
@@ -175,6 +176,7 @@ template("chrome_extra_paks") {
|
||||
"//third_party/blink/public:devtools_inspector_resources",
|
||||
"//third_party/blink/public:resources",
|
||||
"//third_party/blink/public/strings:permission_element_generated_strings",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/tools/licenses/licenses.py
|
||||
+++ b/tools/licenses/licenses.py
|
||||
@@ -1093,8 +1093,8 @@ def GenerateCredits(args, metadatas):
|
||||
@@ -1091,8 +1091,8 @@ def GenerateCredits(args, metadatas):
|
||||
entries_contents = '\n'.join([entry['content'] for entry in entries])
|
||||
|
||||
reciprocal_contents = EvaluateTemplate(reciprocal_template, {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#if defined(USE_AURA)
|
||||
registry->RegisterBooleanPref(prefs::kOverscrollHistoryNavigationEnabled,
|
||||
@@ -153,7 +153,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -157,7 +157,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
// We need to register the type of these preferences in order to query
|
||||
// them even though they're only typically controlled via policy.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -145,7 +145,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -149,7 +149,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
false);
|
||||
#endif
|
||||
registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/policy/chrome_browser_policy_connector.cc
|
||||
+++ b/chrome/browser/policy/chrome_browser_policy_connector.cc
|
||||
@@ -31,6 +31,7 @@
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
|
||||
#include "components/policy/core/common/command_line_policy_provider.h"
|
||||
#include "components/policy/core/common/configuration_policy_provider.h"
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "components/policy/core/common/local_test_policy_provider.h"
|
||||
#include "components/policy/core/common/policy_logger.h"
|
||||
#include "components/policy/core/common/policy_map.h"
|
||||
@@ -284,6 +285,12 @@ void ChromeBrowserPolicyConnector::SetDe
|
||||
@@ -283,6 +284,12 @@ void ChromeBrowserPolicyConnector::SetDe
|
||||
std::vector<std::unique_ptr<policy::ConfigurationPolicyProvider>>
|
||||
ChromeBrowserPolicyConnector::CreatePolicyProviders() {
|
||||
auto providers = BrowserPolicyConnector::CreatePolicyProviders();
|
||||
@@ -46,7 +46,7 @@
|
||||
std::unique_ptr<LocalTestPolicyProvider> local_test_provider_;
|
||||
--- a/chrome/browser/policy/profile_policy_connector.cc
|
||||
+++ b/chrome/browser/policy/profile_policy_connector.cc
|
||||
@@ -384,6 +384,10 @@ void ProfilePolicyConnector::Init(
|
||||
@@ -386,6 +386,10 @@ void ProfilePolicyConnector::Init(
|
||||
if (connector->command_line_policy_provider()) {
|
||||
policy_providers_.push_back(connector->command_line_policy_provider());
|
||||
}
|
||||
@@ -59,7 +59,7 @@
|
||||
local_test_policy_provider_ = connector->local_test_policy_provider();
|
||||
--- a/components/policy/core/common/BUILD.gn
|
||||
+++ b/components/policy/core/common/BUILD.gn
|
||||
@@ -153,6 +153,8 @@ source_set("internal") {
|
||||
@@ -155,6 +155,8 @@ source_set("internal") {
|
||||
"external_data_manager.h",
|
||||
"features.cc",
|
||||
"features.h",
|
||||
@@ -207,7 +207,7 @@
|
||||
inline constexpr char kIdKey[] = "id";
|
||||
--- a/components/policy_strings.grdp
|
||||
+++ b/components/policy_strings.grdp
|
||||
@@ -687,6 +687,9 @@ Additional details:
|
||||
@@ -690,6 +690,9 @@ Additional details:
|
||||
<message name="IDS_POLICY_SOURCE_RESTRICTED_MANAGED_GUEST_SESSION_OVERRIDE" desc="Indicates that the policy originates from the restricted managed guest session override.">
|
||||
Restricted managed guest session override
|
||||
</message>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/settings/site_settings/notifications_page.ts
|
||||
+++ b/chrome/browser/resources/settings/site_settings/notifications_page.ts
|
||||
@@ -103,7 +103,7 @@ export class NotificationsPageElement ex
|
||||
@@ -105,7 +105,7 @@ export class NotificationsPageElement ex
|
||||
shouldShowSafetyHub_: {
|
||||
type: Boolean,
|
||||
value() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/net/dns/public/doh_provider_entry.cc
|
||||
+++ b/net/dns/public/doh_provider_entry.cc
|
||||
@@ -252,7 +252,7 @@ const DohProviderEntry::List& DohProvide
|
||||
@@ -262,7 +262,7 @@ const DohProviderEntry::List& DohProvide
|
||||
LoggingLevel::kNormal},
|
||||
{"Quad9Secure",
|
||||
MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<message name="IDS_SETTINGS_RESET_TO_DEFAULT_THEME" desc="Accessibility label of the button which resets the browser theme back to the default value">
|
||||
Reset to default theme
|
||||
</message>
|
||||
@@ -291,6 +291,9 @@
|
||||
@@ -294,6 +294,9 @@
|
||||
<message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
|
||||
Automatically pin new tab groups created on any device to the bookmarks bar
|
||||
</message>
|
||||
@@ -21,7 +21,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -529,7 +529,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -528,7 +528,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
IDS_SETTINGS_ALLOW_SPLIT_VIEW_DRAG_AND_DROP},
|
||||
{"showTabGroupsInBookmarksBar",
|
||||
IDS_SETTINGS_SHOW_TAB_GROUPS_IN_BOOKMARKS_BAR},
|
||||
@@ -30,7 +30,7 @@
|
||||
{"hoverCardTitle", IDS_SETTINGS_HOVER_CARD_TITLE},
|
||||
{"showHoverCardImages", IDS_SETTINGS_SHOW_HOVER_CARD_IMAGES},
|
||||
{"showHoverCardMemoryUsage", IDS_SETTINGS_SHOW_HOVER_CARD_MEMORY_USAGE},
|
||||
@@ -561,9 +561,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -562,9 +562,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
{"classicTheme", IDS_SETTINGS_CLASSIC_THEME},
|
||||
{"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME},
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/webui/cr_components/history/history_util.cc
|
||||
+++ b/chrome/browser/ui/webui/cr_components/history/history_util.cc
|
||||
@@ -51,7 +51,7 @@ content::WebUIDataSource* HistoryUtil::P
|
||||
@@ -50,7 +50,7 @@ content::WebUIDataSource* HistoryUtil::P
|
||||
{"foundSearchResults", IDS_HISTORY_FOUND_SEARCH_RESULTS},
|
||||
{"actorTaskTooltip", IDS_ACTOR_TASK},
|
||||
{"historyMenuButton", IDS_HISTORY_HISTORY_MENU_DESCRIPTION},
|
||||
@@ -11,7 +11,7 @@
|
||||
{"loading", IDS_HISTORY_LOADING},
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1965,7 +1965,7 @@ void AddSyncControlsStrings(content::Web
|
||||
@@ -1991,7 +1991,7 @@ void AddSyncControlsStrings(content::Web
|
||||
void AddPeopleStrings(content::WebUIDataSource* html_source, Profile* profile) {
|
||||
static constexpr webui::LocalizedString kLocalizedStrings[] = {
|
||||
// Top level people strings:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1950,6 +1950,9 @@
|
||||
@@ -1965,6 +1965,9 @@
|
||||
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT" desc="The text of a confirmation dialog that confirms that the user want to send the 'Do Not Track' header">
|
||||
Enabling "Do Not Track" means that a request will be included with your browsing traffic. Any effect depends on whether a website responds to the request, and how the request is interpreted. For example, some websites may respond to this request by showing you ads that aren't based on other websites you've visited. Many websites will still collect and use your browsing data - for example to improve security, to provide content, services, ads and recommendations on their websites, and to generate reporting statistics.
|
||||
</message>
|
||||
@@ -10,7 +10,7 @@
|
||||
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL" desc="The accessibility label for a link to learn more about Do Not Track">
|
||||
Learn more about Do Not Track
|
||||
</message>
|
||||
@@ -3223,6 +3226,9 @@
|
||||
@@ -3277,6 +3280,9 @@
|
||||
<message name="IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_DESCRIPTION" desc="Description of the section on the Tracking Protection settings page that lets users manage which sites are allowed to use third-party cookies. Explains how to use a wildcard to create an exception for an entire domain.">
|
||||
Affects the sites listed here. Inserting “[*.]” before a domain name creates an exception for the entire domain. For example, adding “[*.]google.com” means that third-party cookies can also be active for mail.google.com, because it’s part of google.com.
|
||||
</message>
|
||||
@@ -22,7 +22,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -2112,7 +2112,7 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2138,7 +2138,7 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"privacyPageMore", IDS_SETTINGS_PRIVACY_MORE},
|
||||
{"doNotTrack", IDS_SETTINGS_ENABLE_DO_NOT_TRACK},
|
||||
{"doNotTrackDialogTitle", IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TITLE},
|
||||
@@ -31,7 +31,7 @@
|
||||
{"doNotTrackDialogLearnMoreA11yLabel",
|
||||
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
|
||||
// TODO(crbug.com/40122957): This string is no longer used. Remove.
|
||||
@@ -2834,7 +2834,7 @@ void AddSiteSettingsStrings(content::Web
|
||||
@@ -2881,7 +2881,7 @@ void AddSiteSettingsStrings(content::Web
|
||||
{"trackingProtectionSitesAllowedCookiesTitle",
|
||||
IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_TITLE},
|
||||
{"trackingProtectionSitesAllowedCookiesDescription",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/settings/people_page/people_page.html
|
||||
+++ b/chrome/browser/resources/settings/people_page/people_page.html
|
||||
@@ -123,12 +123,6 @@
|
||||
@@ -124,12 +124,6 @@
|
||||
</div>
|
||||
</cr-link-row>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
it is alays selected but disabled. -->
|
||||
--- a/chrome/browser/resources/settings/privacy_page/personalization_options.ts
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/personalization_options.ts
|
||||
@@ -256,14 +256,6 @@ export class SettingsPersonalizationOpti
|
||||
@@ -262,14 +262,6 @@ export class SettingsPersonalizationOpti
|
||||
}
|
||||
// </if>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
window.location.href = url;
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -192,9 +192,6 @@ function createRoutes(): SettingsRoutes
|
||||
@@ -187,9 +187,6 @@ function createRoutes(): SettingsRoutes
|
||||
}
|
||||
r.MANAGE_PROFILE = r.PEOPLE.createChild('/manageProfile');
|
||||
// </if>
|
||||
@@ -77,3 +77,43 @@
|
||||
<template is="dom-if"
|
||||
if="[[prefs.default_search_provider_data.template_url_data.extensionId]]">
|
||||
<div class="cr-row continuation">
|
||||
--- a/chrome/browser/resources/settings/search_page/search_page.ts
|
||||
+++ b/chrome/browser/resources/settings/search_page/search_page.ts
|
||||
@@ -14,6 +14,7 @@ import 'chrome://resources/cr_elements/c
|
||||
import '/shared/settings/controls/cr_policy_pref_indicator.js';
|
||||
import '/shared/settings/controls/extension_controlled_indicator.js';
|
||||
import './search_engine_list_dialog.js';
|
||||
+import '../controls/settings_toggle_button.js';
|
||||
import '../settings_page/settings_section.js';
|
||||
import '../settings_shared.css.js';
|
||||
import '../settings_vars.css.js';
|
||||
--- a/chrome/browser/resources/settings/lazy_load.ts
|
||||
+++ b/chrome/browser/resources/settings/lazy_load.ts
|
||||
@@ -216,9 +216,7 @@ export {SettingsImportDataDialogElement}
|
||||
export {SettingsManageProfileElement} from './people_page/manage_profile.js';
|
||||
export {ManageProfileBrowserProxy, ManageProfileBrowserProxyImpl, ProfileShortcutStatus} from './people_page/manage_profile_browser_proxy.js';
|
||||
// </if>
|
||||
-export {SettingsSyncControlsElement} from './people_page/sync_controls.js';
|
||||
export {SettingsSyncEncryptionOptionsElement} from './people_page/sync_encryption_options.js';
|
||||
-export {SettingsSyncPageElement} from './people_page/sync_page.js';
|
||||
export {NetworkPredictionOptions} from './performance_page/constants.js';
|
||||
export {SettingsCookiesPageElement} from './privacy_page/cookies_page.js';
|
||||
export {SettingsDoNotTrackToggleElement} from './privacy_page/do_not_track_toggle.js';
|
||||
--- a/chrome/browser/resources/settings/people_page/people_page_index.html
|
||||
+++ b/chrome/browser/resources/settings/people_page/people_page_index.html
|
||||
@@ -11,15 +11,6 @@
|
||||
route-path$="[[routes_.PEOPLE.path]]">
|
||||
</settings-people-page>
|
||||
|
||||
- <settings-sync-page slot="view" id="sync"
|
||||
- data-parent-view-id="parent" prefs="{{prefs}}"
|
||||
- route-path$="[[routes_.SYNC.path]]">
|
||||
- </settings-sync-page>
|
||||
-
|
||||
- <settings-sync-controls-page slot="view" id="syncControls"
|
||||
- data-parent-view-id="parent" route-path$="[[routes_.SYNC_ADVANCED.path]]">
|
||||
- </settings-sync-controls-page>
|
||||
-
|
||||
<if expr="not is_chromeos">
|
||||
<settings-manage-profile slot="view" id="manageProfile"
|
||||
data-parent-view-id="parent" profile-name="[[profileName_]]"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1963,6 +1963,12 @@
|
||||
@@ -1978,6 +1978,12 @@
|
||||
users to manage security settings">
|
||||
Security
|
||||
</message>
|
||||
@@ -15,7 +15,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -2117,9 +2117,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2143,9 +2143,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
|
||||
// TODO(crbug.com/40122957): This string is no longer used. Remove.
|
||||
{"permissionsPageTitle", IDS_SETTINGS_PERMISSIONS},
|
||||
@@ -42,10 +42,10 @@
|
||||
role-description="$i18n{subpageArrowRoleDescription}">
|
||||
</cr-link-row>
|
||||
+ </template>
|
||||
<template is="dom-if" if="[[enableIncognitoTrackingProtections_]]">
|
||||
<cr-link-row id="incognitoTrackingProtectionsLinkRow" class="hr"
|
||||
start-icon="settings:visibility-off"
|
||||
@@ -57,16 +59,16 @@
|
||||
<template is="dom-if" if=
|
||||
"[[shouldShowAdPrivacy_(
|
||||
isPrivacySandboxRestricted_,
|
||||
@@ -48,16 +50,16 @@
|
||||
role-description="$i18n{subpageArrowRoleDescription}">
|
||||
</cr-link-row>
|
||||
</template>
|
||||
@@ -67,3 +67,20 @@
|
||||
<cr-link-row id="heliumServicesLinkRow" start-icon="cr:chrome-product"
|
||||
class="hr" label="$i18n{heliumServicesTitle}"
|
||||
sub-label="$i18n{heliumServicesDescription}"
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
@@ -280,13 +280,11 @@ export class SettingsPrivacyPageElement
|
||||
case 'heliumServices':
|
||||
triggerId = 'heliumServicesLinkRow';
|
||||
break;
|
||||
- case 'cookies':
|
||||
- triggerId = 'thirdPartyCookiesLinkRow';
|
||||
- break;
|
||||
case 'security':
|
||||
case 'securityKeys':
|
||||
triggerId = 'securityLinkRow';
|
||||
break;
|
||||
+ case 'cookies':
|
||||
case 'siteSettings':
|
||||
case 'siteSettingsAds':
|
||||
case 'siteSettingsAll':
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
+++ b/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
@@ -57,25 +57,6 @@
|
||||
@@ -57,26 +57,6 @@
|
||||
$i18n{peoplePageTitle}
|
||||
<cr-ripple></cr-ripple>
|
||||
</a>
|
||||
@@ -8,8 +8,9 @@
|
||||
- hidden="[[!showYourSavedInfoPageMenuItem_(
|
||||
- enableYourSavedInfoSettingsPage_,
|
||||
- pageVisibility_.yourSavedInfo)]]"
|
||||
- on-click="onYourSavedInfoClick_"
|
||||
- class="cr-nav-menu-item">
|
||||
- <cr-icon icon="settings20:saved-info"></cr-icon>
|
||||
- <cr-icon icon="settings20:person-text"></cr-icon>
|
||||
- $i18n{yourSavedInfoPageTitle}
|
||||
- <cr-ripple></cr-ripple>
|
||||
- </a>
|
||||
@@ -28,7 +29,7 @@
|
||||
class="cr-nav-menu-item">
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -239,7 +239,7 @@ function createRoutes(): SettingsRoutes
|
||||
@@ -235,7 +235,7 @@ function createRoutes(): SettingsRoutes
|
||||
r.PASSKEYS = r.YOUR_SAVED_INFO.createChild('/passkeys');
|
||||
// </if>
|
||||
}
|
||||
|
||||
@@ -1,149 +0,0 @@
|
||||
--- a/chrome/browser/resources/settings/lazy_load.ts
|
||||
+++ b/chrome/browser/resources/settings/lazy_load.ts
|
||||
@@ -3,16 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Subpages
|
||||
-import './ai_page/ai_tab_organization_subpage.js';
|
||||
-import './ai_page/history_search_page.js';
|
||||
-import './ai_page/offer_writing_help_page.js';
|
||||
import './appearance_page/appearance_fonts_page.js';
|
||||
-import './autofill_page/autofill_ai_section.js';
|
||||
-import './autofill_page/autofill_section.js';
|
||||
-// <if expr="is_win or is_macosx">
|
||||
-import './autofill_page/passkeys_subpage.js';
|
||||
-// </if>
|
||||
-import './autofill_page/payments_section.js';
|
||||
// <if expr="not is_chromeos">
|
||||
import './clear_browsing_data_dialog/clear_browsing_data_account_indicator.js';
|
||||
// </if>
|
||||
@@ -20,18 +11,10 @@ import './clear_browsing_data_dialog/cle
|
||||
import './clear_browsing_data_dialog/clear_browsing_data_dialog_v2.js';
|
||||
import './clear_browsing_data_dialog/clear_browsing_data_time_picker.js';
|
||||
import './privacy_page/incognito_tracking_protections_page.js';
|
||||
-import './privacy_page/privacy_guide/privacy_guide_dialog.js';
|
||||
-import './privacy_page/privacy_guide/privacy_guide_page.js';
|
||||
import './privacy_page/security/security_keys_subpage.js';
|
||||
import './privacy_page/security/security_page_v2.js';
|
||||
import './privacy_page/security/security_page.js';
|
||||
import './privacy_page/services_page.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_ad_measurement_subpage.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_fledge_subpage.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_interest_item.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_manage_topics_subpage.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_page.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_topics_subpage.js';
|
||||
import './safety_hub/safety_hub_entry_point.js';
|
||||
import './safety_hub/safety_hub_page.js';
|
||||
import './search_page/search_engines_page.js';
|
||||
@@ -92,15 +75,10 @@ import './site_settings/web_printing_pag
|
||||
import './site_settings/window_management_page.js';
|
||||
import './site_settings/zoom_levels.js';
|
||||
// <if expr="not is_chromeos">
|
||||
-import './a11y_page/live_caption_section.js';
|
||||
import './people_page/import_data_dialog.js';
|
||||
import './people_page/account_page.js';
|
||||
-import './people_page/google_services_page.js';
|
||||
import './people_page/manage_profile.js';
|
||||
// </if>
|
||||
-import './people_page/signout_dialog.js';
|
||||
-import './people_page/sync_controls_page.js';
|
||||
-import './people_page/sync_page.js';
|
||||
// Sections
|
||||
import './a11y_page/a11y_page_index.js';
|
||||
import './downloads_page/downloads_page.js';
|
||||
@@ -143,40 +121,8 @@ export {SettingsA11yPageElement, ToastAl
|
||||
// <if expr="is_win or is_linux or is_macosx">
|
||||
export {SettingsAxAnnotationsSectionElement} from './a11y_page/ax_annotations_section.js';
|
||||
// </if>
|
||||
-// <if expr="not is_chromeos">
|
||||
-export {SettingsLiveCaptionElement} from './a11y_page/live_caption_section.js';
|
||||
-export {SettingsLiveTranslateElement} from './a11y_page/live_translate_section.js';
|
||||
-// </if>
|
||||
|
||||
-export {SettingsAiCompareSubpageElement} from './ai_page/ai_compare_subpage.js';
|
||||
-export {isFeatureDisabledByPolicy, SettingsAiPolicyIndicator} from './ai_page/ai_policy_indicator.js';
|
||||
-export {SettingsAiTabOrganizationSubpageElement} from './ai_page/ai_tab_organization_subpage.js';
|
||||
-export {AiEnterpriseFeaturePrefName, AiPageActions, FeatureOptInState, SettingsAiPageFeaturePrefName} from './ai_page/constants.js';
|
||||
-export {SettingsHistorySearchPageElement} from './ai_page/history_search_page.js';
|
||||
-export {COMPOSE_PROACTIVE_NUDGE_DISABLED_SITES_PREF, COMPOSE_PROACTIVE_NUDGE_PREF, SettingsOfferWritingHelpPageElement} from './ai_page/offer_writing_help_page.js';
|
||||
export {SettingsAppearanceFontsPageElement} from './appearance_page/appearance_fonts_page.js';
|
||||
-export {SettingsAddressEditDialogElement} from './autofill_page/address_edit_dialog.js';
|
||||
-export {SettingsAddressRemoveConfirmationDialogElement} from './autofill_page/address_remove_confirmation_dialog.js';
|
||||
-export {SettingsAutofillAiAddOrEditDialogElement} from './autofill_page/autofill_ai_add_or_edit_dialog.js';
|
||||
-export {SettingsAutofillAiEntriesListElement} from './autofill_page/autofill_ai_entries_list.js';
|
||||
-export {SettingsAutofillAiSectionElement} from './autofill_page/autofill_ai_section.js';
|
||||
-export {AutofillManagerImpl, AutofillManagerProxy, PersonalDataChangedListener} from './autofill_page/autofill_manager_proxy.js';
|
||||
-export {AutofillAddressOptInChange, SettingsAutofillSectionElement} from './autofill_page/autofill_section.js';
|
||||
-export {CountryDetailManagerProxy, CountryDetailManagerProxyImpl} from './autofill_page/country_detail_manager_proxy.js';
|
||||
-export {SettingsCreditCardEditDialogElement} from './autofill_page/credit_card_edit_dialog.js';
|
||||
-export {SettingsCreditCardListEntryElement} from './autofill_page/credit_card_list_entry.js';
|
||||
-export {EntityDataManagerProxy, EntityDataManagerProxyImpl, EntityInstancesChangedListener} from './autofill_page/entity_data_manager_proxy.js';
|
||||
-export {SettingsIbanEditDialogElement} from './autofill_page/iban_edit_dialog.js';
|
||||
-export {SettingsIbanListEntryElement} from './autofill_page/iban_list_entry.js';
|
||||
-// <if expr="is_win or is_macosx">
|
||||
-export {Passkey, PasskeysBrowserProxy, PasskeysBrowserProxyImpl} from './autofill_page/passkeys_browser_proxy.js';
|
||||
-export {SettingsPasskeysSubpageElement} from './autofill_page/passkeys_subpage.js';
|
||||
-// </if>
|
||||
-export {SettingsPayOverTimeIssuerListEntryElement} from './autofill_page/pay_over_time_issuer_list_entry.js';
|
||||
-export {SettingsPaymentsListElement} from './autofill_page/payments_list.js';
|
||||
-export {PaymentsManagerImpl, PaymentsManagerProxy} from './autofill_page/payments_manager_proxy.js';
|
||||
-export {SettingsPaymentsSectionElement} from './autofill_page/payments_section.js';
|
||||
-export {SettingsVirtualCardUnenrollDialogElement} from './autofill_page/virtual_card_unenroll_dialog.js';
|
||||
// <if expr="not is_chromeos">
|
||||
export {SettingsClearBrowsingDataAccountIndicator} from './clear_browsing_data_dialog/clear_browsing_data_account_indicator.js';
|
||||
// </if>
|
||||
@@ -185,7 +131,6 @@ export {SettingsClearBrowsingDataDialogE
|
||||
export {getDataTypePrefName, SettingsClearBrowsingDataDialogV2Element} from './clear_browsing_data_dialog/clear_browsing_data_dialog_v2.js';
|
||||
export {getTimePeriodString, SettingsClearBrowsingDataTimePicker} from './clear_browsing_data_dialog/clear_browsing_data_time_picker.js';
|
||||
export {SettingsHistoryDeletionDialogElement} from './clear_browsing_data_dialog/history_deletion_dialog.js';
|
||||
-export {SettingsOtherGoogleDataDialogElement} from './clear_browsing_data_dialog/other_google_data_dialog.js';
|
||||
export {SettingsPasswordsDeletionDialogElement} from './clear_browsing_data_dialog/passwords_deletion_dialog.js';
|
||||
export {SettingsCollapseRadioButtonElement} from './controls/collapse_radio_button.js';
|
||||
export {ControlledButtonElement} from './controls/controlled_button.js';
|
||||
@@ -206,32 +151,17 @@ export {kMenuCloseDelay, SettingsLanguag
|
||||
export {LanguageSettingsActionType, LanguageSettingsMetricsProxy, LanguageSettingsMetricsProxyImpl, LanguageSettingsPageImpressionType} from './languages_page/languages_settings_metrics_proxy.js';
|
||||
export {LanguageHelper, LanguagesModel} from './languages_page/languages_types.js';
|
||||
export {SettingsSpellCheckPageElement} from './languages_page/spell_check_page.js';
|
||||
-export {SettingsTranslatePageElement} from './languages_page/translate_page.js';
|
||||
export {SettingsAccountPageElement} from './people_page/account_page.js';
|
||||
-export {SettingsGoogleServicesPageElement} from './people_page/google_services_page.js';
|
||||
export {BrowserProfile, ImportDataBrowserProxy, ImportDataBrowserProxyImpl, ImportDataStatus} from './people_page/import_data_browser_proxy.js';
|
||||
export {SettingsImportDataDialogElement} from './people_page/import_data_dialog.js';
|
||||
export {SettingsManageProfileElement} from './people_page/manage_profile.js';
|
||||
export {ManageProfileBrowserProxy, ManageProfileBrowserProxyImpl, ProfileShortcutStatus} from './people_page/manage_profile_browser_proxy.js';
|
||||
// </if>
|
||||
-export {SettingsSyncControlsElement} from './people_page/sync_controls.js';
|
||||
-export {SettingsSyncEncryptionOptionsElement} from './people_page/sync_encryption_options.js';
|
||||
-export {SettingsSyncPageElement} from './people_page/sync_page.js';
|
||||
export {NetworkPredictionOptions} from './performance_page/constants.js';
|
||||
export {SettingsCookiesPageElement} from './privacy_page/cookies_page.js';
|
||||
export {SettingsDoNotTrackToggleElement} from './privacy_page/do_not_track_toggle.js';
|
||||
export {IncognitoTrackingProtectionsPageElement} from './privacy_page/incognito_tracking_protections_page.js';
|
||||
export {SettingsPersonalizationOptionsElement} from './privacy_page/personalization_options.js';
|
||||
-export {PrivacyGuideStep} from './privacy_page/privacy_guide/constants.js';
|
||||
-export {PrivacyGuideAdTopicsFragmentElement} from './privacy_page/privacy_guide/privacy_guide_ad_topics_fragment.js';
|
||||
-export {PrivacyGuideCompletionFragmentElement} from './privacy_page/privacy_guide/privacy_guide_completion_fragment.js';
|
||||
-export {PrivacyGuideCookiesFragmentElement} from './privacy_page/privacy_guide/privacy_guide_cookies_fragment.js';
|
||||
-export {SettingsPrivacyGuideDialogElement} from './privacy_page/privacy_guide/privacy_guide_dialog.js';
|
||||
-export {PrivacyGuideHistorySyncFragmentElement} from './privacy_page/privacy_guide/privacy_guide_history_sync_fragment.js';
|
||||
-export {PrivacyGuideMsbbFragmentElement} from './privacy_page/privacy_guide/privacy_guide_msbb_fragment.js';
|
||||
-export {SettingsPrivacyGuidePageElement} from './privacy_page/privacy_guide/privacy_guide_page.js';
|
||||
-export {PrivacyGuideSafeBrowsingFragmentElement} from './privacy_page/privacy_guide/privacy_guide_safe_browsing_fragment.js';
|
||||
-export {PrivacyGuideWelcomeFragmentElement} from './privacy_page/privacy_guide/privacy_guide_welcome_fragment.js';
|
||||
export {CrLottieElement} from './privacy_page/security/cr_lottie.js';
|
||||
export {FINGERPRINT_CHECK_DARK_URL, FINGERPRINT_CHECK_LIGHT_URL, FINGERPRINT_SCANNED_ICON_DARK, FINGERPRINT_SCANNED_ICON_LIGHT, FingerprintProgressArcElement, PROGRESS_CIRCLE_BACKGROUND_COLOR_DARK, PROGRESS_CIRCLE_BACKGROUND_COLOR_LIGHT, PROGRESS_CIRCLE_FILL_COLOR_DARK, PROGRESS_CIRCLE_FILL_COLOR_LIGHT} from './privacy_page/security/fingerprint_progress_arc.js';
|
||||
export {SecureDnsResolverType, SettingsSecureDnsElement} from './privacy_page/security/secure_dns.js';
|
||||
@@ -246,12 +176,6 @@ export {HttpsFirstModeSetting, SafeBrows
|
||||
export {SecurityPageFeatureRowElement} from './privacy_page/security/security_page_feature_row.js';
|
||||
export {SecuritySettingsBundleSetting, SettingsSecurityPageV2Element} from './privacy_page/security/security_page_v2.js';
|
||||
export {SettingsHeliumServicesPageElement} from './privacy_page/services_page.js';
|
||||
-export {SettingsPrivacySandboxAdMeasurementSubpageElement} from './privacy_sandbox/privacy_sandbox_ad_measurement_subpage.js';
|
||||
-export {SettingsPrivacySandboxFledgeSubpageElement} from './privacy_sandbox/privacy_sandbox_fledge_subpage.js';
|
||||
-export {PrivacySandboxInterestItemElement} from './privacy_sandbox/privacy_sandbox_interest_item.js';
|
||||
-export {SettingsPrivacySandboxManageTopicsSubpageElement} from './privacy_sandbox/privacy_sandbox_manage_topics_subpage.js';
|
||||
-export {SettingsPrivacySandboxPageElement} from './privacy_sandbox/privacy_sandbox_page.js';
|
||||
-export {SettingsPrivacySandboxTopicsSubpageElement} from './privacy_sandbox/privacy_sandbox_topics_subpage.js';
|
||||
export {SettingsResetPageElement} from './reset_page/reset_page.js';
|
||||
export {SettingsResetProfileDialogElement} from './reset_page/reset_profile_dialog.js';
|
||||
export {SettingsSafetyHubExtensionsModuleElement} from './safety_hub/extensions_module.js';
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/settings/people_page/people_page.html
|
||||
+++ b/chrome/browser/resources/settings/people_page/people_page.html
|
||||
@@ -69,20 +69,6 @@
|
||||
@@ -69,21 +69,6 @@
|
||||
<div>
|
||||
|
||||
<if expr="not is_chromeos">
|
||||
@@ -14,14 +14,15 @@
|
||||
- promo-secondary-label-with-account=
|
||||
- "$i18n{peopleSignInPromptSecondaryWithAccount}"
|
||||
- promo-secondary-label-with-no-account=
|
||||
- "$i18n{peopleSignInPromptSecondaryWithNoAccount}">
|
||||
- "$i18n{peopleSignInPromptSecondaryWithNoAccount}"
|
||||
- access-point="[[accessPointEnum_.SETTINGS]]">
|
||||
- </settings-sync-account-control>
|
||||
- </template>
|
||||
-
|
||||
<template is="dom-if" if="[[shouldLinkToProfileRow_(
|
||||
syncStatus.syncSystemEnabled, signinAllowed_,
|
||||
syncStatus.signedInState)]]" restamp>
|
||||
@@ -106,53 +92,9 @@
|
||||
@@ -107,53 +92,9 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/settings/site_settings/notifications_page.html
|
||||
+++ b/chrome/browser/resources/settings/site_settings/notifications_page.html
|
||||
@@ -11,15 +11,10 @@
|
||||
@@ -12,15 +12,10 @@
|
||||
<div id="notificationRadioGroup" class="radio-group">
|
||||
<template is="dom-if" if="[[showNotificationPermissionsReview_]]">
|
||||
<template is="dom-if" if="[[shouldShowSafetyHub_]]">
|
||||
@@ -38,9 +38,9 @@
|
||||
<div class="cr-row first">
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
@@ -22,24 +22,6 @@
|
||||
</settings-section>
|
||||
</template>
|
||||
@@ -14,24 +14,6 @@
|
||||
<cr-view-manager id="viewManager" class="cr-centered-card-container"
|
||||
show-all$="[[shouldShowAll]]">
|
||||
|
||||
- <template is="dom-if" if="[[showPage_(pageVisibility_.safetyHub)]]">
|
||||
- <template is="dom-if" if="[[renderView_(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -357,7 +357,7 @@ export let routes: SettingsRoutes = Rout
|
||||
@@ -353,7 +353,7 @@ export let routes: SettingsRoutes = Rout
|
||||
// Returns the "effective" route when at chrome://settings/.
|
||||
export function getTopLevelRoute(): Route {
|
||||
if (!loadTimeData.getBoolean('isGuest')) {
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
--- a/chrome/browser/resources/settings/icons.html
|
||||
+++ b/chrome/browser/resources/settings/icons.html
|
||||
@@ -82,7 +82,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
@@ -88,7 +88,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
<g id="rule-folder" viewBox="0 -960 960 960"><path d="m313-305 198-198-57-57-141 142-57-57-56 57 113 113Zm263 0 64-64 64 64 56-56-64-64 64-64-56-56-64 64-64-64-56 56 64 64-64 64 56 56ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Z"></path></g>
|
||||
<g id="saved-info"><path d="M7 13C7.93333 13 8.81706 13.1163 9.65039 13.3496C10.5002 13.5662 11.3 13.8998 12.0498 14.3496C12.3497 14.5329 12.5833 14.7831 12.75 15.0996C12.9166 15.4162 12.9999 15.7498 13 16.0996V18H1V16.0996C1.00006 15.7498 1.0834 15.4162 1.25 15.0996C1.41666 14.7831 1.65029 14.5329 1.9502 14.3496C2.7001 13.8997 3.49198 13.5662 4.3252 13.3496C5.17511 13.1163 6.06677 13 7 13ZM7 15C6.31667 15 5.65 15.0833 5 15.25C4.35011 15.4166 3.73364 15.6668 3.15039 16H10.8496C10.2664 15.6668 9.64989 15.4166 9 15.25C8.35 15.0833 7.68333 15 7 15ZM23 18H16V16H23V18ZM23 13H14V11H23V13ZM7 6C7.83333 6 8.54167 6.29167 9.125 6.875C9.70833 7.45833 10 8.16667 10 9C10 9.83333 9.70833 10.5417 9.125 11.125C8.54167 11.7083 7.83333 12 7 12C6.16667 12 5.45833 11.7083 4.875 11.125C4.29167 10.5417 4 9.83333 4 9C4 8.16667 4.29167 7.45833 4.875 6.875C5.45833 6.29167 6.16667 6 7 6ZM7 8C6.71681 8 6.47533 8.1 6.27539 8.2998C6.09206 8.48314 6 8.71667 6 9C6 9.28332 6.09207 9.52461 6.27539 9.72461C6.47539 9.90793 6.71668 10 7 10C7.28333 10 7.51686 9.90794 7.7002 9.72461C7.9 9.52467 8 9.28319 8 9C8 8.71667 7.90019 8.48314 7.7002 8.2998C7.51686 8.09981 7.28333 8 7 8ZM23 8H12V6H23V8Z"></path></g>
|
||||
<g id="person-text" viewBox="0 -960 960 960"><path d="M648-240v-72h216v72H648Zm-48-204v-72h264v72H600Zm-72-204v-72h336v72H528ZM336-480q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35ZM96-240v-63q0-28 14.5-51t38.5-35q43-21 90-32t97-11q50 0 97 11t90 32q24 12 38.5 35t14.5 51v63H96Zm240-120q-53 0-95 12.5T169-312h334q-30-23-72-35.5T336-360Zm0-192q20.4 0 34.2-13.8Q384-579.6 384-600q0-20.4-13.8-34.2Q356.4-648 336-648q-20.4 0-34.2 13.8Q288-620.4 288-600q0 20.4 13.8 34.2Q315.6-552 336-552Zm0-48Zm0 288Z"></path></g>
|
||||
<g id="search-spark"><path d="M15.9375 17L10.9583 12.0208C10.5417 12.3264 10.0833 12.5694 9.58333 12.75C9.08333 12.9167 8.55556 13 8 13C6.61111 13 5.43056 12.5139 4.45833 11.5417C3.48611 10.5694 3 9.38889 3 8C3 6.61111 3.48611 5.43055 4.45833 4.45833C5.43056 3.48611 6.61111 3 8 3C8.36111 3 8.70139 3.03472 9.02083 3.10417C9.35417 3.17361 9.67361 3.27778 9.97917 3.41667L8.79167 4.58333C8.66667 4.55555 8.53472 4.53472 8.39583 4.52083C8.27083 4.50694 8.13889 4.5 8 4.5C7.02778 4.5 6.20139 4.84028 5.52083 5.52083C4.84028 6.20139 4.5 7.02778 4.5 8C4.5 8.97222 4.84028 9.79861 5.52083 10.4792C6.20139 11.1597 7.02778 11.5 8 11.5C8.80556 11.5 9.51389 11.2708 10.125 10.8125C10.7361 10.3403 11.1458 9.73611 11.3542 9H12.8958C12.8264 9.36111 12.7153 9.70833 12.5625 10.0417C12.4097 10.3611 12.2292 10.6667 12.0208 10.9583L17 15.9375L15.9375 17ZM14.5 10C14.5 8.75 14.0625 7.6875 13.1875 6.8125C12.3125 5.9375 11.25 5.5 10 5.5C11.25 5.5 12.3125 5.0625 13.1875 4.1875C14.0625 3.3125 14.5 2.25 14.5 0.999999C14.5 2.25 14.9375 3.3125 15.8125 4.1875C16.6875 5.0625 17.75 5.5 19 5.5C17.75 5.5 16.6875 5.9375 15.8125 6.8125C14.9375 7.6875 14.5 8.75 14.5 10Z"></path></g>
|
||||
- <g id="security"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.183 4.7L10 1.667 16.816 4.7v4.542c0 4.208-2.908 8.133-6.816 9.091-3.909-.958-6.817-4.883-6.817-9.091V4.7zM15.3 9.992H10V3.325L4.7 5.683V10l5.3-.008v6.775c2.816-.875 4.9-3.65 5.3-6.775z"></path></g>
|
||||
+ <g id="security"><path d="M420-360h120l-23-129q20-10 31.5-29t11.5-42q0-33-23.5-56.5T480-640q-33 0-56.5 23.5T400-560q0 23 11.5 42t31.5 29l-23 129Zm60 280q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z"/></g>
|
||||
<g id="select-window"><path d="M17.5 0.833344H6.66671C5.75004 0.833344 5.00004 1.58334 5.00004 2.50001V7.50001H2.50004C1.58337 7.50001 0.833374 8.25001 0.833374 9.16668V17.5C0.833374 18.4167 1.58337 19.1667 2.50004 19.1667H13.3334C14.25 19.1667 15 18.4167 15 17.5V12.5H17.5C18.4167 12.5 19.1667 11.75 19.1667 10.8333V2.50001C19.1667 1.58334 18.4167 0.833344 17.5 0.833344ZM13.3334 17.5H2.50004V10.8333H13.3334V17.5ZM17.5 10.8333H15V9.16668C15 8.25001 14.25 7.50001 13.3334 7.50001H6.66671V4.16668H17.5V10.8333Z"></path></g>
|
||||
<g id="shield" viewBox="0 -960 960 960"><path d="M480-80q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z"></path></g>
|
||||
<g id="spam"><path d="M15.0714 6.66667V3.5H16.5V7.38889H15.0714V6.66667ZM15.0714 9.83333H16.5V8.38889H15.0714V9.83333ZM9.71429 10.9444C11.6214 10.9444 15.4286 11.9122 15.4286 13.8333V16H4V13.8333C4 11.9122 7.80714 10.9444 9.71429 10.9444ZM9.71429 4.44444C10.472 4.44444 11.1988 4.74881 11.7346 5.29058C12.2704 5.83235 12.5714 6.56715 12.5714 7.33333C12.5714 8.09951 12.2704 8.83431 11.7346 9.37609C11.1988 9.91786 10.472 10.2222 9.71429 10.2222C8.95652 10.2222 8.2298 9.91786 7.69398 9.37609C7.15816 8.83431 6.85714 8.09951 6.85714 7.33333C6.85714 6.56715 7.15816 5.83235 7.69398 5.29058C8.2298 4.74881 8.95652 4.44444 9.71429 4.44444ZM9.71429 12.3167C7.59286 12.3167 5.35714 13.3711 5.35714 13.8333V14.6278H14.0714V13.8333C14.0714 13.3711 11.8357 12.3167 9.71429 12.3167ZM9.71429 5.81667C9.31646 5.81667 8.93493 5.97646 8.65363 6.26089C8.37232 6.54532 8.21429 6.93109 8.21429 7.33333C8.21429 7.73558 8.37232 8.12135 8.65363 8.40578C8.93493 8.69021 9.31646 8.85 9.71429 8.85C10.1121 8.85 10.4936 8.69021 10.7749 8.40578C11.0563 8.12135 11.2143 7.73558 11.2143 7.33333C11.2143 6.93109 11.0563 6.54532 10.7749 6.26089C10.4936 5.97646 10.1121 5.81667 9.71429 5.81667Z"></path></g>
|
||||
@@ -200,7 +200,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
@@ -208,7 +208,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
|
||||
<!-- Navigation: Security GM3 icon -->
|
||||
<g id="security" viewBox="0 -960 960 960">
|
||||
@@ -20,7 +20,7 @@
|
||||
<if expr="not is_chromeos">
|
||||
--- a/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
+++ b/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
@@ -176,7 +176,7 @@
|
||||
@@ -177,7 +177,7 @@
|
||||
</a>
|
||||
<a role="menuitem" id="about-menu" href="/help"
|
||||
class="cr-nav-menu-item">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"appearance_page/appearance_page.ts",
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -508,6 +508,8 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -506,6 +506,8 @@ void AddAppearanceStrings(content::WebUI
|
||||
Profile* profile) {
|
||||
static constexpr webui::LocalizedString kLocalizedStrings[] = {
|
||||
{"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
|
||||
@@ -189,7 +189,7 @@
|
||||
<div
|
||||
class="hr"
|
||||
hidden="[[!showHr_(
|
||||
@@ -178,11 +156,6 @@
|
||||
@@ -191,11 +169,6 @@
|
||||
label="$i18n{showTabGroupsInBookmarksBar}">
|
||||
</settings-toggle-button>
|
||||
|
||||
@@ -201,7 +201,7 @@
|
||||
<template is="dom-if" if="[[showTabSearchPositionSettings_]]" restamp>
|
||||
<div class="cr-row" id="tabSearchPositionRow">
|
||||
<div class="flex cr-padded-text" aria-hidden="true">
|
||||
@@ -286,11 +259,6 @@
|
||||
@@ -299,11 +272,6 @@
|
||||
</settings-toggle-button>
|
||||
</if>
|
||||
</div>
|
||||
@@ -215,7 +215,7 @@
|
||||
<managed-dialog on-close="onManagedDialogClosed_"
|
||||
--- a/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
+++ b/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
@@ -101,8 +101,8 @@
|
||||
@@ -102,8 +102,8 @@
|
||||
<a role="menuitem" id="appearance" href="/appearance"
|
||||
hidden="[[!pageVisibility_.appearance]]"
|
||||
class="cr-nav-menu-item">
|
||||
@@ -228,7 +228,7 @@
|
||||
<a role="menuitem" href="/search" class="cr-nav-menu-item">
|
||||
--- a/chrome/browser/resources/settings/icons.html
|
||||
+++ b/chrome/browser/resources/settings/icons.html
|
||||
@@ -113,6 +113,11 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
@@ -121,6 +121,11 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
<cr-iconset name="settings" size="24">
|
||||
<svg>
|
||||
<defs>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_chromium_strings.grdp
|
||||
+++ b/chrome/app/settings_chromium_strings.grdp
|
||||
@@ -306,6 +306,9 @@ Chromium understands forms better and ca
|
||||
@@ -312,6 +312,9 @@ Chromium understands forms better and ca
|
||||
<message name="IDS_SETTINGS_SUGGEST_PREF_DESC" desc="The description of the checkbox to enable/disable sending omnibox input to the user's default search engine to get additional suggestions.">
|
||||
When you type in the address bar or search box, Chromium sends what you type to your default search engine to get better suggestions. This is off in Incognito.
|
||||
</message>
|
||||
@@ -24,7 +24,7 @@
|
||||
Signed in to <ph name="EMAIL">$1<ex>abcd@google.com</ex></ph>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1822,8 +1822,8 @@ void AddPersonalizationOptionsStrings(co
|
||||
@@ -1850,8 +1850,8 @@ void AddPersonalizationOptionsStrings(co
|
||||
{"enablePersonalizationLoggingDesc",
|
||||
IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC},
|
||||
{"spellingDescription", IDS_SETTINGS_SPELLING_PREF_DESC},
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "components/safe_browsing/buildflags.h"
|
||||
#include "components/safe_browsing/core/common/safebrowsing_referral_methods.h"
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
@@ -629,6 +630,7 @@ bool DownloadUIModel::IsCommandEnabled(
|
||||
@@ -632,6 +633,7 @@ bool DownloadUIModel::IsCommandEnabled(
|
||||
case DownloadCommands::BYPASS_DEEP_SCANNING_AND_OPEN:
|
||||
case DownloadCommands::RETRY:
|
||||
case DownloadCommands::CANCEL_DEEP_SCAN:
|
||||
@@ -29,7 +29,7 @@
|
||||
return true;
|
||||
case DownloadCommands::REVIEW:
|
||||
#if BUILDFLAG(ENTERPRISE_CONTENT_ANALYSIS)
|
||||
@@ -671,6 +673,7 @@ bool DownloadUIModel::IsCommandChecked(
|
||||
@@ -674,6 +676,7 @@ bool DownloadUIModel::IsCommandChecked(
|
||||
case DownloadCommands::CANCEL_DEEP_SCAN:
|
||||
case DownloadCommands::OPEN_WITH_MEDIA_APP:
|
||||
case DownloadCommands::EDIT_WITH_MEDIA_APP:
|
||||
@@ -37,7 +37,7 @@
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
@@ -721,6 +724,14 @@ void DownloadUIModel::ExecuteCommand(Dow
|
||||
@@ -724,6 +727,14 @@ void DownloadUIModel::ExecuteCommand(Dow
|
||||
ui::PAGE_TRANSITION_LINK, false),
|
||||
/*navigation_handle_callback=*/{});
|
||||
break;
|
||||
@@ -52,7 +52,7 @@
|
||||
case DownloadCommands::OPEN_SAFE_BROWSING_SETTING:
|
||||
chrome::ShowSafeBrowsingEnhancedProtectionWithIph(
|
||||
download_commands->GetBrowser(),
|
||||
@@ -1200,6 +1211,9 @@ DownloadUIModel::BubbleStatusTextBuilder
|
||||
@@ -1206,6 +1217,9 @@ DownloadUIModel::BubbleStatusTextBuilder
|
||||
break;
|
||||
case FailState::FILE_BLOCKED:
|
||||
string_id = IDS_POLICY_ACTION_BLOCKED_BY_ORGANIZATION;
|
||||
@@ -64,15 +64,15 @@
|
||||
string_id = IDS_DOWNLOAD_INTERRUPTED_STATUS_SECURITY_CHECK_FAILED;
|
||||
--- a/chrome/browser/ui/download/download_bubble_security_view_info.cc
|
||||
+++ b/chrome/browser/ui/download/download_bubble_security_view_info.cc
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "chrome/grit/branded_strings.h"
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "chrome/grit/generated_resources.h"
|
||||
#include "components/download/public/common/download_danger_type.h"
|
||||
#include "components/enterprise/buildflags/buildflags.h"
|
||||
+#include "components/helium_services/helium_services_helpers.h"
|
||||
#include "components/offline_items_collection/core/fail_state.h"
|
||||
#include "components/vector_icons/vector_icons.h"
|
||||
#include "ui/base/l10n/l10n_util.h"
|
||||
@@ -223,6 +224,15 @@ void DownloadBubbleSecurityViewInfo::Pop
|
||||
@@ -225,6 +226,15 @@ void DownloadBubbleSecurityViewInfo::Pop
|
||||
case FailState::FILE_BLOCKED:
|
||||
warning_summary_ = l10n_util::GetStringUTF16(
|
||||
IDS_DOWNLOAD_BUBBLE_INTERRUPTED_SUBPAGE_SUMMARY_BLOCKED_ORGANIZATION);
|
||||
@@ -90,7 +90,7 @@
|
||||
warning_summary_ = l10n_util::GetStringUTF16(
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -3039,6 +3039,10 @@ are declared in tools/grit/grit_args.gni
|
||||
@@ -3061,6 +3061,10 @@ are declared in tools/grit/grit_args.gni
|
||||
desc="Status text for a download item that was interrupted because the file path name is too long.">
|
||||
File name or location is too long
|
||||
</message>
|
||||
@@ -101,7 +101,7 @@
|
||||
<message name="IDS_DOWNLOAD_BUBBLE_INTERRUPTED_SUBPAGE_SUMMARY_PATH_TOO_LONG"
|
||||
desc="Subpage summary text for a download item that was interrupted because the file path name is too long.">
|
||||
Try using a shorter file name or saving to a different folder
|
||||
@@ -3067,6 +3071,10 @@ are declared in tools/grit/grit_args.gni
|
||||
@@ -3089,6 +3093,10 @@ are declared in tools/grit/grit_args.gni
|
||||
desc="Status text for a download item that had something go wrong.">
|
||||
Something went wrong
|
||||
</message>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
@@ -740,9 +740,6 @@ SaveAndShareSubMenuModel::SaveAndShareSu
|
||||
@@ -768,9 +768,6 @@ SaveAndShareSubMenuModel::SaveAndShareSu
|
||||
if (!sharing_hub::SharingIsDisabledByPolicy(browser->profile())) {
|
||||
AddItemWithStringIdAndVectorIcon(
|
||||
this, IDC_COPY_URL, IDS_APP_MENU_COPY_LINK, kLinkChromeRefreshIcon);
|
||||
@@ -10,7 +10,7 @@
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_QRCODE_GENERATOR,
|
||||
IDS_APP_MENU_CREATE_QR_CODE,
|
||||
kQrCodeChromeRefreshIcon);
|
||||
@@ -886,14 +883,6 @@ void ToolsMenuModel::Build(Browser* brow
|
||||
@@ -914,23 +911,6 @@ void ToolsMenuModel::Build(Browser* brow
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_NAME_WINDOW, IDS_NAME_WINDOW,
|
||||
kNameWindowIcon);
|
||||
|
||||
@@ -22,13 +22,8 @@
|
||||
- kEditChromeRefreshIcon);
|
||||
- }
|
||||
-
|
||||
if (base::FeatureList::IsEnabled(contextual_tasks::kContextualTasks)) {
|
||||
AddItemWithStringIdAndVectorIcon(
|
||||
this, IDC_SHOW_CONTEXTUAL_TASKS_SIDE_PANEL,
|
||||
@@ -902,15 +891,6 @@ void ToolsMenuModel::Build(Browser* brow
|
||||
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
|
||||
- AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
-
|
||||
- AddItemWithStringIdAndVectorIcon(this, IDC_SHOW_READING_MODE_SIDE_PANEL,
|
||||
- IDS_SHOW_READING_MODE_SIDE_PANEL,
|
||||
- kMenuBookChromeRefreshIcon);
|
||||
@@ -36,12 +31,10 @@
|
||||
- GetIndexOfCommandId(IDC_SHOW_READING_MODE_SIDE_PANEL).value(),
|
||||
- kReadingModeMenuItem);
|
||||
-
|
||||
- AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
-
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_PERFORMANCE, IDS_SHOW_PERFORMANCE,
|
||||
kPerformanceIcon);
|
||||
SetElementIdentifierAt(GetIndexOfCommandId(IDC_PERFORMANCE).value(),
|
||||
@@ -1761,22 +1741,8 @@ void AppMenuModel::Build() {
|
||||
@@ -1799,22 +1779,8 @@ void AppMenuModel::Build() {
|
||||
// Build (and, by extension, Init) should only be called once.
|
||||
DCHECK_EQ(0u, GetItemCount());
|
||||
|
||||
@@ -66,7 +59,7 @@
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
}
|
||||
|
||||
@@ -1813,43 +1779,6 @@ void AppMenuModel::Build() {
|
||||
@@ -1851,43 +1817,6 @@ void AppMenuModel::Build() {
|
||||
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
|
||||
@@ -110,7 +103,7 @@
|
||||
if (!browser_->profile()->IsOffTheRecord()) {
|
||||
auto recent_tabs_sub_menu =
|
||||
std::make_unique<RecentTabsSubMenuModel>(provider_, browser_);
|
||||
@@ -1871,7 +1800,7 @@ void AppMenuModel::Build() {
|
||||
@@ -1909,7 +1838,7 @@ void AppMenuModel::Build() {
|
||||
std::make_unique<BookmarkSubMenuModel>(this, browser_);
|
||||
|
||||
AddSubMenuWithStringIdAndVectorIcon(
|
||||
@@ -119,7 +112,7 @@
|
||||
bookmark_sub_menu_model_.get(), kBookmarksListsMenuIcon);
|
||||
SetElementIdentifierAt(GetIndexOfCommandId(IDC_BOOKMARKS_MENU).value(),
|
||||
kBookmarksMenuItem);
|
||||
@@ -1888,23 +1817,10 @@ void AppMenuModel::Build() {
|
||||
@@ -1926,23 +1855,10 @@ void AppMenuModel::Build() {
|
||||
kTabGroupsMenuItem);
|
||||
}
|
||||
|
||||
@@ -147,7 +140,7 @@
|
||||
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_CLEAR_BROWSING_DATA,
|
||||
IDS_CLEAR_BROWSING_DATA,
|
||||
@@ -1951,9 +1867,6 @@ void AppMenuModel::Build() {
|
||||
@@ -1989,9 +1905,6 @@ void AppMenuModel::Build() {
|
||||
lens::features::kLensOverlay));
|
||||
}
|
||||
|
||||
@@ -157,7 +150,7 @@
|
||||
CreateFindAndEditSubMenu();
|
||||
|
||||
sub_menus_.push_back(
|
||||
@@ -2002,6 +1915,12 @@ void AppMenuModel::Build() {
|
||||
@@ -2040,6 +1953,12 @@ void AppMenuModel::Build() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -170,7 +163,7 @@
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_OPTIONS, IDS_SETTINGS,
|
||||
kSettingsMenuIcon);
|
||||
|
||||
@@ -2098,34 +2017,21 @@ bool AppMenuModel::AddDefaultBrowserMenu
|
||||
@@ -2136,34 +2055,21 @@ bool AppMenuModel::AddDefaultBrowserMenu
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -220,7 +213,7 @@
|
||||
bool AppMenuModel::AddHeliumSchemaItem() {
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
@@ -284,6 +284,9 @@ class AppMenuModel : public ui::SimpleMe
|
||||
@@ -291,6 +291,9 @@ class AppMenuModel : public ui::SimpleMe
|
||||
// Adds a nag to review Helium services permission changes
|
||||
bool AddHeliumSchemaItem();
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
}
|
||||
const auto* const color_provider = view->GetColorProvider();
|
||||
cc::PaintFlags flags;
|
||||
@@ -1476,21 +1476,8 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1475,21 +1475,8 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
PopulateMenu(item, model->GetSubmenuModelAt(i));
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
ProfileAttributesEntry* profile_attributes =
|
||||
GetProfileAttributesFromProfile(browser_->profile());
|
||||
if (profile_attributes &&
|
||||
@@ -1504,7 +1491,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1503,7 +1490,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
break;
|
||||
}
|
||||
case IDC_UPGRADE_DIALOG: {
|
||||
@@ -39,7 +39,7 @@
|
||||
if (const auto upgrade_substring_text = GetUpgradeDialogSubstringText();
|
||||
!upgrade_substring_text.empty()) {
|
||||
item->AddChildView(
|
||||
@@ -1524,18 +1510,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1523,18 +1509,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
break;
|
||||
}
|
||||
case IDC_WEB_APP_UPGRADE_DIALOG: {
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "third_party/omnibox_proto/types.pb.h"
|
||||
|
||||
class BookmarkProvider;
|
||||
@@ -515,6 +516,7 @@ class AutocompleteController : public Au
|
||||
@@ -520,6 +521,7 @@ class AutocompleteController : public Au
|
||||
|
||||
// A list of all providers.
|
||||
Providers providers_;
|
||||
@@ -58,7 +58,7 @@
|
||||
#include "components/search_engines/template_url_service.h"
|
||||
#include "components/search_engines/template_url_starter_pack_data.h"
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
@@ -1939,7 +1940,21 @@ void AutocompleteController::UpdateKeywo
|
||||
@@ -1919,7 +1920,21 @@ void AutocompleteController::UpdateKeywo
|
||||
// - For contextual search matches, the description indicates the
|
||||
// alternative UX because they're opened in the side panel.
|
||||
i->description = template_url->AdjustedShortNameForLocaleDirection();
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
gfx::ImageSkia* GetImageSkiaNamed(int id) {
|
||||
return ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id);
|
||||
@@ -353,8 +353,8 @@ class BookmarkBarView::ButtonSeparatorVi
|
||||
@@ -352,8 +352,8 @@ class BookmarkBarView::ButtonSeparatorVi
|
||||
|
||||
public:
|
||||
ButtonSeparatorView() {
|
||||
@@ -20,7 +20,7 @@
|
||||
separator_thickness_ = kBookmarkBarSeparatorThickness;
|
||||
const gfx::Insets border_insets =
|
||||
gfx::Insets::TLBR(0, leading_padding, 0, trailing_padding);
|
||||
@@ -700,7 +700,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
@@ -703,7 +703,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
}
|
||||
|
||||
int x = GetLeadingMargin();
|
||||
@@ -29,7 +29,7 @@
|
||||
int width = View::width() - x - kBookmarkBarTrailingMargin;
|
||||
|
||||
const int button_height = GetLayoutConstant(BOOKMARK_BAR_BUTTON_HEIGHT);
|
||||
@@ -821,7 +821,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
@@ -824,7 +824,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
// the bookmark buttons.
|
||||
if (saved_tab_group_bar_width > 0) {
|
||||
// Possibly update the paddings of the separator
|
||||
|
||||
@@ -11,15 +11,14 @@
|
||||
</html>
|
||||
--- a/chrome/browser/resources/new_tab_page_incognito_guest/incognito_tab.html
|
||||
+++ b/chrome/browser/resources/new_tab_page_incognito_guest/incognito_tab.html
|
||||
@@ -29,20 +29,6 @@ document.querySelector('#incognitothemec
|
||||
@@ -29,19 +29,6 @@ document.querySelector('#incognitothemec
|
||||
<div class="bulletpoints first">$i18nRaw{incognitoTabFeatures}</div>
|
||||
<div class="bulletpoints">$i18nRaw{incognitoTabWarning}</div>
|
||||
</div>
|
||||
- <div id="cookie-controls">
|
||||
- <div id="cookie-controls-description">
|
||||
- <div id="cookie-controls-header">
|
||||
- <svg viewBox="0 -960 960 960" $i18n{hideUserBypassIcon}
|
||||
- aria-hidden="true">
|
||||
- <svg viewBox="0 -960 960 960" aria-hidden="true">
|
||||
- <path d="m637-425-62-62q4-38-23-65.5T487-576l-62-62q13-5 27-7.5t28-2.5q70 0 119 49t49 119q0 14-2.5 28t-8.5 27Zm133 133-52-52q36-28 65.5-61.5T833-480q-49-101-144.5-158.5T480-696q-26 0-51 3t-49 10l-58-58q38-15 77.5-21t80.5-6q143 0 261.5 77.5T912-480q-22 57-58.5 103.5T770-292Zm-2 202L638-220q-38 14-77.5 21t-80.5 7q-143 0-261.5-77.5T48-480q22-57 58-104t84-85L90-769l51-51 678 679-51 51ZM241-617q-35 28-65 61.5T127-480q49 101 144.5 158.5T480-264q26 0 51-3.5t50-9.5l-45-45q-14 5-28 7.5t-28 2.5q-70 0-119-49t-49-119q0-14 3.5-28t6.5-28l-81-81Zm287 89Zm-96 96Z"/>
|
||||
- </svg>
|
||||
- <em>$i18n{cookieControlsTitle}</em>
|
||||
@@ -34,7 +33,7 @@
|
||||
<!-- Lazy-load cr_elements to avoid performance penalty introduced by loading Polymer -->
|
||||
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
@@ -241,7 +241,7 @@ void NTPResourceCache::CreateNewTabIncog
|
||||
@@ -240,7 +240,7 @@ void NTPResourceCache::CreateNewTabIncog
|
||||
DCHECK(profile_->HasAnyOffTheRecordProfile());
|
||||
|
||||
replacements["incognitoTabDescription"] =
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/new_tab_page/app.css
|
||||
+++ b/chrome/browser/resources/new_tab_page/app.css
|
||||
@@ -138,6 +138,7 @@ cr-most-visited {
|
||||
@@ -140,6 +140,7 @@ cr-most-visited {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -10,7 +10,7 @@
|
||||
padding-top: var(--ntp-one-google-bar-height);
|
||||
--- a/chrome/browser/resources/new_tab_page/app.html
|
||||
+++ b/chrome/browser/resources/new_tab_page/app.html
|
||||
@@ -1,92 +1,4 @@
|
||||
@@ -1,113 +1,4 @@
|
||||
-<!-- #html_wrapper_imports_start
|
||||
-import {nothing} from '//resources/lit/v3_0/lit.rollup.js';
|
||||
-#html_wrapper_imports_end -->
|
||||
@@ -40,7 +40,7 @@
|
||||
- </ntp-iframe>
|
||||
- `
|
||||
- ) : ''}
|
||||
- <!-- TODO(crbug.com/40743294): Instead of ?hidden="${!this.logoEnabled_}" it would
|
||||
- <!-- TODO(crbug.com/40743294): Instead of ?hidden="\${!this.logoEnabled_}" it would
|
||||
- be nicer to use Lit's conditional rendering. However, that breaks
|
||||
- StartupBrowserCreatorPickerNoParamsTest.ShowPickerWhenAlreadyLaunched on
|
||||
- the msan builder. See crbug.com/1169070. -->
|
||||
@@ -61,6 +61,7 @@
|
||||
- @open-voice-search="${this.onOpenVoiceSearch_}" ?shown="${this.realboxShown_}"
|
||||
- ?had-secondary-side="${this.realboxHadSecondarySide}"
|
||||
- @had-secondary-side-changed="${this.onRealboxHadSecondarySideChanged_}"
|
||||
- @context-menu-entrypoint-click="${this.onContextMenuEntrypointClick_}"
|
||||
- ?can-show-secondary-side="${this.realboxCanShowSecondarySide}"
|
||||
- ?compose-button-enabled="${this.composeButtonEnabled}"
|
||||
- ?composebox-enabled="${this.composeboxEnabled}"
|
||||
@@ -68,16 +69,35 @@
|
||||
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
|
||||
- ?cycling-placeholders="${this.searchboxCyclingPlaceholders_}"
|
||||
- @searchbox-input-focus-changed="${this.onInputFocusChanged_}"
|
||||
- context-menu-glif-animation-state="${this.contextMenuGlifAnimationState_}">
|
||||
- context-menu-glif-animation-state="${this.contextMenuGlifAnimationState_}"
|
||||
- ?multi-line-enabled="${this.multiLineEnabled_}">
|
||||
- </cr-searchbox>
|
||||
- ${this.showComposebox_ ? html`
|
||||
- <cr-composebox id="composebox"
|
||||
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
|
||||
- @composebox-initialized="${this.onComposeboxInitialized_}"
|
||||
- @close-composebox="${this.closeComposebox_}"
|
||||
- @composebox-input-focus-changed="${this.onInputFocusChanged_}"
|
||||
- searchbox-layout-mode="${this.realboxLayoutMode_}">
|
||||
- </cr-composebox>
|
||||
- ${this.enableModalComposebox_ ? html`
|
||||
- <div id="dialogAnchor"></div>
|
||||
- <dialog id="composeboxDialog">
|
||||
- <cr-composebox id="composebox"
|
||||
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
|
||||
- ?searchbox-next-enabled="${this.ntpRealboxNextEnabled_}"
|
||||
- @composebox-initialized="${this.onComposeboxInitialized_}"
|
||||
- @close-composebox="${this.closeComposebox_}"
|
||||
- @composebox-input-focus-changed="${this.onInputFocusChanged_}"
|
||||
- @context-menu-entrypoint-click="${this.onContextMenuEntrypointClick_}"
|
||||
- @voice-search-action="${this.onComposeVoiceSearchAction_}"
|
||||
- searchbox-layout-mode="${this.realboxLayoutMode_}">
|
||||
- </cr-composebox>
|
||||
- </dialog>
|
||||
- ` : html`
|
||||
- <cr-composebox id="composebox"
|
||||
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
|
||||
- ?searchbox-next-enabled="${this.ntpRealboxNextEnabled_}"
|
||||
- @composebox-initialized="${this.onComposeboxInitialized_}"
|
||||
- @close-composebox="${this.closeComposebox_}"
|
||||
- @composebox-input-focus-changed="${this.onInputFocusChanged_}"
|
||||
- @voice-search-query="${this.onComposeVoiceSearchAction_}"
|
||||
- searchbox-layout-mode="${this.realboxLayoutMode_}">
|
||||
- </cr-composebox>
|
||||
- `}
|
||||
- ` : ''}
|
||||
- ${this.showLensUploadDialog_ ? html`
|
||||
- <ntp-lens-upload-dialog id="lensUploadDialog"
|
||||
@@ -88,6 +108,7 @@
|
||||
- ${this.lazyRender_
|
||||
- && this.ntpNextFeaturesEnabled_ && this.isActionChipsVisible_ ? html`
|
||||
- <ntp-action-chips
|
||||
- ?theme-has-background-image="${this.themeHasBackgroundImage_()}"
|
||||
- @action-chip-click="${this.openComposebox_}"
|
||||
- @action-chips-retrieval-state-changed="${this.onActionChipsRetrievalStateChanged_}">
|
||||
- </ntp-action-chips>
|
||||
@@ -103,8 +124,8 @@
|
||||
${this.lazyRender_ ? html`
|
||||
${this.shortcutsEnabled_ ? html`
|
||||
<cr-most-visited id="mostVisited" .theme="${this.theme_?.mostVisited || null}"
|
||||
@@ -95,54 +7,7 @@ import {nothing} from '//resources/lit/v
|
||||
max-tiles-before-show-more="${this.maxTilesBeforeShowMore_}">
|
||||
@@ -117,65 +8,7 @@ import {nothing} from '//resources/lit/v
|
||||
@most-visited-auto-removed="${this.showAutoRemovedToast_}">
|
||||
</cr-most-visited>
|
||||
` : ''}
|
||||
- ${this.middleSlotPromoEnabled_ ? html`
|
||||
@@ -120,10 +141,21 @@
|
||||
- @modules-shown-to-user-changed="${this.onModulesShownToUserChanged_}"
|
||||
- @customize-module="${this.onCustomizeModule_}"
|
||||
- @modules-loaded="${this.onModulesLoaded_}"
|
||||
- @modules-auto-removed="${this.showAutoRemovedToast_}"
|
||||
- ?hidden="${!this.promoAndModulesLoaded_}">
|
||||
- </ntp-modules>
|
||||
- `}
|
||||
- ` : ''}
|
||||
- ${this.shortcutsEnabled_ || this.modulesEnabled_ ? html`
|
||||
- <cr-toast id="undoToast" duration="10000">
|
||||
- <div id="undoToastMessage">${this.undoAutoRemovalMessage_ || ''}</div>
|
||||
- <cr-button id="undoButton"
|
||||
- aria-label="$i18n{undoDescription}"
|
||||
- @click="${this.onAutoRemovalUndoClick_}">
|
||||
- $i18n{undo}
|
||||
- </cr-button>
|
||||
- </cr-toast>
|
||||
- ` : ''}
|
||||
- ${ this.showBrowserPromo_ ? (() => { switch (this.browserPromoType_) {
|
||||
- case "simple":
|
||||
- return html`
|
||||
@@ -158,7 +190,7 @@
|
||||
<ntp-customize-buttons id="customizeButtons"
|
||||
?modules-shown-to-user="${this.modulesShownToUser}"
|
||||
?show-background-image="${this.showBackgroundImage_}"
|
||||
@@ -164,23 +29,3 @@ import {nothing} from '//resources/lit/v
|
||||
@@ -197,23 +30,3 @@ import {nothing} from '//resources/lit/v
|
||||
` : ''}
|
||||
<div id="contentBottomSpacer"></div>
|
||||
</div>
|
||||
|
||||
@@ -1,24 +1,27 @@
|
||||
--- a/chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc
|
||||
+++ b/chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc
|
||||
@@ -215,21 +215,6 @@ void ExtensionInstalledBubbleView::Init(
|
||||
views::BoxLayout::CrossAxisAlignment::kStart);
|
||||
SetLayoutManager(std::move(layout));
|
||||
@@ -124,24 +124,6 @@ void ShowExtensionPostInstallDialog(
|
||||
.SetIcon(ui::ImageModel::FromImageSkia(
|
||||
weak_delegate->model()->MakeIconOfSize(kMaxIconSize)));
|
||||
|
||||
- if (model_->show_how_to_use()) {
|
||||
- AddChildView(CreateLabel(model_->GetHowToUseText()));
|
||||
- if (weak_delegate->model()->show_how_to_use()) {
|
||||
- dialog_model_builder.AddParagraph(
|
||||
- ui::DialogModelLabel(weak_delegate->model()->GetHowToUseText()));
|
||||
- }
|
||||
- if (weak_delegate->model()->show_key_binding()) {
|
||||
- dialog_model_builder.AddParagraph(
|
||||
- ui::DialogModelLabel::CreateWithReplacement(
|
||||
- IDS_EXTENSION_INSTALLED_MANAGE_SHORTCUTS,
|
||||
- ui::DialogModelLabel::CreateLink(
|
||||
- IDS_EXTENSION_INSTALLED_MANAGE_SHORTCUTS_LINK_TEXT,
|
||||
- base::BindRepeating(&ExtensionInstalledBubbleView::LinkClicked,
|
||||
- base::Unretained(weak_delegate)))));
|
||||
- }
|
||||
-
|
||||
- if (model_->show_key_binding()) {
|
||||
- auto* manage_shortcut = AddChildView(std::make_unique<views::Link>(
|
||||
- l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_SHORTCUTS)));
|
||||
- manage_shortcut->SetCallback(base::BindRepeating(
|
||||
- &ExtensionInstalledBubbleView::LinkClicked, base::Unretained(this)));
|
||||
- }
|
||||
-
|
||||
- if (model_->show_how_to_manage()) {
|
||||
- AddChildView(CreateLabel(
|
||||
- if (weak_delegate->model()->show_how_to_manage()) {
|
||||
- dialog_model_builder.AddParagraph(ui::DialogModelLabel(
|
||||
- l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_INFO)));
|
||||
- }
|
||||
}
|
||||
|
||||
void ExtensionInstalledBubbleView::LinkClicked() {
|
||||
#if !BUILDFLAG(IS_CHROMEOS)
|
||||
// Add a sync or sign in promo in the footer if it should be shown.
|
||||
extensions::ExtensionRegistry* registry =
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/tabs/tab_group_editor_bubble_view.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_group_editor_bubble_view.cc
|
||||
@@ -812,6 +812,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
|
||||
@@ -855,6 +855,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
|
||||
}
|
||||
|
||||
bool TabGroupEditorBubbleView::ShouldShowSavedFooter() const {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -30,6 +30,9 @@ namespace helium {
|
||||
constexpr const char kCanvasNoiseCommandLine[] = "fingerprinting-canvas-noise";
|
||||
constexpr const char kAudioContextJitterCommandLine[] = "fingerprinting-audio-context-jitter";
|
||||
@@ -33,6 +33,9 @@ namespace helium {
|
||||
constexpr const char kHeliumNoiseAudioCommandLine[] = "helium-noise-audio";
|
||||
|
||||
constexpr const char kMiddleClickAutoscrollCommandLine[] = "middle-click-autoscroll";
|
||||
+ constexpr const char kHeliumCatUiCommandLine[] = "helium-cat-ui";
|
||||
+ constexpr const char kHeliumCatFixedAddressBarCommandLine[] =
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -28,4 +28,12 @@
|
||||
@@ -32,4 +32,12 @@
|
||||
"Middle Click Autoscroll",
|
||||
"Enables autoscroll on middle click. Helium flag, Chromium feature.",
|
||||
kOsDesktop, FEATURE_VALUE_TYPE(blink::features::kHeliumMiddleClickAutoscroll)},
|
||||
@@ -47,9 +47,9 @@
|
||||
+ kHeliumCatFixedAddressBar);
|
||||
+}
|
||||
+
|
||||
// Enables the tab dragging fallback when full window dragging is not supported
|
||||
// by the platform (e.g. Wayland). See https://crbug.com/896640
|
||||
BASE_FEATURE(kAllowWindowDragUsingSystemDragDrop,
|
||||
// Enables the use of WGC for the Eye Dropper screen capture.
|
||||
BASE_FEATURE(kAllowEyeDropperWGCScreenCapture,
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
--- a/chrome/browser/ui/ui_features.h
|
||||
+++ b/chrome/browser/ui/ui_features.h
|
||||
@@ -20,6 +20,11 @@ namespace features {
|
||||
@@ -61,15 +61,15 @@
|
||||
+bool IsHeliumCatEnabled();
|
||||
+bool IsHeliumCatFixedAddressBar();
|
||||
+
|
||||
// TODO(crbug.com/40598679): Remove this when the tab dragging
|
||||
// interactive_ui_tests pass on Wayland.
|
||||
BASE_DECLARE_FEATURE(kAllowWindowDragUsingSystemDragDrop);
|
||||
BASE_DECLARE_FEATURE(kAllowEyeDropperWGCScreenCapture);
|
||||
|
||||
BASE_DECLARE_FEATURE(kCreateNewTabGroupAppMenuTopLevel);
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -969,9 +969,13 @@ BrowserView::BrowserView(Browser* browse
|
||||
top_container_ =
|
||||
main_container_->AddChildView(std::make_unique<TopContainerView>(this));
|
||||
@@ -1058,9 +1058,13 @@ BrowserView::BrowserView(Browser* browse
|
||||
|
||||
// Tabstrip comes basically last because it should be before toolbar in the
|
||||
// focus order but also needs to paint on top of everything.
|
||||
- tab_strip_region_view_ =
|
||||
- AddChildView(std::make_unique<TabStripRegionView>(this));
|
||||
- tab_strip_region_insertion_index_ = GetIndexOf(tab_strip_region_view_.get());
|
||||
@@ -83,7 +83,7 @@
|
||||
|
||||
if (tabs::IsVerticalTabsFeatureEnabled()) {
|
||||
auto vertical_tab_strip_container =
|
||||
@@ -1351,7 +1355,8 @@ bool BrowserView::ShouldDrawTabStrip() c
|
||||
@@ -1387,7 +1391,8 @@ bool BrowserView::ShouldDrawTabStrip() c
|
||||
// since callers may otherwise try to access it. Note that we can't just check
|
||||
// this alone, as the tabstrip is created unconditionally even for windows
|
||||
// that won't display it.
|
||||
@@ -93,10 +93,10 @@
|
||||
}
|
||||
|
||||
bool BrowserView::GetIncognito() const {
|
||||
@@ -4139,9 +4144,10 @@ void BrowserView::ReparentTopContainerFo
|
||||
// The TabStrip must be placed in the same position before the reparenting to
|
||||
// maintain the correct Z-order to ensure it can receive mouse events. See
|
||||
// crbug.com/454852658.
|
||||
@@ -4238,9 +4243,10 @@ void BrowserView::ReparentTabStripAndWeb
|
||||
// The TabStrip must be placed in the same position before the reparenting
|
||||
// to maintain the correct Z-order to ensure it can receive mouse events.
|
||||
// See crbug.com/454852658.
|
||||
- DCHECK(tab_strip_region_insertion_index_);
|
||||
- AddChildViewAt(tab_strip_region_view_.get(),
|
||||
- tab_strip_region_insertion_index_.value());
|
||||
@@ -105,9 +105,9 @@
|
||||
+ tab_strip_region_insertion_index_.value());
|
||||
+ }
|
||||
|
||||
// Reparent PWA views that were moved for immersive mode.
|
||||
if (web_app_frame_toolbar_) {
|
||||
@@ -5194,6 +5200,12 @@ void BrowserView::AddedToWidget() {
|
||||
// Reparent PWA views that were moved for immersive and ChromeOS tablet
|
||||
// mode.
|
||||
@@ -5299,6 +5305,12 @@ void BrowserView::AddedToWidget() {
|
||||
|
||||
toolbar_->Init();
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
// TODO(pbos): Investigate whether the side panels should be creatable when
|
||||
--- a/chrome/browser/ui/views/frame/layout/browser_view_layout_impl_old.cc
|
||||
+++ b/chrome/browser/ui/views/frame/layout/browser_view_layout_impl_old.cc
|
||||
@@ -406,6 +406,15 @@ void BrowserViewLayoutImplOld::LayoutVer
|
||||
@@ -396,6 +396,15 @@ void BrowserViewLayoutImplOld::LayoutVer
|
||||
void BrowserViewLayoutImplOld::LayoutTabStripRegion(
|
||||
gfx::Rect& available_bounds) {
|
||||
TRACE_EVENT0("ui", "BrowserViewLayout::LayoutTabStripRegion");
|
||||
@@ -138,9 +138,9 @@
|
||||
if (!delegate().ShouldDrawTabStrip()) {
|
||||
SetViewVisibility(views().tab_strip_region_view, false);
|
||||
views().tab_strip_region_view->SetBounds(0, 0, 0, 0);
|
||||
@@ -458,6 +467,15 @@ void BrowserViewLayoutImplOld::LayoutToo
|
||||
toolbar_bounds.set_x(available_bounds.x());
|
||||
toolbar_bounds.set_width(toolbar_bounds.width() - kVerticalTabStripWidth);
|
||||
@@ -449,6 +458,15 @@ void BrowserViewLayoutImplOld::LayoutToo
|
||||
toolbar_bounds.set_width(toolbar_bounds.width() -
|
||||
kMinVerticalTabStripWidth);
|
||||
views().toolbar->SetBoundsRect(toolbar_bounds);
|
||||
+ } else if (features::IsHeliumCatEnabled() && delegate().ShouldDrawTabStrip()) {
|
||||
+ // If CAT is enabled and the tab strip should be drawn, then we're most
|
||||
@@ -156,7 +156,7 @@
|
||||
toolbar_visible ? views().toolbar->GetPreferredSize().height() : 0;
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -57,6 +57,7 @@
|
||||
@@ -58,6 +58,7 @@
|
||||
#include "chrome/browser/ui/views/extensions/extensions_toolbar_coordinator.h"
|
||||
#include "chrome/browser/ui/views/frame/browser_frame_view.h"
|
||||
#include "chrome/browser/ui/views/frame/browser_view.h"
|
||||
@@ -164,7 +164,7 @@
|
||||
#include "chrome/browser/ui/views/frame/top_container_background.h"
|
||||
#include "chrome/browser/ui/views/global_media_controls/media_toolbar_button_contextual_menu.h"
|
||||
#include "chrome/browser/ui/views/global_media_controls/media_toolbar_button_view.h"
|
||||
@@ -148,6 +149,8 @@ DEFINE_UI_CLASS_PROPERTY_KEY(bool, kActi
|
||||
@@ -152,6 +153,8 @@ DEFINE_UI_CLASS_PROPERTY_KEY(bool, kActi
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
// Gets the display mode for a given browser.
|
||||
ToolbarView::DisplayMode GetDisplayMode(Browser* browser) {
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -543,6 +546,26 @@ void ToolbarView::Init() {
|
||||
@@ -535,6 +538,26 @@ void ToolbarView::Init() {
|
||||
|
||||
reload_->SetVisible(show_reload_button_.GetValue());
|
||||
|
||||
@@ -200,7 +200,7 @@
|
||||
show_avatar_button_.Init(
|
||||
prefs::kShowAvatarButton, prefs,
|
||||
base::BindRepeating(&ToolbarView::OnShowAvatarButtonChanged,
|
||||
@@ -573,12 +596,30 @@ void ToolbarView::Init() {
|
||||
@@ -565,12 +588,30 @@ void ToolbarView::Init() {
|
||||
|
||||
InitLayout();
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
if (browser_view_->GetSupportsTabStrip()) {
|
||||
browser()->GetTabStripModel()->AddObserver(this);
|
||||
}
|
||||
@@ -703,6 +744,24 @@ bool ToolbarView::IsRectInWindowCaption(
|
||||
@@ -695,6 +736,24 @@ bool ToolbarView::IsRectInWindowCaption(
|
||||
return gfx::ToEnclosingRect(rect_in_target_coords_f);
|
||||
};
|
||||
|
||||
@@ -256,7 +256,7 @@
|
||||
// Check each child view in container_view_ to see if the rect intersects with
|
||||
// any clickable elements. If it does, check if the click is actually on that
|
||||
// element. False if on a clickable element, true if not on a clickable element.
|
||||
@@ -982,8 +1041,12 @@ void ToolbarView::InitLayout() {
|
||||
@@ -974,8 +1033,12 @@ void ToolbarView::InitLayout() {
|
||||
constexpr int kToolbarActionsFlexOrder = kOrderOffset + 2;
|
||||
constexpr int kExtensionsFlexOrder = kOrderOffset + 3;
|
||||
|
||||
@@ -270,7 +270,7 @@
|
||||
views::MaximumFlexSizeRule::kUnbounded)
|
||||
.WithOrder(kLocationBarFlexOrder);
|
||||
|
||||
@@ -999,6 +1062,12 @@ void ToolbarView::InitLayout() {
|
||||
@@ -991,6 +1054,12 @@ void ToolbarView::InitLayout() {
|
||||
location_bar_->SetProperty(views::kMarginsKey,
|
||||
gfx::Insets::VH(0, location_bar_margin));
|
||||
|
||||
@@ -295,7 +295,7 @@
|
||||
// Accessors.
|
||||
Browser* browser() const { return browser_; }
|
||||
views::Button* GetChromeLabsButton() const;
|
||||
@@ -324,6 +327,7 @@ class ToolbarView : public views::Access
|
||||
@@ -326,6 +329,7 @@ class ToolbarView : public views::Access
|
||||
raw_ptr<BrowserAppMenuButton> app_menu_button_ = nullptr;
|
||||
raw_ptr<views::View> new_tab_button_ = nullptr;
|
||||
raw_ptr<PinnedActionToolbarButton> tab_search_button_ = nullptr;
|
||||
@@ -305,7 +305,7 @@
|
||||
const raw_ptr<BrowserView> browser_view_;
|
||||
--- a/chrome/browser/ui/layout_constants.cc
|
||||
+++ b/chrome/browser/ui/layout_constants.cc
|
||||
@@ -189,6 +189,11 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
@@ -194,6 +194,11 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
case TOOLBAR_INTERIOR_MARGIN: {
|
||||
const int vert = GetLayoutConstant(TOP_BAR_VERTICAL_PADDING);
|
||||
const int horiz = vert * 2;
|
||||
@@ -319,7 +319,7 @@
|
||||
}
|
||||
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
||||
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
||||
@@ -638,7 +638,7 @@ int OmniboxViewViews::GetUnelidedTextWid
|
||||
@@ -659,7 +659,7 @@ int OmniboxViewViews::GetUnelidedTextWid
|
||||
}
|
||||
|
||||
gfx::Size OmniboxViewViews::GetMinimumSize() const {
|
||||
@@ -349,7 +349,7 @@
|
||||
return !location_bar_model->GetSecureDisplayText().empty();
|
||||
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
@@ -85,6 +85,14 @@ class FrameGrabHandle : public views::Vi
|
||||
@@ -84,6 +84,14 @@ class FrameGrabHandle : public views::Vi
|
||||
// is full.
|
||||
// TODO(tbergquist): Define this relative to the NTB insets again.
|
||||
if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-grab-handle")) return gfx::Size(0, 0);
|
||||
@@ -364,3 +364,41 @@
|
||||
return gfx::Size(27, 0);
|
||||
}
|
||||
};
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_controller.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_controller.cc
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "chrome/browser/ui/color/chrome_color_id.h"
|
||||
#include "chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.h"
|
||||
#include "chrome/browser/ui/toolbar_controller_util.h"
|
||||
+#include "chrome/browser/ui/ui_features.h"
|
||||
#include "chrome/browser/ui/views/contextual_tasks/contextual_tasks_button.h"
|
||||
#include "chrome/browser/ui/views/side_panel/side_panel_action_callback.h"
|
||||
#include "chrome/browser/ui/views/side_panel/side_panel_enums.h"
|
||||
@@ -297,15 +298,18 @@ ToolbarController::GetDefaultResponsiveE
|
||||
nullptr,
|
||||
#endif // BUILDFLAG(ENABLE_WEBUI_TAB_STRIP)
|
||||
kToolbarNewTabButtonElementId),
|
||||
- /*is_section_end=*/true),
|
||||
- ToolbarController::ResponsiveElementInfo(
|
||||
- ToolbarController::ElementIdInfo(
|
||||
- kToolbarAvatarButtonElementId,
|
||||
- IDS_OVERFLOW_MENU_ITEM_TEXT_PROFILE,
|
||||
- is_incognito ? (&kIncognitoRefreshMenuIcon)
|
||||
- : (&kUserAccountAvatarRefreshIcon),
|
||||
- kToolbarAvatarButtonElementId, kToolbarAvatarBubbleElementId),
|
||||
- /*is_section_end=*/false)});
|
||||
+ /*is_section_end=*/true)});
|
||||
+
|
||||
+ if (!features::IsHeliumCatEnabled()) {
|
||||
+ elements.push_back(ToolbarController::ResponsiveElementInfo(
|
||||
+ ToolbarController::ElementIdInfo(
|
||||
+ kToolbarAvatarButtonElementId, IDS_OVERFLOW_MENU_ITEM_TEXT_PROFILE,
|
||||
+ is_incognito ? (&kIncognitoRefreshMenuIcon)
|
||||
+ : (&kUserAccountAvatarRefreshIcon),
|
||||
+ kToolbarAvatarButtonElementId, kToolbarAvatarBubbleElementId),
|
||||
+ /*is_section_end=*/false));
|
||||
+ }
|
||||
+
|
||||
return elements;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,28 +1,17 @@
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -1163,18 +1163,7 @@ AppMenuButton* ToolbarView::GetAppMenuBu
|
||||
@@ -1155,6 +1155,8 @@ AppMenuButton* ToolbarView::GetAppMenuBu
|
||||
}
|
||||
|
||||
gfx::Rect ToolbarView::GetFindBarBoundingBox(int contents_bottom) {
|
||||
- if (!browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR)) {
|
||||
- return gfx::Rect();
|
||||
- }
|
||||
-
|
||||
- if (!location_bar_->IsDrawn()) {
|
||||
- return gfx::Rect();
|
||||
- }
|
||||
-
|
||||
- gfx::Rect bounds =
|
||||
- location_bar_->ConvertRectToWidget(location_bar_->GetLocalBounds());
|
||||
- return gfx::Rect(bounds.x(), bounds.bottom(), bounds.width(),
|
||||
- contents_bottom - bounds.bottom());
|
||||
+ return gfx::Rect();
|
||||
}
|
||||
|
||||
void ToolbarView::FocusToolbar() {
|
||||
+
|
||||
if (!browser_->SupportsWindowFeature(
|
||||
Browser::WindowFeature::kFeatureLocationBar)) {
|
||||
return gfx::Rect();
|
||||
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
||||
@@ -476,7 +476,6 @@ void LocationBarView::Init() {
|
||||
@@ -491,7 +491,6 @@ void LocationBarView::Init() {
|
||||
params.types_enabled.push_back(PageActionIconType::kIntentPicker);
|
||||
}
|
||||
params.types_enabled.push_back(PageActionIconType::kPwaInstall);
|
||||
@@ -32,13 +21,28 @@
|
||||
params.types_enabled.push_back(PageActionIconType::kFileSystemAccess);
|
||||
--- a/chrome/browser/ui/find_bar/find_bar_controller.cc
|
||||
+++ b/chrome/browser/ui/find_bar/find_bar_controller.cc
|
||||
@@ -323,25 +323,4 @@ std::u16string FindBarController::GetSel
|
||||
@@ -327,40 +327,4 @@ std::u16string FindBarController::GetSel
|
||||
return selected_text;
|
||||
}
|
||||
|
||||
-void FindBarController::UpdatePageAction() {
|
||||
- CHECK(IsPageActionMigrated(PageActionIconType::kFind));
|
||||
- tabs::TabInterface* tab = tabs::TabInterface::GetFromContents(web_contents());
|
||||
- tabs::TabInterface* tab =
|
||||
- tabs::TabInterface::MaybeGetFromContents(web_contents());
|
||||
- // On ChromeOS it's possible that the active tab's contents are discarded.
|
||||
- // The tab may be null during discarding, which triggers a visibility change
|
||||
- // that leads to this. Changing web contents before discarding does not work
|
||||
- // either because the replacement contents don't have the required tab helpers
|
||||
- // set up.
|
||||
- //
|
||||
- // TODO(crbug.com/461909461): This is a bandaid fix. Instead, the
|
||||
- // FindBarController should properly handle tab discarding events by
|
||||
- // unregistering observations, and ensuring they get it gets re-registered
|
||||
- // when the tab has valid contents after the discard.
|
||||
- if (!tab) {
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- tabs::TabFeatures* tab_features = tab->GetTabFeatures();
|
||||
- if (!tab_features) {
|
||||
- return;
|
||||
@@ -61,7 +65,7 @@
|
||||
+void FindBarController::UpdatePageAction() {}
|
||||
--- a/chrome/browser/ui/views/find_bar_host.cc
|
||||
+++ b/chrome/browser/ui/views/find_bar_host.cc
|
||||
@@ -627,11 +627,11 @@ gfx::Rect FindBarHost::GetDialogPosition
|
||||
@@ -638,11 +638,11 @@ gfx::Rect FindBarHost::GetDialogPosition
|
||||
// Place the view in the top right corner of the widget boundaries (top left
|
||||
// for RTL languages). Adjust for the view insets to ensure the border lines
|
||||
// up with the location bar.
|
||||
@@ -77,9 +81,9 @@
|
||||
// When we get Find results back, we specify a selection rect, which we
|
||||
--- a/chrome/browser/ui/views/find_bar_view.cc
|
||||
+++ b/chrome/browser/ui/views/find_bar_view.cc
|
||||
@@ -74,6 +74,10 @@ content::WebContents* GetWebContentsFrom
|
||||
}
|
||||
return host->GetFindBarController()->web_contents();
|
||||
@@ -65,6 +65,10 @@ void SetCommonButtonAttributes(views::Im
|
||||
views::ConfigureVectorImageButton(button);
|
||||
views::InstallCircleHighlightPathGenerator(button);
|
||||
}
|
||||
+
|
||||
+constexpr int kBasePadding = 4;
|
||||
@@ -88,7 +92,7 @@
|
||||
} // namespace
|
||||
|
||||
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(FindBarView, kElementId);
|
||||
@@ -173,18 +177,14 @@ FindBarView::FindBarView(FindBarHost* ho
|
||||
@@ -164,18 +168,14 @@ FindBarView::FindBarView(FindBarHost* ho
|
||||
|
||||
ChromeLayoutProvider* layout_provider = ChromeLayoutProvider::Get();
|
||||
const auto horizontal_margin =
|
||||
@@ -110,7 +114,7 @@
|
||||
const auto image_button_margins =
|
||||
toast_control_vertical_margin + vector_button_horizontal_margin;
|
||||
|
||||
@@ -206,8 +206,7 @@ FindBarView::FindBarView(FindBarHost* ho
|
||||
@@ -197,8 +197,7 @@ FindBarView::FindBarView(FindBarHost* ho
|
||||
views::Builder<views::BoxLayoutView>()
|
||||
.SetOrientation(views::BoxLayout::Orientation::kHorizontal)
|
||||
.SetInsideBorderInsets(
|
||||
@@ -120,7 +124,7 @@
|
||||
.AddChildren(
|
||||
views::Builder<views::Textfield>()
|
||||
.CopyAddressTo(&find_text_)
|
||||
@@ -301,8 +300,7 @@ FindBarView::FindBarView(FindBarHost* ho
|
||||
@@ -292,8 +291,7 @@ FindBarView::FindBarView(FindBarHost* ho
|
||||
auto border = std::make_unique<views::BubbleBorder>(
|
||||
views::BubbleBorder::NONE, views::BubbleBorder::STANDARD_SHADOW);
|
||||
border->SetColor(kColorFindBarBackground);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/frame/layout/browser_view_layout_delegate_impl.cc
|
||||
+++ b/chrome/browser/ui/views/frame/layout/browser_view_layout_delegate_impl.cc
|
||||
@@ -258,7 +258,7 @@ BrowserViewLayoutDelegateImpl::GetBounds
|
||||
@@ -236,7 +236,7 @@ BrowserViewLayoutDelegateImpl::GetBounds
|
||||
layout.trailing_exclusion.vertical_padding);
|
||||
bounds_f.set_height(
|
||||
std::max(max_bound, static_cast<float>(tabstrip_minimum_size.height())));
|
||||
@@ -47,8 +47,9 @@
|
||||
- result.margins = gfx::OutsetsF::VH(10, 12);
|
||||
+ result.margins = gfx::OutsetsF::VH(0, 6);
|
||||
} else {
|
||||
result.bounds = gfx::RectF(20, 11, 54, 16);
|
||||
- result.bounds = gfx::RectF(20, 11, 54, 16);
|
||||
- result.margins = gfx::OutsetsF::VH(11, 20);
|
||||
+ result.bounds = gfx::RectF(20, 11, 40, 16);
|
||||
+ result.margins = gfx::OutsetsF::VH(0, 14);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/side_panel/customize_chrome/app.ts
|
||||
+++ b/chrome/browser/resources/side_panel/customize_chrome/app.ts
|
||||
@@ -155,23 +155,6 @@ export class AppElement extends AppEleme
|
||||
@@ -156,23 +156,6 @@ export class AppElement extends AppEleme
|
||||
element.scrollIntoView({behavior: 'auto'});
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
this.pageHandler_.updateAttachedTabState();
|
||||
|
||||
this.setThemeEditableId_ = CustomizeChromeApiProxy.getInstance()
|
||||
@@ -346,10 +329,6 @@ export class AppElement extends AppEleme
|
||||
@@ -347,10 +330,6 @@ export class AppElement extends AppEleme
|
||||
await this.updateComplete;
|
||||
page.focusOnBackButton();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/toasts/toast_view.cc
|
||||
+++ b/chrome/browser/ui/toasts/toast_view.cc
|
||||
@@ -50,9 +50,8 @@ constexpr float kAnimationHeightScale =
|
||||
@@ -49,9 +49,8 @@ constexpr float kAnimationHeightScale =
|
||||
|
||||
gfx::Transform GetScaleTransformation(gfx::Rect bounds) {
|
||||
gfx::Transform transform;
|
||||
@@ -12,7 +12,7 @@
|
||||
return transform;
|
||||
}
|
||||
|
||||
@@ -119,8 +118,7 @@ ToastView::ToastView(
|
||||
@@ -118,8 +117,7 @@ ToastView::ToastView(
|
||||
SetBackgroundColor(ui::kColorToastBackgroundProminent);
|
||||
SetShowCloseButton(false);
|
||||
DialogDelegate::SetButtons(static_cast<int>(ui::mojom::DialogButton::kNone));
|
||||
@@ -22,7 +22,7 @@
|
||||
SetProperty(views::kElementIdentifierKey, kToastElementId);
|
||||
set_close_on_deactivate(false);
|
||||
SetProperty(views::kElementIdentifierKey, kToastViewId);
|
||||
@@ -329,7 +327,7 @@ void ToastView::AnimateIn() {
|
||||
@@ -328,7 +326,7 @@ void ToastView::AnimateIn() {
|
||||
|
||||
target_widget_bounds_ = GetWidget()->GetWindowBoundsInScreen();
|
||||
starting_widget_bounds_ =
|
||||
@@ -31,7 +31,7 @@
|
||||
height_animation_tween_ = gfx::Tween::ACCEL_5_70_DECEL_90;
|
||||
height_animation_.SetDuration(base::Milliseconds(kAnimationEntryDuration));
|
||||
height_animation_.Start();
|
||||
@@ -411,13 +409,11 @@ gfx::Rect ToastView::GetBubbleBounds() {
|
||||
@@ -410,13 +408,11 @@ gfx::Rect ToastView::GetBubbleBounds() {
|
||||
const int width =
|
||||
std::min(preferred_size.width(),
|
||||
std::max(anchor_bounds.width() - 2 * minimum_margin, 0));
|
||||
@@ -47,7 +47,7 @@
|
||||
return gfx::Rect(x, y, width, preferred_size.height());
|
||||
}
|
||||
|
||||
@@ -449,7 +445,7 @@ void ToastView::AnimateOut(base::OnceClo
|
||||
@@ -448,7 +444,7 @@ void ToastView::AnimateOut(base::OnceClo
|
||||
if (show_height_animation) {
|
||||
starting_widget_bounds_ = GetWidget()->GetWindowBoundsInScreen();
|
||||
target_widget_bounds_ =
|
||||
@@ -58,7 +58,7 @@
|
||||
height_animation_.Start();
|
||||
--- a/chrome/browser/ui/views/chrome_layout_provider.cc
|
||||
+++ b/chrome/browser/ui/views/chrome_layout_provider.cc
|
||||
@@ -182,7 +182,7 @@ int ChromeLayoutProvider::GetDistanceMet
|
||||
@@ -187,7 +187,7 @@ int ChromeLayoutProvider::GetDistanceMet
|
||||
case DISTANCE_TOAST_BUBBLE_BETWEEN_LABEL_MENU_BUTTON_SPACING:
|
||||
return 16;
|
||||
case DISTANCE_TOAST_BUBBLE_HEIGHT:
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
case STAR_RATING_ICON_SIZE:
|
||||
return 14;
|
||||
case TAB_AFTER_TITLE_PADDING:
|
||||
@@ -93,47 +95,43 @@ int GetLayoutConstant(LayoutConstant con
|
||||
@@ -93,36 +95,36 @@ int GetLayoutConstant(LayoutConstant con
|
||||
case TAB_CLOSE_BUTTON_SIZE:
|
||||
return touch_ui ? 24 : 16;
|
||||
case TAB_HEIGHT:
|
||||
@@ -80,11 +80,6 @@
|
||||
case TAB_STACK_DISTANCE:
|
||||
return touch_ui ? 4 : 6;
|
||||
case TABSTRIP_TOOLBAR_OVERLAP:
|
||||
- // Because tab scrolling puts the tabstrip on a separate layer,
|
||||
- // changing paint order, this overlap isn't compatible with scrolling.
|
||||
- if (base::FeatureList::IsEnabled(tabs::kScrollableTabStrip)) {
|
||||
- return 0;
|
||||
- }
|
||||
- return 1;
|
||||
+ return 0;
|
||||
case TOOLBAR_BUTTON_HEIGHT:
|
||||
@@ -109,18 +104,21 @@
|
||||
case TOOLBAR_STANDARD_SPACING:
|
||||
- return touch_ui ? 12 : 9;
|
||||
+ return touch_ui ? 12 : GetLayoutConstant(TOP_BAR_VERTICAL_PADDING) * 2;
|
||||
case TOOLBAR_HEIGHT_SIDE_PANEL_INSET:
|
||||
return 8;
|
||||
case PAGE_INFO_ICON_SIZE:
|
||||
return 20;
|
||||
@@ -130,8 +132,9 @@ int GetLayoutConstant(LayoutConstant con
|
||||
case DOWNLOAD_ICON_SIZE:
|
||||
return 20;
|
||||
case MAIN_BACKGROUND_REGION_CORNER_RADIUS:
|
||||
+ // Used for the tab strip offset.
|
||||
case TOOLBAR_CORNER_RADIUS:
|
||||
- return 8;
|
||||
+ return 2;
|
||||
case VERTICAL_TAB_HEIGHT:
|
||||
return 30;
|
||||
case VERTICAL_TAB_STRIP_HORIZONTAL_PADDING:
|
||||
return 12;
|
||||
case VERTICAL_TAB_STRIP_BOTTOM_BUTTON_PADDING:
|
||||
@@ -154,13 +152,13 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
@@ -154,13 +157,13 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
return gfx::Insets::VH(8, 20);
|
||||
|
||||
case LOCATION_BAR_ICON_INTERIOR_PADDING:
|
||||
@@ -136,7 +134,7 @@
|
||||
|
||||
case TOOLBAR_ACTION_VIEW: {
|
||||
// TODO(afakhry): Unify all toolbar button sizes on all platforms.
|
||||
@@ -169,7 +167,7 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
@@ -169,7 +172,7 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
}
|
||||
|
||||
case TOOLBAR_BUTTON:
|
||||
@@ -145,7 +143,7 @@
|
||||
|
||||
case BROWSER_APP_MENU_CHIP_PADDING:
|
||||
if (touch_ui) {
|
||||
@@ -185,11 +183,15 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
@@ -185,11 +188,15 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
if (touch_ui) {
|
||||
return GetLayoutInsets(TOOLBAR_BUTTON);
|
||||
} else {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
case DISTANCE_BUTTON_MAX_LINKABLE_WIDTH:
|
||||
return 112;
|
||||
case DISTANCE_CLOSE_BUTTON_MARGIN:
|
||||
@@ -205,19 +205,19 @@ ShapeSysTokens GetShapeSysToken(ShapeCon
|
||||
@@ -207,21 +207,21 @@ ShapeSysTokens GetShapeSysToken(ShapeCon
|
||||
static constexpr auto shape_token_map =
|
||||
base::MakeFixedFlatMap<ShapeContextTokens, ShapeSysTokens>({
|
||||
{ShapeContextTokens::kBadgeRadius, ShapeSysTokens::kXSmall},
|
||||
@@ -29,13 +29,15 @@
|
||||
+ {ShapeContextTokens::kMenuTouchRadius, ShapeSysTokens::kSmall},
|
||||
{ShapeContextTokens::kOmniboxExpandedRadius, ShapeSysTokens::kMedium},
|
||||
{ShapeContextTokens::kTextfieldRadius, ShapeSysTokens::kSmall},
|
||||
{ShapeContextTokens::kToolbarHeightSidePanelContentRadius,
|
||||
ShapeSysTokens::kSmall},
|
||||
{ShapeContextTokens::kSidePanelContentRadius,
|
||||
- ShapeSysTokens::kMedium},
|
||||
+ ShapeSysTokens::kMediumSmall},
|
||||
{ShapeContextTokens::kContentSeparatorRadius, ShapeSysTokens::kSmall},
|
||||
});
|
||||
const auto it = shape_token_map.find(id);
|
||||
@@ -232,6 +232,8 @@ int LayoutProvider::GetCornerRadiusMetri
|
||||
@@ -236,6 +236,8 @@ int LayoutProvider::GetCornerRadiusMetri
|
||||
switch (token) {
|
||||
case ShapeSysTokens::kXSmall:
|
||||
return 4;
|
||||
@@ -46,7 +48,7 @@
|
||||
case ShapeSysTokens::kMediumSmall:
|
||||
--- a/ui/views/layout/layout_provider.h
|
||||
+++ b/ui/views/layout/layout_provider.h
|
||||
@@ -188,6 +188,7 @@ enum class ShapeSysTokens {
|
||||
@@ -191,6 +191,7 @@ enum class ShapeSysTokens {
|
||||
// mapping.
|
||||
kDefault,
|
||||
kXSmall,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
|
||||
@@ -49,7 +49,7 @@ constexpr int kIconLabelBubbleSeparatorW
|
||||
@@ -51,7 +51,7 @@ constexpr int kIconLabelBubbleSeparatorW
|
||||
|
||||
// Amount of space on either side of the separator that appears after the icon
|
||||
// or label.
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
// The length of the separator's fade animation. These values are empirical.
|
||||
constexpr int kIconLabelBubbleFadeInDurationMs = 250;
|
||||
@@ -85,9 +85,7 @@ void IconLabelBubbleView::SeparatorView:
|
||||
@@ -87,9 +87,7 @@ void IconLabelBubbleView::SeparatorView:
|
||||
const SkColor separator_color = SkColorSetA(
|
||||
owner_->delegate_->GetIconLabelBubbleSurroundingForegroundColor(),
|
||||
owner_->delegate_->GetIconLabelBubbleSeparatorAlpha());
|
||||
@@ -20,7 +20,7 @@
|
||||
canvas->DrawLine(gfx::PointF(x, GetLocalBounds().y()),
|
||||
gfx::PointF(x, GetLocalBounds().bottom()), separator_color);
|
||||
}
|
||||
@@ -286,8 +284,7 @@ views::ProposedLayout IconLabelBubbleVie
|
||||
@@ -288,8 +286,7 @@ views::ProposedLayout IconLabelBubbleVie
|
||||
// value to be, since it won't be visible.
|
||||
const int label_x = image_bounds_with_label.right() + GetInternalSpacing();
|
||||
const int available_label_width =
|
||||
@@ -30,7 +30,7 @@
|
||||
gfx::Rect label_bounds(label_x, 0, available_label_width, height);
|
||||
layout.child_layouts.emplace_back(
|
||||
label(),
|
||||
@@ -309,10 +306,9 @@ views::ProposedLayout IconLabelBubbleVie
|
||||
@@ -311,10 +308,9 @@ views::ProposedLayout IconLabelBubbleVie
|
||||
gfx::Rect separator_bounds(label_bounds);
|
||||
separator_bounds.Inset(
|
||||
gfx::Insets::VH((separator_bounds.height() - separator_height) / 2, 0));
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
layout.child_layouts.emplace_back(
|
||||
const_cast<views::View*>(this->separator_view()), ShouldShowSeparator(),
|
||||
@@ -624,7 +620,9 @@ gfx::RoundedCornersF IconLabelBubbleView
|
||||
@@ -626,7 +622,9 @@ gfx::RoundedCornersF IconLabelBubbleView
|
||||
if (radii_.has_value()) {
|
||||
return radii_.value();
|
||||
}
|
||||
@@ -54,7 +54,7 @@
|
||||
}
|
||||
|
||||
void IconLabelBubbleView::SetCornerRadii(const gfx::RoundedCornersF& radii) {
|
||||
@@ -672,7 +670,7 @@ int IconLabelBubbleView::GetInternalSpac
|
||||
@@ -674,7 +672,7 @@ int IconLabelBubbleView::GetInternalSpac
|
||||
}
|
||||
|
||||
constexpr int kDefaultInternalSpacingTouchUI = 10;
|
||||
@@ -63,20 +63,25 @@
|
||||
|
||||
return (ui::TouchUiController::Get()->touch_ui()
|
||||
? kDefaultInternalSpacingTouchUI
|
||||
@@ -825,6 +823,10 @@ SkPath IconLabelBubbleView::GetHighlight
|
||||
SkIntToScalar(radii.lower_right()), SkIntToScalar(radii.lower_right()),
|
||||
SkIntToScalar(radii.lower_left()), SkIntToScalar(radii.lower_left())};
|
||||
@@ -826,6 +824,15 @@ SkPath IconLabelBubbleView::GetHighlight
|
||||
{radii.lower_right(), radii.lower_right()},
|
||||
{radii.lower_left(), radii.lower_left()}};
|
||||
|
||||
+ const SkRect new_rect = RectToSkRect(highlight_bounds);
|
||||
+ const int layout_radius = GetLayoutConstant(LOCATION_BAR_CHILD_CORNER_RADIUS);
|
||||
+ return SkPath().addRoundRect(new_rect, layout_radius, layout_radius);
|
||||
+ const float layout_radius = static_cast<float>(
|
||||
+ GetLayoutConstant(LOCATION_BAR_CHILD_CORNER_RADIUS));
|
||||
+ const SkVector new_radii[4] = {{layout_radius, layout_radius},
|
||||
+ {layout_radius, layout_radius},
|
||||
+ {layout_radius, layout_radius},
|
||||
+ {layout_radius, layout_radius}};
|
||||
+ return SkPath::RRect(SkRRect::MakeRectRadii(new_rect, new_radii));
|
||||
+
|
||||
return SkPath().addRoundRect(rect, sk_radii);
|
||||
return SkPath::RRect(SkRRect::MakeRectRadii(rect, sk_radii));
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
||||
@@ -204,10 +204,10 @@ int IncrementalMinimumWidth(const views:
|
||||
@@ -206,10 +206,10 @@ int IncrementalMinimumWidth(const views:
|
||||
}
|
||||
|
||||
// The padding between the intent chip and the other trailing decorations.
|
||||
@@ -89,7 +94,7 @@
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -245,7 +245,10 @@ LocationBarView::LocationBarView(Browser
|
||||
@@ -255,7 +255,10 @@ LocationBarView::LocationBarView(Browser
|
||||
!v->GetOmniboxController()->IsPopupOpen();
|
||||
}));
|
||||
views::FocusRing::Get(this)->SetOutsetFocusRingDisabled(true);
|
||||
@@ -101,7 +106,7 @@
|
||||
|
||||
#if BUILDFLAG(OS_LEVEL_GEOLOCATION_PERMISSION_SUPPORTED)
|
||||
if (features::IsOsLevelGeolocationPermissionSupportEnabled()) {
|
||||
@@ -303,9 +306,9 @@ void LocationBarView::Init() {
|
||||
@@ -313,9 +316,9 @@ void LocationBarView::Init() {
|
||||
CONTEXT_OMNIBOX_PRIMARY, views::style::STYLE_PRIMARY);
|
||||
|
||||
const gfx::FontList& omnibox_chip_font_list = typography_provider.GetFont(
|
||||
@@ -113,16 +118,16 @@
|
||||
|
||||
auto location_icon_view =
|
||||
std::make_unique<LocationIconView>(omnibox_chip_font_list, this, this);
|
||||
@@ -443,7 +446,7 @@ void LocationBarView::Init() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -458,7 +461,7 @@ void LocationBarView::Init() {
|
||||
// if all page actions (i.e. up to bookmark star) are migrated.
|
||||
const bool should_bridge_containers =
|
||||
!IsPageActionMigrated(PageActionIconType::kBookmarkStar);
|
||||
- static constexpr int kBetweenIconSpacing = 8;
|
||||
+ static constexpr int kBetweenIconSpacing = kIntentChipIntraItemPadding;
|
||||
const page_actions::PageActionViewParams page_action_params{
|
||||
.icon_size = GetLayoutConstant(LOCATION_BAR_TRAILING_ICON_SIZE),
|
||||
.icon_insets = GetLayoutInsets(LOCATION_BAR_PAGE_ACTION_ICON_PADDING),
|
||||
@@ -464,21 +467,11 @@ void LocationBarView::Init() {
|
||||
@@ -480,20 +483,10 @@ void LocationBarView::Init() {
|
||||
// first so that they appear on the left side of the icon container.
|
||||
// TODO(crbug.com/40835681): Improve the ordering heuristics for page action
|
||||
// icons and determine a way to handle simultaneous icon animations.
|
||||
@@ -138,13 +143,12 @@
|
||||
params.types_enabled.push_back(PageActionIconType::kOptimizationGuide);
|
||||
}
|
||||
params.types_enabled.push_back(PageActionIconType::kClickToCall);
|
||||
params.types_enabled.push_back(PageActionIconType::kSmsRemoteFetcher);
|
||||
- params.types_enabled.push_back(PageActionIconType::kAutofillAddress);
|
||||
- params.types_enabled.push_back(PageActionIconType::kManagePasswords);
|
||||
if (!apps::features::ShouldShowLinkCapturingUX()) {
|
||||
params.types_enabled.push_back(PageActionIconType::kIntentPicker);
|
||||
}
|
||||
@@ -488,64 +481,8 @@ void LocationBarView::Init() {
|
||||
@@ -503,64 +496,8 @@ void LocationBarView::Init() {
|
||||
params.types_enabled.push_back(PageActionIconType::kZoom);
|
||||
params.types_enabled.push_back(PageActionIconType::kFileSystemAccess);
|
||||
|
||||
@@ -209,7 +213,7 @@
|
||||
|
||||
if (browser_ && !is_popup_mode_) {
|
||||
params.types_enabled.push_back(PageActionIconType::kBookmarkStar);
|
||||
@@ -562,17 +499,6 @@ void LocationBarView::Init() {
|
||||
@@ -577,17 +514,6 @@ void LocationBarView::Init() {
|
||||
AddChildView(std::make_unique<PageActionIconContainerView>(params));
|
||||
page_action_icon_controller_ = page_action_icon_container_->controller();
|
||||
|
||||
@@ -227,7 +231,7 @@
|
||||
auto clear_all_button = views::CreateVectorImageButton(base::BindRepeating(
|
||||
static_cast<void (OmniboxView::*)(const std::u16string&)>(
|
||||
&OmniboxView::SetUserText),
|
||||
@@ -597,7 +523,7 @@ bool LocationBarView::IsInitialized() co
|
||||
@@ -612,7 +538,7 @@ bool LocationBarView::IsInitialized() co
|
||||
|
||||
int LocationBarView::GetBorderRadius() const {
|
||||
return ChromeLayoutProvider::Get()->GetCornerRadiusMetric(
|
||||
@@ -236,7 +240,7 @@
|
||||
}
|
||||
|
||||
std::unique_ptr<views::Background> LocationBarView::CreateRoundRectBackground(
|
||||
@@ -805,9 +731,9 @@ void LocationBarView::Layout(PassKey) {
|
||||
@@ -820,9 +746,9 @@ void LocationBarView::Layout(PassKey) {
|
||||
// TODO(manukh): Move constants to layout_constants.cc.
|
||||
// The padding between the left edges of the location bar and the LHS icon,
|
||||
// e.g. the page info icon, the google G icon, the selected suggestion icon.
|
||||
@@ -248,7 +252,7 @@
|
||||
|
||||
// Apply indentation to align the omnibox input icon and the text with those
|
||||
// of the suggestions in the popup. However, there are two exceptions where
|
||||
@@ -826,22 +752,22 @@ void LocationBarView::Layout(PassKey) {
|
||||
@@ -841,22 +767,22 @@ void LocationBarView::Layout(PassKey) {
|
||||
!location_icon_view_->ShouldShowLabel() &&
|
||||
!ShouldShowKeywordBubble();
|
||||
if (should_indent) {
|
||||
@@ -275,7 +279,7 @@
|
||||
}
|
||||
|
||||
LocationBarLayout leading_decorations(LocationBarLayout::Position::kLeftEdge,
|
||||
@@ -1438,7 +1364,7 @@ int LocationBarView::GetMinimumTrailingW
|
||||
@@ -1455,7 +1381,7 @@ int LocationBarView::GetMinimumTrailingW
|
||||
}
|
||||
|
||||
gfx::Rect LocationBarView::GetLocalBoundsWithoutEndcaps() const {
|
||||
@@ -284,7 +288,7 @@
|
||||
gfx::Rect bounds_without_endcaps(GetLocalBounds());
|
||||
bounds_without_endcaps.Inset(gfx::Insets::VH(0, border_radius));
|
||||
return bounds_without_endcaps;
|
||||
@@ -1454,9 +1380,9 @@ void LocationBarView::RefreshBackground(
|
||||
@@ -1471,9 +1397,9 @@ void LocationBarView::RefreshBackground(
|
||||
ui::NativeTheme::PreferredContrast::kMore;
|
||||
|
||||
const auto* const color_provider = GetColorProvider();
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
// smaller than this bounds; they'll be centered within the bounds.
|
||||
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_view_views.cc
|
||||
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_view_views.cc
|
||||
@@ -679,14 +679,7 @@ gfx::Rect OmniboxPopupViewViews::GetTarg
|
||||
@@ -680,14 +680,7 @@ gfx::Rect OmniboxPopupViewViews::GetTarg
|
||||
// added if the results section has no height (result set is empty or all
|
||||
// results are hidden). See https://crbug.com/1076646 for additional context.
|
||||
if (popup_height != 0) {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
}
|
||||
|
||||
#avatar {
|
||||
@@ -233,11 +232,6 @@ cr-profile-avatar-selector {
|
||||
@@ -251,11 +250,6 @@ cr-profile-avatar-selector {
|
||||
border: 1px solid var(--google-grey-500);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,19 +11,18 @@
|
||||
<profile-picker-main-view id="mainView" slot="view">
|
||||
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.css
|
||||
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.css
|
||||
@@ -137,11 +137,6 @@ cr-icon[icon='profiles:add'] {
|
||||
@@ -137,10 +137,6 @@ cr-icon[icon='profiles:add'] {
|
||||
--iron-icon-stroke-color: var(--google-grey-700);
|
||||
}
|
||||
|
||||
-#browseAsGuestButton {
|
||||
- margin-inline-start: var(--footer-spacing);
|
||||
- padding: 8px 16px;
|
||||
-}
|
||||
-
|
||||
#browseAsGuestButton > cr-icon {
|
||||
margin-inline-end: 0;
|
||||
--iron-icon-height: 20px;
|
||||
@@ -152,10 +147,10 @@ cr-checkbox {
|
||||
@@ -172,10 +168,10 @@ cr-checkbox {
|
||||
--cr-checkbox-label-color: var(--cr-secondary-text-color);
|
||||
--cr-checkbox-label-padding-start: 8px;
|
||||
justify-content: flex-end;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user