Compare commits

...

10 Commits

Author SHA1 Message Date
wukko daa32b5d67 merge: update to chromium 147.0.7727.55 (#1237) 2026-04-11 19:07:16 +06:00
wukko 676d9c73d8 revision: reset to 1 2026-04-11 18:49:49 +06:00
wukko cac00754b5 helium/core: disable side panel flyover animation
it's just horrible
2026-04-11 18:10:51 +06:00
wukko 3de6ec1c45 helium/ui/layout/vertical: use same tween & duration in flyover
should fix the cheap feel of the expand animation on linux/windows

if it doesn't, we'll just disable the flyover feature altogether
2026-04-11 17:47:40 +06:00
wukko ea414ca19c helium/core: make sure that tab search is in toolbar
and also refactor the patch and remove the flag that breaks it
2026-04-11 17:32:12 +06:00
wukko d75cbc86f4 helium/core/exclude-irrelevant-flags: update for m147 2026-04-10 23:03:56 +06:00
wukko bff1779af4 ungoogled/prunned-binaries: don't null out ActorKeyedService 2026-04-10 23:03:56 +06:00
wukko de9d0e0ef1 patches: refresh for chromium 147.0.7727.55 2026-04-10 23:03:52 +06:00
wukko 2ffbca8411 merge: update ungoogled-chromium to 147.0.7727.55 2026-04-10 10:58:31 +06:00
Blaise f20303e7b1 Update to Chromium 147.0.7727.55 2026-04-07 16:31:23 -05:00
180 changed files with 3748 additions and 3526 deletions
+1 -1
View File
@@ -1 +1 @@
146.0.7680.177
147.0.7727.55
+234 -187
View File
File diff suppressed because it is too large Load Diff
+17 -17
View File
@@ -177,7 +177,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
} // namespace user_data_importer
--- a/tools/metrics/histograms/metadata/sql/histograms.xml
+++ b/tools/metrics/histograms/metadata/sql/histograms.xml
@@ -50,6 +50,7 @@ chromium-metrics-reviews@google.com.
@@ -51,6 +51,7 @@ chromium-metrics-reviews@google.com.
<variant name="DBSCSessions" summary="DBSCSessions"/>
<variant name="DIPS" summary="DIPS"/>
<variant name="DownloadRecord" summary="DownloadRecord"/>
@@ -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
@@ -4297,6 +4297,9 @@ inline constexpr char kServiceWorkerToCo
@@ -4015,6 +4015,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
@@ -1168,6 +1168,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -1184,6 +1184,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
settings_api::PrefType::kBoolean;
@@ -267,7 +267,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Supervised Users. This setting is queried in our Tast tests (b/241943380).
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
@@ -58,6 +58,7 @@
@@ -62,6 +62,7 @@
#include "chrome/browser/ui/webui/settings/about_handler.h"
#include "chrome/browser/ui/webui/settings/accessibility_main_handler.h"
#include "chrome/browser/ui/webui/settings/appearance_handler.h"
@@ -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"
@@ -214,6 +215,7 @@ void SettingsUI::RegisterProfilePrefs(
@@ -213,6 +214,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)
@@ -243,7 +245,7 @@ SettingsUI::SettingsUI(content::WebUI* w
@@ -242,7 +244,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
@@ -1026,6 +1026,8 @@ void AddImportDataStrings(content::WebUI
@@ -1044,6 +1044,8 @@ void AddImportDataStrings(content::WebUI
{"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX},
{"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX},
{"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX},
@@ -319,7 +319,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -1249,6 +1249,10 @@ static_library("ui") {
@@ -1274,6 +1274,10 @@ static_library("ui") {
"webui/settings/accessibility_main_handler.h",
"webui/settings/appearance_handler.cc",
"webui/settings/appearance_handler.h",
@@ -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",
@@ -1414,6 +1418,13 @@ static_library("ui") {
@@ -1450,6 +1454,13 @@ static_library("ui") {
]
}
@@ -401,9 +401,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
~ExternalProcessImporterHost() override;
--- a/components/history/core/browser/history_types.h
+++ b/components/history/core/browser/history_types.h
@@ -55,6 +55,8 @@ enum VisitSource {
@@ -56,6 +56,8 @@ enum VisitSource {
SOURCE_SAFARI_IMPORTED = 5,
SOURCE_ACTOR = 6,
SOURCE_ACTOR = 6, // Added by the GLIC actor.
SOURCE_OS_MIGRATION_IMPORTED = 7,
+ SOURCE_CHROME_IMPORTED = 8,
+ SOURCE_BRAVE_IMPORTED = 9,
@@ -449,16 +449,16 @@ 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
@@ -57,7 +57,9 @@
@@ -56,7 +56,9 @@
#endif // BUILDFLAG(IS_LINUX)
#if !BUILDFLAG(IS_ANDROID)
#include "chrome/common/importer/profile_import.mojom.h"
+#include "chrome/common/importer/chrome_profile_import.mojom.h"
#include "chrome/utility/importer/profile_import_impl.h"
#include "chrome/common/importer/profile_import.mojom.h"
+#include "chrome/utility/importer/brave_profile_import_impl.h"
#include "components/legion/oak_session_service/oak_session_service.h" // nogncheck
#include "chrome/utility/importer/profile_import_impl.h"
#include "components/mirroring/service/mirroring_service.h"
#include "services/proxy_resolver/proxy_resolver_factory_impl.h" // nogncheck
#include "components/private_ai/oak_session_service/oak_session_service.h" // nogncheck
@@ -139,6 +141,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
namespace {
@@ -575,7 +575,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
@@ -11579,6 +11579,15 @@ Check your passwords anytime in <ph name
@@ -11637,6 +11637,15 @@ Check your passwords anytime in <ph name
Microsoft Edge
</message>
</if>
@@ -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"
@@ -550,6 +551,22 @@ void ExtensionRegistrar::AddComponentExt
@@ -566,6 +567,22 @@ void ExtensionRegistrar::AddComponentExt
}
AddExtension(extension);
+12 -12
View File
@@ -27,15 +27,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -74,6 +74,7 @@
@@ -77,6 +77,7 @@
#include "chrome/browser/ui/thumbnails/thumbnail_tab_helper.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/user_education/browser_user_education_interface.h"
+#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/tabs/dragging/tab_drag_controller.h"
#include "chrome/browser/ui/views/tabs/vertical/vertical_tab_strip_metrics.h"
#include "chrome/browser/ui/web_applications/web_app_dialog_utils.h"
#include "chrome/browser/ui/web_applications/web_app_launch_utils.h"
@@ -3987,6 +3988,44 @@ TabStripSelectionChange TabStripModel::S
@@ -3919,6 +3920,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
@@ -615,6 +615,10 @@ class TabStripModel {
@@ -613,6 +613,10 @@ class TabStripModel {
TabStripUserGestureDetails detail = TabStripUserGestureDetails(
TabStripUserGestureDetails::GestureType::kOther));
@@ -105,7 +105,7 @@ 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);
@@ -1457,6 +1466,9 @@ class TabStripModel {
@@ -1470,6 +1479,9 @@ class TabStripModel {
// The focused group. If no group is focused, this is nullopt.
std::optional<tab_groups::TabGroupId> focused_group_;
@@ -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
@@ -312,7 +312,10 @@
@@ -314,7 +314,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"
@@ -330,6 +333,7 @@
@@ -332,6 +335,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"
@@ -839,6 +843,83 @@ class BrowserView::ExclusiveAccessContex
@@ -838,6 +842,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
@@ -86,6 +86,7 @@ class MultiContentsView;
@@ -85,6 +85,7 @@ class MultiContentsView;
class ProjectsPanelView;
class ScrimView;
class SidePanel;
@@ -231,7 +231,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class TabSearchBubbleHost;
class TabStrip;
@@ -590,6 +591,10 @@ class BrowserView : public BrowserWindow
bool IsBorderlessModeEnabled() const override;
bool IsUnframedModeEnabled() 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;
@@ -873,6 +878,7 @@ class BrowserView : public BrowserWindow
@@ -872,6 +877,7 @@ class BrowserView : public BrowserWindow
friend class BrowserViewLayoutDelegateImpl;
friend class BrowserViewLayoutDelegateImplOld;
friend class BrowserViewLayoutDelegateImplBrowsertest;
@@ -249,7 +249,7 @@ 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);
@@ -1457,6 +1463,8 @@ class BrowserView : public BrowserWindow
@@ -1456,6 +1462,8 @@ class BrowserView : public BrowserWindow
TabStripAndWebAppViewsReparentedState::kMaxValue>
tab_strip_web_apps_reparented_state_;
@@ -10,7 +10,7 @@ Subject: Disable fetching of all field trials
--- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
+++ b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
@@ -62,7 +62,7 @@ public abstract class ChromeFeatureList
@@ -61,7 +61,7 @@ public abstract class ChromeFeatureList
* |kFeaturesExposedToJava| in chrome/browser/flags/android/chrome_feature_list.cc
*/
public static String getFieldTrialParamByFeature(String featureName, String paramName) {
@@ -19,7 +19,7 @@ Subject: Disable fetching of all field trials
}
/**
@@ -74,8 +74,7 @@ public abstract class ChromeFeatureList
@@ -73,8 +73,7 @@ public abstract class ChromeFeatureList
*/
public static boolean getFieldTrialParamByFeatureAsBoolean(
String featureName, String paramName, boolean defaultValue) {
@@ -29,7 +29,7 @@ Subject: Disable fetching of all field trials
}
/**
@@ -87,8 +86,7 @@ public abstract class ChromeFeatureList
@@ -86,8 +85,7 @@ public abstract class ChromeFeatureList
*/
public static int getFieldTrialParamByFeatureAsInt(
String featureName, String paramName, int defaultValue) {
@@ -39,7 +39,7 @@ Subject: Disable fetching of all field trials
}
/**
@@ -100,8 +98,7 @@ public abstract class ChromeFeatureList
@@ -99,8 +97,7 @@ public abstract class ChromeFeatureList
*/
public static double getFieldTrialParamByFeatureAsDouble(
String featureName, String paramName, double defaultValue) {
@@ -9,7 +9,7 @@
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2528,6 +2528,7 @@ static_library("browser") {
@@ -2456,6 +2456,7 @@ static_library("browser") {
"//third_party/libyuv",
"//third_party/metrics_proto",
"//third_party/re2",
@@ -19,7 +19,7 @@
"//third_party/widevine/cdm:headers",
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -188,6 +188,7 @@
@@ -190,6 +190,7 @@
#include "components/translate/core/common/translate_util.h"
#include "components/trusted_vault/features.h"
#include "components/ui_devtools/switches.h"
@@ -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") {
@@ -317,6 +317,7 @@ source_set("browser") {
"//third_party/re2",
"//third_party/snappy",
"//third_party/sqlite",
@@ -62,8 +62,8 @@
#include "components/viz/common/switches.h"
#include "components/viz/host/gpu_client.h"
#include "components/viz/host/host_frame_sink_manager.h"
@@ -3709,6 +3710,8 @@ void RenderProcessHostImpl::PropagateBro
switches::kEnableWebGLImageChromium,
@@ -3739,6 +3740,8 @@ void RenderProcessHostImpl::PropagateBro
switches::kEnableWebGLDraftExtensions,
switches::kEnableWebGPUDeveloperFeatures,
switches::kFileUrlPathAlias,
+ switches::kFingerprintingClientRectsNoise,
@@ -73,7 +73,7 @@
switches::kForceHighContrast,
--- a/content/child/BUILD.gn
+++ b/content/child/BUILD.gn
@@ -113,6 +113,7 @@ target(link_target_type, "child") {
@@ -111,6 +111,7 @@ target(link_target_type, "child") {
"//third_party/blink/public/common:buildflags",
"//third_party/blink/public/strings",
"//third_party/ced",
@@ -91,7 +91,7 @@
#include "ui/accessibility/accessibility_features.h"
#include "ui/base/ui_base_features.h"
#include "ui/events/blink/blink_features.h"
@@ -489,6 +490,10 @@ void SetRuntimeFeaturesFromCommandLine(c
@@ -461,6 +462,10 @@ void SetRuntimeFeaturesFromCommandLine(c
true},
{wrf::EnableWebAudioBypassOutputBufferingOptOut,
blink::switches::kWebAudioBypassOutputBufferingOptOut, true},
@@ -104,7 +104,7 @@
for (const auto& mapping : switchToFeatureMapping) {
--- a/third_party/blink/public/platform/web_runtime_features.h
+++ b/third_party/blink/public/platform/web_runtime_features.h
@@ -70,6 +70,9 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
@@ -71,6 +71,9 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
static void EnableLocalNetworkAccessWebRTC(bool);
@@ -124,7 +124,7 @@
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
@@ -1043,6 +1044,11 @@ Document::Document(const DocumentInit& i
@@ -1042,6 +1043,11 @@ Document::Document(const DocumentInit& i
data_(MakeGarbageCollected<DocumentData>(GetExecutionContext())) {
TRACE_EVENT("blink", "Document::Document", perfetto::Flow::FromPointer(this));
DCHECK(agent_);
@@ -136,7 +136,7 @@
if (base::FeatureList::IsEnabled(features::kDelayAsyncScriptExecution) &&
features::kDelayAsyncScriptExecutionDelayByDefaultParam.Get()) {
script_runner_delayer_->Activate();
@@ -1176,6 +1182,14 @@ const Position Document::PositionAdjuste
@@ -1175,6 +1181,14 @@ const Position Document::PositionAdjuste
return Position::BeforeNode(*shadow_host);
}
@@ -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
@@ -571,6 +571,10 @@ class CORE_EXPORT Document : public Cont
@@ -572,6 +572,10 @@ class CORE_EXPORT Document : public Cont
has_xml_declaration_ = has_xml_declaration ? 1 : 0;
}
@@ -176,7 +176,7 @@
// - ScriptSchedulingType::kInOrder
--- a/third_party/blink/renderer/core/dom/element.cc
+++ b/third_party/blink/renderer/core/dom/element.cc
@@ -3444,6 +3444,9 @@ Vector<gfx::RectF> Element::GetClientRec
@@ -3437,6 +3437,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;
@@ -3473,6 +3476,9 @@ gfx::RectF Element::GetBoundingClientRec
@@ -3466,6 +3469,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
@@ -1656,6 +1656,12 @@ DOMRectList* Range::getClientRects() con
@@ -1662,6 +1662,12 @@ DOMRectList* Range::getClientRects() con
Vector<gfx::QuadF> quads;
GetBorderAndTextQuads(quads);
@@ -211,7 +211,7 @@
return MakeGarbageCollected<DOMRectList>(quads);
}
@@ -1663,7 +1669,11 @@ DOMRect* Range::getBoundingClientRect()
@@ -1669,7 +1675,11 @@ DOMRect* Range::getBoundingClientRect()
// TODO(crbug.com/1499981): This should be removed once synchronized scrolling
// impact is understood.
SyncScrollAttemptHeuristic::DidAccessScrollOffset();
@@ -300,7 +300,7 @@
String BaseRenderingContext2D::lang() const {
--- a/third_party/blink/renderer/platform/BUILD.gn
+++ b/third_party/blink/renderer/platform/BUILD.gn
@@ -1812,6 +1812,7 @@ component("platform") {
@@ -1814,6 +1814,7 @@ component("platform") {
"//components/paint_preview/common",
"//components/search_engines:search_engine_utils",
"//components/translate/core/language_detection",
@@ -310,7 +310,7 @@
"//components/webrtc:net_address_utils",
--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc
+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc
@@ -68,4 +68,12 @@ void WebRuntimeFeatures::EnableLocalNetw
@@ -72,4 +72,12 @@ void WebRuntimeFeatures::EnableLocalNetw
RuntimeEnabledFeatures::SetLocalNetworkAccessWebRTCEnabled(enable);
}
@@ -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
@@ -2630,6 +2630,12 @@
@@ -2729,6 +2729,12 @@
status: "stable",
},
{
@@ -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
@@ -2213,6 +2213,7 @@ static_library("browser") {
@@ -2142,6 +2142,7 @@ static_library("browser") {
"//components/net_log",
"//components/network_hints/common:mojo_bindings",
"//components/network_session_configurator/browser",
@@ -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"
@@ -470,6 +474,18 @@ void BrowserProcessImpl::Init() {
@@ -477,6 +481,18 @@ void BrowserProcessImpl::Init() {
pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
base::BindRepeating(&ApplyMetricsReportingPolicy));
@@ -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
@@ -2770,6 +2770,10 @@ inline constexpr char kLogJsConsoleMessa
@@ -2840,6 +2840,10 @@ inline constexpr char kLogJsConsoleMessa
"Enable logging JS console messages in system logs, please note that they "
"may contain PII.";
@@ -217,7 +217,7 @@
.Append(kVerifiedContentsFilename);
--- a/extensions/browser/renderer_startup_helper.cc
+++ b/extensions/browser/renderer_startup_helper.cc
@@ -740,6 +740,18 @@ void RendererStartupHelper::GetMessageBu
@@ -736,6 +736,18 @@ void RendererStartupHelper::GetMessageBu
paths_to_load.push_back(imported_extension->path());
}
@@ -13,7 +13,7 @@
raw_ptr<Profile> profile_;
policy::PolicyDomain policy_domain_;
@@ -179,6 +181,22 @@ bool ManagedValueStoreCache::ExtensionTr
@@ -183,6 +185,22 @@ bool ManagedValueStoreCache::ExtensionTr
return extension->manifest()->FindPath(manifest_keys::kStorageManagedSchema);
}
@@ -36,7 +36,7 @@
// static
void ManagedValueStoreCache::ExtensionTracker::LoadSchemasOnFileTaskRunner(
ExtensionSet extensions,
@@ -208,14 +226,21 @@ void ManagedValueStoreCache::ExtensionTr
@@ -212,14 +230,21 @@ void ManagedValueStoreCache::ExtensionTr
content::GetUIThreadTaskRunner({})->PostTask(
FROM_HERE, base::BindOnce(&ExtensionTracker::Register, self,
@@ -126,7 +126,7 @@
--- a/chrome/common/extensions/BUILD.gn
+++ b/chrome/common/extensions/BUILD.gn
@@ -82,6 +82,7 @@ source_set("extensions") {
@@ -81,6 +81,7 @@ source_set("extensions") {
"//components/url_formatter",
"//components/version_info",
"//extensions:extensions_resources",
@@ -134,7 +134,7 @@
"//extensions/common",
"//extensions/common:common_constants",
"//extensions/common:core_api_provider",
@@ -89,6 +90,7 @@ source_set("extensions") {
@@ -88,6 +89,7 @@ source_set("extensions") {
"//extensions/strings",
"//ui/gfx/geometry",
"//ui/message_center/public/cpp",
@@ -1,6 +1,6 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1415,6 +1415,11 @@ inline constexpr char kExtensionCommands
@@ -1336,6 +1336,11 @@ inline constexpr char kExtensionCommands
inline constexpr char kPluginsAlwaysOpenPdfExternally[] =
"plugins.always_open_pdf_externally";
@@ -11,10 +11,10 @@
+
// Int64 containing the internal value of the time at which the default browser
// infobar was last dismissed by the user.
inline constexpr char kDefaultBrowserLastDeclined[] =
inline constexpr char kDefaultBrowserInfobarLastDeclined[] =
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -80,6 +80,8 @@ void RegisterBrowserPrefs(PrefRegistrySi
@@ -83,6 +83,8 @@ void RegisterBrowserPrefs(PrefRegistrySi
registry->RegisterIntegerPref(prefs::kDefaultBrowserDeclinedCount, 0);
registry->RegisterTimePref(prefs::kDefaultBrowserFirstShownTime,
base::Time());
@@ -137,7 +137,7 @@
raw_ptr<Profile> profile_;
--- a/chrome/browser/ui/views/infobars/confirm_infobar.cc
+++ b/chrome/browser/ui/views/infobars/confirm_infobar.cc
@@ -225,7 +225,9 @@ void ConfirmInfoBar::Layout(PassKey) {
@@ -227,7 +227,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"
@@ -268,6 +269,10 @@ network::mojom::SSLConfigPtr SSLConfigSe
@@ -253,6 +254,10 @@ network::mojom::SSLConfigPtr SSLConfigSe
config->ech_enabled = ech_enabled_.GetValue();
@@ -39,6 +39,6 @@
+ config->ech_enabled = false;
+ }
+
if (post_quantum_enabled_.IsManaged()) {
config->post_quantum_key_agreement_enabled =
post_quantum_enabled_.GetValue();
#if BUILDFLAG(CHROME_ROOT_STORE_SUPPORTED)
config->trust_anchor_ids =
trust_anchor_ids_.has_value()
@@ -162,7 +162,7 @@
background-color: var(--background-color);
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -365,16 +365,16 @@ bool HandleCreditsSwitch(const base::Com
@@ -367,16 +367,16 @@ bool HandleCreditsSwitch(const base::Com
bool HandleVersionSwitches(const base::CommandLine& command_line) {
#if !BUILDFLAG(IS_MAC)
if (command_line.HasSwitch(switches::kProductVersion)) {
@@ -51,7 +51,7 @@
BASE_FEATURE(kRemoveClientHints, "RemoveClientHints", base::FEATURE_DISABLED_BY_DEFAULT);
--- a/third_party/blink/renderer/core/exported/web_view_impl.cc
+++ b/third_party/blink/renderer/core/exported/web_view_impl.cc
@@ -1905,9 +1905,9 @@ void WebView::ApplyWebPreferences(const
@@ -1894,9 +1894,9 @@ void WebView::ApplyWebPreferences(const
prefs.default_maximum_page_scale_factor);
#endif
+23 -23
View File
@@ -43,7 +43,7 @@
"template_url_data.cc",
"template_url_data.h",
"template_url_data_util.cc",
@@ -79,6 +81,7 @@ static_library("search_engines") {
@@ -81,6 +83,7 @@ static_library("search_engines") {
"//components/country_codes",
"//components/crash/core/common:crash_key",
"//components/database_utils",
@@ -61,7 +61,7 @@
#include "third_party/search_engines_data/resources/definitions/prepopulated_engines.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
@@ -520,3 +521,20 @@ std::unique_ptr<TemplateURLData> Templat
@@ -522,3 +523,20 @@ std::unique_ptr<TemplateURLData> Templat
return turl;
}
@@ -111,7 +111,7 @@
#include "url/gurl.h"
#include "url/origin.h"
#include "url/third_party/mozilla/url_parse.h"
@@ -580,6 +585,7 @@ class TemplateURLService::PreLoadingProv
@@ -577,6 +582,7 @@ class TemplateURLService::PreLoadingProv
// TemplateURLService ---------------------------------------------------------
TemplateURLService::TemplateURLService(
PrefService& prefs,
@@ -119,7 +119,7 @@
search_engines::SearchEngineChoiceService& search_engine_choice_service,
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
std::unique_ptr<SearchTermsData> search_terms_data,
@@ -592,6 +598,8 @@ TemplateURLService::TemplateURLService(
@@ -589,6 +595,8 @@ TemplateURLService::TemplateURLService(
prepopulate_data_resolver_(prepopulate_data_resolver),
search_terms_data_(std::move(search_terms_data)),
web_data_service_(web_data_service),
@@ -128,7 +128,7 @@
client_(std::move(client)),
dsp_change_callback_(dsp_change_callback),
pre_loading_providers_(std::make_unique<PreLoadingProviders>()),
@@ -608,11 +616,13 @@ TemplateURLService::TemplateURLService(
@@ -605,11 +613,13 @@ TemplateURLService::TemplateURLService(
TemplateURLService::TemplateURLService(
PrefService& prefs,
@@ -142,7 +142,7 @@
search_engine_choice_service,
prepopulate_data_resolver,
/*search_terms_data=*/std::make_unique<SearchTermsData>(),
@@ -693,6 +703,10 @@ bool TemplateURLService::ShowInActivesLi
@@ -690,6 +700,10 @@ bool TemplateURLService::ShowInActivesLi
}
bool TemplateURLService::HiddenFromLists(const TemplateURL* t_url) const {
@@ -153,7 +153,7 @@
switch (t_url->policy_origin()) {
case TemplateURLData::PolicyOrigin::kDefaultSearchProvider:
return false;
@@ -1529,11 +1543,37 @@ void TemplateURLService::Load() {
@@ -1527,11 +1541,37 @@ void TemplateURLService::Load() {
if (web_data_service_) {
load_handle_ = web_data_service_->GetKeywords(this);
@@ -191,7 +191,7 @@
base::CallbackListSubscription TemplateURLService::RegisterOnLoadedCallback(
base::OnceClosure callback) {
return loaded_ ? base::CallbackListSubscription()
@@ -2520,6 +2560,13 @@ void TemplateURLService::Init() {
@@ -2519,6 +2559,13 @@ void TemplateURLService::Init() {
&TemplateURLService::OnDefaultSearchProviderGUIDChanged,
base::Unretained(this)));
@@ -667,7 +667,7 @@
size_t TemplateURLData::EstimateMemoryUsage() const {
--- a/components/search_engines/template_url_data.h
+++ b/components/search_engines/template_url_data.h
@@ -263,6 +263,9 @@ struct TemplateURLData {
@@ -270,6 +270,9 @@ struct TemplateURLData {
// starter_pack_id > 0.
int starter_pack_id{0};
@@ -725,7 +725,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
@@ -2233,6 +2233,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2245,6 +2245,9 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
{"heliumExtProxyToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION},
@@ -737,7 +737,7 @@
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1995,6 +1995,12 @@
@@ -1999,6 +1999,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>
@@ -766,7 +766,7 @@
</template>
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -218,6 +218,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -221,6 +221,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterIntegerPref(prefs::kHeliumSchemaVersion, 0);
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
@@ -776,7 +776,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
@@ -385,6 +385,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -396,6 +396,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumExtProxyEnabled] =
settings_api::PrefType::kBoolean;
@@ -799,7 +799,7 @@
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/third_party/metrics_proto/omnibox_event.proto
+++ b/third_party/metrics_proto/omnibox_event.proto
@@ -790,6 +790,8 @@ message OmniboxEventProto {
@@ -801,6 +801,8 @@ message OmniboxEventProto {
// or tabbing to it.
TOOLBELT = 9; // Select and activate a search shortcuts action
// from the omnibox toolbelt.
@@ -807,10 +807,10 @@
+ // the Return/Enter key.
}
optional KeywordModeEntryMethod keyword_mode_entry_method = 20;
KeywordModeEntryMethod keyword_mode_entry_method = 20;
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.h
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.h
@@ -308,6 +308,9 @@ class OmniboxEditModel {
@@ -310,6 +310,9 @@ class OmniboxEditModel {
return !is_keyword_hint_ && !keyword_.empty();
}
@@ -820,7 +820,7 @@
// Accepts the current keyword hint as a keyword. `entry_method` indicates how
// the user entered keyword mode.
void AcceptKeyword(
@@ -673,6 +676,10 @@ class OmniboxEditModel {
@@ -684,6 +687,10 @@ class OmniboxEditModel {
// triggering is enabled, false otherwise.
bool AllowKeywordSpaceTriggering() const;
@@ -833,7 +833,7 @@
// - 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
@@ -893,6 +893,24 @@ void OmniboxEditModel::OpenCurrentSelect
@@ -917,6 +917,24 @@ void OmniboxEditModel::OpenCurrentSelect
OpenSelection(popup_selection_, timestamp, disposition, via_keyboard);
}
@@ -858,7 +858,7 @@
void OmniboxEditModel::AcceptKeyword(
OmniboxEventProto::KeywordModeEntryMethod entry_method) {
TRACE_EVENT0("omnibox", "OmniboxEditModel::AcceptKeyword");
@@ -901,6 +919,17 @@ void OmniboxEditModel::AcceptKeyword(
@@ -925,6 +943,17 @@ void OmniboxEditModel::AcceptKeyword(
controller_->StopAutocomplete(/*clear_result=*/false);
@@ -876,7 +876,7 @@
SetIsKeywordHint(false);
keyword_mode_entry_method_ = entry_method;
if (original_user_text_with_keyword_.empty()) {
@@ -943,9 +972,6 @@ void OmniboxEditModel::AcceptKeyword(
@@ -967,9 +996,6 @@ void OmniboxEditModel::AcceptKeyword(
}
base::RecordAction(base::UserMetricsAction("AcceptedKeywordHint"));
@@ -886,7 +886,7 @@
EmitEnteredKeywordModeHistogram(entry_method, turl, !user_text_.empty());
}
@@ -2868,6 +2894,21 @@ bool OmniboxEditModel::AllowKeywordSpace
@@ -2967,6 +2993,21 @@ bool OmniboxEditModel::AllowKeywordSpace
return GetPrefService()->GetBoolean(omnibox::kKeywordSpaceTriggeringEnabled);
}
@@ -908,7 +908,7 @@
bool OmniboxEditModel::ShouldAcceptKeywordAfterInsertingSpaceAtEnd(
const std::u16string& new_text) {
// Check if the user has disabled space triggering.
@@ -2891,16 +2932,20 @@ bool OmniboxEditModel::ShouldAcceptKeywo
@@ -2990,16 +3031,20 @@ bool OmniboxEditModel::ShouldAcceptKeywo
return false;
}
@@ -938,7 +938,7 @@
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -2050,6 +2050,7 @@ bool OmniboxViewViews::HandleKeyEvent(vi
@@ -2090,6 +2090,7 @@ bool OmniboxViewViews::HandleKeyEvent(vi
metric_value);
if (controller()->IsPopupOpen() && !control) {
// Normal case of pressing <return> when the popup is open.
@@ -1,13 +1,13 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -36,6 +36,7 @@
@@ -37,6 +37,7 @@
#include "chrome/browser/apps/app_discovery_service/app_discovery_service.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/channel_selection.h"
#include "chrome/browser/default_browser/default_browser_features.h"
#include "chrome/browser/devtools/features.h"
#include "chrome/browser/first_run/first_run_features.h"
#include "chrome/browser/flag_descriptions.h"
--- /dev/null
+++ b/chrome/browser/channel_selection.cc
@@ -0,0 +1,28 @@
@@ -90,8 +90,8 @@
"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
@@ -264,6 +264,8 @@ static_library("browser") {
"browsing_topics/browsing_topics_service_factory.h",
@@ -257,6 +257,8 @@ static_library("browser") {
"browsing_data/site_data_size_collector.h",
"chained_back_navigation_tracker.cc",
"chained_back_navigation_tracker.h",
+ "channel_selection.cc",
@@ -92,7 +92,7 @@
</template>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2239,6 +2239,10 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2251,6 +2251,10 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumSpellcheckToggle", IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE},
{"heliumSpellcheckToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION},
@@ -105,7 +105,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
@@ -389,6 +389,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -400,6 +400,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumSpellcheckEnabled] =
settings_api::PrefType::kBoolean;
@@ -116,7 +116,7 @@
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -224,6 +224,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -227,6 +227,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
@@ -126,7 +126,7 @@
registry->RegisterBooleanPref(
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -2010,6 +2010,19 @@
@@ -2014,6 +2014,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>
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/system_menu_model_builder.cc
+++ b/chrome/browser/ui/views/frame/system_menu_model_builder.cc
@@ -104,6 +104,12 @@ void SystemMenuModelBuilder::BuildSystem
@@ -100,6 +100,13 @@ void SystemMenuModelBuilder::BuildSystem
model->AddItemWithStringId(IDC_BOOKMARK_ALL_TABS, IDS_BOOKMARK_ALL_TABS);
model->AddItemWithStringId(IDC_NAME_WINDOW, IDS_NAME_WINDOW);
@@ -10,6 +10,7 @@
+ model->AddItemWithStringId(IDC_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL,
+ IDS_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL);
+ }
#if BUILDFLAG(ENABLE_GLIC)
+
#if BUILDFLAG(IS_WIN)
// On Windows we can not remove an item when showing the menu. So only add
// the glic toggle option if glic is enabled when building the menu.
+6 -6
View File
@@ -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
@@ -1166,11 +1166,6 @@ void RenderViewContextMenu::InitMenu() {
@@ -1148,11 +1148,6 @@ void RenderViewContextMenu::InitMenu() {
AppendSpellingAndSearchSuggestionItems();
}
@@ -12,7 +12,7 @@
if (editable) {
AppendOtherEditableItems();
}
@@ -2299,7 +2294,6 @@ void RenderViewContextMenu::AppendPageIt
@@ -2259,7 +2254,6 @@ void RenderViewContextMenu::AppendPageIt
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
AppendLiveCaptionItem();
@@ -20,7 +20,7 @@
if (features::IsReadAnythingMenuShuffleExperimentEnabled()) {
// This will be set to false in AppendRegionSearchItem() if it is called.
@@ -2451,8 +2445,7 @@ void RenderViewContextMenu::AppendMediaR
@@ -2411,8 +2405,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);
}
@@ -3738,30 +3731,9 @@ void RenderViewContextMenu::ExecuteComma
@@ -3686,30 +3679,9 @@ void RenderViewContextMenu::ExecuteComma
}
}
@@ -63,7 +63,7 @@
// static
void RenderViewContextMenu::RegisterMenuShownCallbackForTesting(
@@ -4133,7 +4105,7 @@ bool RenderViewContextMenu::IsVideoFrame
@@ -4075,7 +4047,7 @@ bool RenderViewContextMenu::IsVideoFrame
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
bool draw_icon,
bool add_separator) {
@@ -74,7 +74,7 @@
--- a/chrome/browser/ui/browser_tab_strip_model_delegate.cc
+++ b/chrome/browser/ui/browser_tab_strip_model_delegate.cc
@@ -306,7 +306,7 @@ void BrowserTabStripModelDelegate::AddTo
@@ -301,7 +301,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
@@ -2029,12 +2029,7 @@ GetPedalImplementations(bool incognito,
@@ -2028,12 +2028,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());
@@ -2046,37 +2041,15 @@ GetPedalImplementations(bool incognito,
@@ -2045,37 +2040,15 @@ GetPedalImplementations(bool incognito,
if (!guest) {
add(new OmniboxPedalClearBrowsingData(incognito));
}
+4 -4
View File
@@ -70,7 +70,7 @@
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
@@ -26,11 +26,14 @@
@@ -25,11 +25,14 @@
#include "chrome/browser/component_updater/component_updater_utils.h"
#include "chrome/browser/component_updater/updater_state.h"
#include "chrome/browser/net/system_network_context_manager.h"
@@ -85,7 +85,7 @@
#include "components/prefs/pref_service.h"
#include "components/services/patch/content/patch_service.h"
#include "components/services/unzip/content/unzip_service.h"
@@ -55,6 +58,26 @@
@@ -54,6 +57,26 @@
namespace component_updater {
namespace {
@@ -112,7 +112,7 @@
class ChromeConfigurator : public update_client::Configurator {
public:
ChromeConfigurator(const base::CommandLine* cmdline,
@@ -154,12 +177,12 @@ base::TimeDelta ChromeConfigurator::Upda
@@ -153,12 +176,12 @@ base::TimeDelta ChromeConfigurator::Upda
std::vector<GURL> ChromeConfigurator::UpdateUrl() const {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
@@ -162,7 +162,7 @@
std::move(callback), cus->GetRegisteredVersion(crx_id),
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -7067,6 +7067,9 @@ Keep your key file in a safe place. You
@@ -7077,6 +7077,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 -1
View File
@@ -1,6 +1,6 @@
--- a/components/search/ntp_features.cc
+++ b/components/search/ntp_features.cc
@@ -225,7 +225,7 @@ BASE_FEATURE(kNtpNextFeatures, base::FEA
@@ -219,7 +219,7 @@ BASE_FEATURE(kNtpNextFeatures, base::FEA
BASE_FEATURE(kNtpOneGoogleBarAsyncBarParts, base::FEATURE_DISABLED_BY_DEFAULT);
// If enabled, a footer will show on the NTP.
@@ -0,0 +1,18 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -234,14 +234,9 @@ BASE_FEATURE(kThreeButtonPasswordSaveDia
BASE_FEATURE(kToolbarHeightSidePanel, base::FEATURE_DISABLED_BY_DEFAULT);
-BASE_FEATURE(kSidePanelFlyoverAnimation, base::FEATURE_ENABLED_BY_DEFAULT);
+BASE_FEATURE(kSidePanelFlyoverAnimation, base::FEATURE_DISABLED_BY_DEFAULT);
bool UseSidePanelFlyoverAnimation() {
-#if BUILDFLAG(IS_MAC)
- // Mac can smoothly resize contents and does not need flyover.
return false;
-#else
- return base::FeatureList::IsEnabled(kSidePanelFlyoverAnimation);
-#endif
}
// Enables enterprise profile badging for managed profiles on the toolbar avatar
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -499,7 +499,7 @@ BASE_FEATURE(kByDateHistoryInSidePanel,
@@ -435,7 +435,7 @@ BASE_FEATURE(kByDateHistoryInSidePanel,
BASE_FEATURE(kTabStripBrowserApi, base::FEATURE_DISABLED_BY_DEFAULT);
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -150,13 +150,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
@@ -171,13 +171,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
// Enables preview images in tab-hover cards.
// https://crbug.com/928954
@@ -1,23 +0,0 @@
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
@@ -249,8 +249,7 @@ void PinnedToolbarActionsModel::MaybeMig
UpdatePinnedState(kActionShowChromeLabs, true);
pref_service_->SetBoolean(prefs::kPinnedChromeLabsMigrationComplete, true);
}
- if (features::HasTabSearchToolbarButton() &&
- !pref_service_->GetBoolean(prefs::kTabSearchMigrationComplete)) {
+ if ((false)) {
UpdatePinnedState(kActionTabSearch, true);
pref_service_->SetBoolean(prefs::kTabSearchMigrationComplete, true);
}
--- a/chrome/browser/ui/toolbar/toolbar_pref_names.cc
+++ b/chrome/browser/ui/toolbar/toolbar_pref_names.cc
@@ -23,7 +23,7 @@ void RegisterProfilePrefs(user_prefs::Pr
default_pinned_actions.Append(chrome_labs_action.value());
}
- if (features::HasTabSearchToolbarButton()) {
+ if ((false)) {
const std::optional<std::string>& tab_search_action =
actions::ActionIdMap::ActionIdToString(kActionTabSearch);
if (tab_search_action.has_value()) {
@@ -1,17 +1,23 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -12935,11 +12935,338 @@ const FeatureEntry kFeatureEntries[] = {
@@ -13201,11 +13201,387 @@ const FeatureEntry kFeatureEntries[] = {
// AboutFlagsHistogramTest unit test to verify this process).
};
+// Flags that either break Helium functionality or are not relevant to Helium
+constexpr auto kExcludedFlags = base::MakeFixedFlatSet<std::string_view>({
+ // Misc UI features
+ "enable-immersive-fullscreen-toolbar",
+ "windows11-mica-titlebar",
+ "omnibox-toolbelt",
+ "webui-omnibox-popup",
+ "top-chrome-touch-ui",
+ "glass-toolbar",
+ "vertical-tabs",
+ "detached-tabs",
+ "first-run-desktop-refresh",
+ "first-run-desktop-choice-screen-refresh",
+ "first-run-desktop-revamp",
+ "horizontal-tab-strip-combo-button",
+
+ // Google's experimental APIs that don't work in Helium
+ // due to missing model binaries
@@ -43,8 +49,6 @@
+
+ // Google Account & Sync & Synced profiles
+ "use-sync-sandbox",
+ "offer-migration-to-dice-users",
+ "web-signin-leads-to-implicitly-signed-in-state",
+ "collaboration-shared-tab-group-account-data",
+ "enable-cross-device-pref-tracker",
+ "pdf-save-to-drive",
@@ -68,6 +72,10 @@
+ "omnibox-drive-suggestions-no-sync-requirement",
+ "enable-standard-device-bound-session-google",
+ "enable-standard-device-bound-session-google-experiment-id",
+ "disable-u18-feedback-desktop",
+ "collaboration-entreprise-v2",
+ "send-tab-to-self-enhanced-handoff",
+ "collaboration-messaging",
+
+ // Gemini Nano / Other Google models
+ "prompt-api-for-gemini-nano",
@@ -80,6 +88,8 @@
+ "page-content-annotations",
+ "page-content-annotations-remote-page-metadata",
+ "gemini-antiscam-protections-metrics-only",
+ "summarizer-api-for-gemini-nano",
+ "summarizer-api-performance-preference",
+
+ // AI Mode
+ "ai-mode-omnibox-entry-point",
@@ -108,10 +118,8 @@
+ "contextual-tasks-context",
+ "contextual-tasks-suggestions-enabled",
+ "contextual-tasks-context-library",
+ "contextual-tasks-expand-button",
+
+ // Shopping stuff
+ "product-specifications",
+ "shopping-list",
+ "shopping-alternate-server",
+ "price-tracking-subscription-service-locale-key",
@@ -123,6 +131,7 @@
+ // History
+ "history-embeddings",
+ "history-embeddings-answers",
+ "browsing-history-similar-visits-grouping",
+
+ // Optimization Guide
+ "optimization-guide-debug-logs",
@@ -178,6 +187,10 @@
+ "mobile-promo-on-desktop-force-promo-type",
+ "mobile-promo-on-desktop-with-qr-code",
+ "mobile-promo-on-desktop-with-reminder",
+ "mobile-promo-on-desktop-with-qr-code-wave-1",
+ "mobile-promo-on-desktop-with-reminder-wave-1",
+ "signin-promo-on-avatar-pill",
+ "mobile-ntp-promo-on-desktop",
+
+ // GLIC (AI agent stuff)
+ "glic",
@@ -190,20 +203,50 @@
+ "glic-panel-reset-on-session-timeout",
+ "glic-panel-reset-size-and-location-on-open",
+ "glic-pre-warming",
+ "glic-fre-pre-warming",
+ "browsing-history-actor-integration-M1",
+ "browsing-history-actor-integration-M2",
+ "browsing-history-actor-integration-M3",
+ "glic-side-panel",
+ "glic-disable-actor-safety-checks",
+ "glic-selection-prompt",
+ "glic-guest-url-presets",
+ "glic-set-g1-for-mi",
+ "glic-reset-mi-enablement-by-tier",
+ "glic-default-tab-context-setting",
+ "glic-trust-first-onboarding",
+ "glic-share-image",
+ "glic-mi-tab-context-menu",
+ "glic-live-mode-only-glow",
+ "glic-unified-fre-screen",
+ "glic-toolbar-height-side-panel",
+ "glic-daisy-chain-new-tabs",
+ "glic-chrome-status-icon",
+ "glic-capture-region",
+ "glic-button-alt-label",
+ "glic-button-pressed-state",
+ "glic-bind-pinned-unbound-tab",
+ "glic-default-to-last-active-conversation",
+ "glic-contextual-cue-bubble",
+ "glic-entrypoint-variations",
+ "glic-print-menu-item",
+ "glic-tab-restoration",
+ "glic-actor-cursor",
+ "glic-actor-autofill",
+ "chrome-finds-internals",
+ "sync-gemini-threads",
+ "sync-ai-threads",
+ "projects-panel",
+ "skills",
+
+ // Live captions
+ "enable-headless-live-caption",
+ "enable-headless-live-caption-early-start",
+
+ // Google Wallet
+ "wallet-service-use-sandbox",
+ "enable-secure-payment-confirmation-fallback-ux",
+ "enable-web-payments-experimental-features",
+ "enable-debug-for-store-billing",
+ "enable-secure-payment-confirmation-ux-refresh",
+
+ // Safety Hub
+ "safety-hub-weak-reused-passwords",
@@ -237,10 +280,10 @@
+ "read-anything-with-readability-enabled",
+ "read-anything-omnibox-chip",
+ "read-anything-immersive-reading-mode",
+ "read-anything-line-focus",
+
+ // Misc Google experiments
+ "happiness-tracking-surveys-for-desktop-demo",
+ "permissions-ai-v3",
+ "permissions-ai-v4",
+ "permissions-ai-p92",
+ "private-metrics-enable-puma",
@@ -263,6 +306,9 @@
+ "omnibox-zero-suggest-prefetching-on-web",
+ "cws-promotion-banner-flag",
+ "use-primary-and-tonal-buttons-for-promos",
+ "safe-browsing-local-lists-use-sbv5",
+ "report-unsafe-site",
+ "enable-force-download-to-onedrive",
+
+ // Autofill
+ "reintroduce-hybrid-passkey-entry-point",
@@ -317,6 +363,9 @@
+ "autofill-enable-non-affiliated-loyalty-cards",
+ "autofill-disable-bnpl-country-check-for-testing",
+ "password-upload-ui-update",
+ "autofill-enable-new-amex-network-art",
+ "password-save-in-context-error-resolution-on-desktop",
+ "autofill-at-memory",
+
+ // Add new entries above this line and categorize them accordingly.
+});
@@ -340,7 +389,7 @@
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
~FlagsStateSingleton() override = default;
@@ -12958,7 +13285,7 @@ class FlagsStateSingleton : public flags
@@ -13224,7 +13600,7 @@ class FlagsStateSingleton : public flags
void RestoreDefaultState() {
flags_state_ =
@@ -349,7 +398,7 @@
}
private:
@@ -13295,7 +13622,7 @@ base::span<const FeatureEntry> GetFeatur
@@ -13551,7 +13927,7 @@ base::span<const FeatureEntry> GetFeatur
!entries_for_testing->empty()) {
return *entries_for_testing;
}
@@ -1,16 +0,0 @@
--- a/extensions/browser/extension_registrar.cc
+++ b/extensions/browser/extension_registrar.cc
@@ -542,9 +542,12 @@ void ExtensionRegistrar::AddComponentExt
if (old_version.IsValid()) {
UnregisterServiceWorkerWithRootScope(extension);
}
+
+ base::flat_set<int> disable_reasons = GetDisableReasonsOnInstalled(extension);
+
// TODO(crbug.com/40508457): If needed, add support for Declarative Net
// Request to component extensions and pass the ruleset install prefs here.
- AddNewOrUpdatedExtension(extension, {}, kInstallFlagNone,
+ AddNewOrUpdatedExtension(extension, std::move(disable_reasons), kInstallFlagNone,
syncer::StringOrdinal(), std::string(),
/*ruleset_install_prefs=*/{});
return;
@@ -85,7 +85,7 @@
},
--- a/chrome/chrome_paks.gni
+++ b/chrome/chrome_paks.gni
@@ -141,6 +141,7 @@ template("chrome_extra_paks") {
@@ -145,6 +145,7 @@ template("chrome_extra_paks") {
"$root_gen_dir/components/translate_internals_resources.pak",
"$root_gen_dir/components/user_actions_ui_resources.pak",
"$root_gen_dir/components/version_ui_resources.pak",
@@ -93,7 +93,7 @@
"$root_gen_dir/content/attribution_internals_resources.pak",
"$root_gen_dir/content/content_resources.pak",
"$root_gen_dir/content/histograms_resources.pak",
@@ -169,6 +170,7 @@ template("chrome_extra_paks") {
@@ -177,6 +178,7 @@ template("chrome_extra_paks") {
"//components/enterprise/connectors/resources",
"//components/metrics:server_urls_grd",
"//components/resources",
@@ -103,14 +103,14 @@
"//mojo/public/js:resources",
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -587,6 +587,7 @@ source_set("extensions") {
@@ -590,6 +590,7 @@ source_set("extensions") {
"//components/update_client:common_impl",
"//components/user_prefs",
"//components/vector_icons",
+ "//components/extstore_fixups",
"//content/public/browser",
"//extensions/browser",
"//extensions/browser:keepalive",
"//extensions/browser:crx_installer",
--- a/chrome/browser/extensions/chrome_component_extension_resource_manager.cc
+++ b/chrome/browser/extensions/chrome_component_extension_resource_manager.cc
@@ -18,6 +18,7 @@
+2 -2
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -404,11 +404,11 @@ namespace about_flags {
@@ -410,11 +410,11 @@ namespace about_flags {
namespace {
@@ -15,7 +15,7 @@
#endif // USE_AURA
#if defined(USE_AURA)
@@ -4664,11 +4664,13 @@ const FeatureEntry::FeatureVariation
@@ -4824,11 +4824,13 @@ const FeatureEntry::FeatureVariation kSi
// calculate and verify checksum.
//
// When adding a new choice, add it to the end of the list.
@@ -1,6 +1,6 @@
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -12003,6 +12003,9 @@ Check your passwords anytime in <ph name
@@ -12061,6 +12061,9 @@ Check your passwords anytime in <ph name
<message name="IDS_TAB_CXMENU_DUPLICATE" desc="The label of the 'Duplicate' Tab context menu item.">
Duplicate
</message>
@@ -10,7 +10,7 @@
<message name="IDS_TAB_CXMENU_CLOSETAB" desc="The label of the tab context menu item for closing one or more tabs.">
Close
</message>
@@ -12122,6 +12125,9 @@ Check your passwords anytime in <ph name
@@ -12180,6 +12183,9 @@ Check your passwords anytime in <ph name
<message name="IDS_TAB_CXMENU_DUPLICATE" desc="In Title Case: The label of the 'Duplicate' Tab context menu item.">
Duplicate
</message>
@@ -23,9 +23,9 @@
--- a/chrome/browser/ui/tabs/tab_strip_model.h
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
@@ -785,6 +785,7 @@ class TabStripModel {
CommandGlicCreateNewChat,
CommandGlicSwitchToRecentConversation,
CommandGlicUnshare,
#endif
+ CommandDiscard,
CommandLast
};
@@ -33,8 +33,8 @@
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -44,8 +44,11 @@
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/glic/public/glic_enabling.h"
#include "chrome/browser/lifetime/browser_shutdown.h"
+#include "chrome/browser/performance_manager/policies/discard_eligibility_policy.h"
+#include "chrome/browser/performance_manager/public/user_tuning/user_tuning_utils.h"
@@ -44,7 +44,7 @@
#include "chrome/browser/resource_coordinator/tab_helper.h"
#include "chrome/browser/send_tab_to_self/send_tab_to_self_util.h"
#include "chrome/browser/ui/bookmarks/bookmark_utils.h"
@@ -90,6 +93,7 @@
@@ -94,6 +97,7 @@
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/feature_engagement/public/feature_constants.h"
@@ -52,7 +52,7 @@
#include "components/prefs/pref_service.h"
#include "components/reading_list/core/reading_list_model.h"
#include "components/split_tabs/split_tab_id.h"
@@ -164,6 +168,54 @@ bool ShouldForgetOpenersForTransition(ui
@@ -163,6 +167,54 @@ bool ShouldForgetOpenersForTransition(ui
ui::PAGE_TRANSITION_AUTO_TOPLEVEL);
}
@@ -107,7 +107,7 @@
} // namespace
TabGroupModelFactory::TabGroupModelFactory() {
@@ -2494,6 +2546,21 @@ bool TabStripModel::IsContextMenuCommand
@@ -2412,6 +2464,21 @@ bool TabStripModel::IsContextMenuCommand
case CommandReload:
return delegate_->CanReload();
@@ -129,7 +129,7 @@
case CommandCloseOtherTabs:
case CommandCloseTabsToRight: {
return !GetIndicesClosedByCommand(context_index, command_id).empty();
@@ -2660,6 +2727,27 @@ void TabStripModel::ExecuteContextMenuCo
@@ -2579,6 +2646,27 @@ void TabStripModel::ExecuteContextMenuCo
}
break;
}
@@ -159,7 +159,7 @@
base::UmaHistogramCounts1000("Tab.ContextMenu.CloseTab.SelectedTabsCount",
--- a/chrome/browser/ui/tabs/tab_menu_model.cc
+++ b/chrome/browser/ui/tabs/tab_menu_model.cc
@@ -343,6 +343,9 @@ void TabMenuModel::Build(TabStripModel*
@@ -298,6 +298,9 @@ void TabMenuModel::Build(TabStripModel*
}
AddSeparator(ui::NORMAL_SEPARATOR);
@@ -171,7 +171,7 @@
IDS_TAB_CXMENU_CLOSEOTHERTABS);
--- a/chrome/browser/ui/performance_controls/memory_saver_chip_tab_helper.cc
+++ b/chrome/browser/ui/performance_controls/memory_saver_chip_tab_helper.cc
@@ -125,8 +125,9 @@ bool MemorySaverChipTabHelper::ComputeSh
@@ -116,8 +116,9 @@ bool MemorySaverChipTabHelper::ComputeSh
void MemorySaverChipTabHelper::ComputeChipState(
content::NavigationHandle* navigation_handle) {
@@ -183,7 +183,7 @@
bool const was_discarded = navigation_handle->ExistingDocumentWasDiscarded();
std::optional<mojom::LifecycleUnitDiscardReason> const discard_reason =
memory_saver::GetDiscardReason(navigation_handle->GetWebContents());
@@ -135,7 +136,8 @@ void MemorySaverChipTabHelper::ComputeCh
@@ -126,7 +127,8 @@ void MemorySaverChipTabHelper::ComputeCh
if (!(is_memory_saver_mode_enabled_ && was_discarded &&
(discard_reason == mojom::LifecycleUnitDiscardReason::PROACTIVE ||
@@ -193,27 +193,16 @@
is_site_supported)) {
chip_state_ = memory_saver::ChipState::HIDDEN;
} else if (ComputeShouldEducateAboutMemorySavings()) {
--- a/chrome/browser/ui/tabs/tab_renderer_data.cc
+++ b/chrome/browser/ui/tabs/tab_renderer_data.cc
@@ -154,15 +154,16 @@ TabRendererData TabRendererData::FromTab
std::optional<mojom::LifecycleUnitDiscardReason> discard_reason =
memory_saver::GetDiscardReason(contents);
--- a/chrome/browser/ui/tab_ui_helper.cc
+++ b/chrome/browser/ui/tab_ui_helper.cc
@@ -357,7 +357,9 @@ bool TabUIHelper::ShouldShowDiscardStatu
(discard_reason.value() ==
mojom::LifecycleUnitDiscardReason::PROACTIVE ||
discard_reason.value() ==
- mojom::LifecycleUnitDiscardReason::SUGGESTED);
+ mojom::LifecycleUnitDiscardReason::SUGGESTED ||
+ discard_reason.value() ==
+ mojom::LifecycleUnitDiscardReason::EXTERNAL);
}
- // Only show discard status for tabs that were proactively discarded or
- // suggested by the PerformanceDetectionManager to prevent confusion to users
- // on why a tab was discarded. Also, the favicon discard animation may use
- // resources so the animation should be limited to prevent performance issues.
+ // Show discard status for tabs discarded by Memory Saver, by the performance
+ // detection manager, or explicitly by the user via Hibernate. The favicon
+ // discard animation may use resources so the animation should be limited to
+ // discard reasons that intentionally surface this state to the user.
data.should_show_discard_status =
memory_saver::IsURLSupported(contents->GetURL()) &&
contents->WasDiscarded() && discard_reason.has_value() &&
(discard_reason.value() == mojom::LifecycleUnitDiscardReason::PROACTIVE ||
- discard_reason.value() == mojom::LifecycleUnitDiscardReason::SUGGESTED);
+ discard_reason.value() == mojom::LifecycleUnitDiscardReason::SUGGESTED ||
+ discard_reason.value() == mojom::LifecycleUnitDiscardReason::EXTERNAL);
if (contents->WasDiscarded()) {
data.discarded_memory_savings =
std::optional<base::ByteSize> TabUIHelper::GetDiscardedMemorySavings() {
+34 -13
View File
@@ -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
@@ -1501,6 +1501,11 @@ inline constexpr char kPageColorsBlockLi
@@ -1432,6 +1432,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
@@ -154,6 +154,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -157,6 +157,8 @@ void RegisterBrowserUserPrefs(user_prefs
prefs::kWebRTCDiagnosticLogCollectionAllowedForOrigins,
base::ListValue());
@@ -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
@@ -282,6 +282,10 @@ BrowserCommandController::BrowserCommand
@@ -320,6 +320,10 @@ BrowserCommandController::BrowserCommand
base::Unretained(this)));
#endif // BUILDFLAG(ENABLE_PRINTING)
profile_pref_registrar_.Add(
@@ -51,7 +51,7 @@
policy::policy_prefs::kDownloadRestrictions,
base::BindRepeating(&BrowserCommandController::UpdateSaveAsState,
base::Unretained(this)));
@@ -413,7 +417,9 @@ bool BrowserCommandController::IsReserve
@@ -451,7 +455,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 ||
@@ -62,7 +62,7 @@
}
void BrowserCommandController::TabStateChanged() {
@@ -1232,6 +1238,14 @@ bool BrowserCommandController::ExecuteCo
@@ -1262,6 +1268,14 @@ bool BrowserCommandController::ExecuteCo
case IDC_DUPLICATE_TARGET_TAB:
DuplicateKeyboardFocusedTab(browser_);
break;
@@ -77,7 +77,7 @@
// Hosted App commands
case IDC_COPY_URL:
CopyURL(browser_, browser_->tab_strip_model()->GetActiveWebContents());
@@ -2019,6 +2033,12 @@ void BrowserCommandController::UpdateCom
@@ -2033,6 +2047,12 @@ void BrowserCommandController::UpdateCom
bool dev_tools_enabled = DevToolsWindow::AllowDevToolsFor(
profile(), browser_->tab_strip_model()->GetActiveWebContents());
@@ -154,7 +154,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
@@ -604,6 +604,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -615,6 +615,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
(*s_allowlist)[::prefs::kCaretBrowsingEnabled] =
settings_api::PrefType::kBoolean;
@@ -184,7 +184,7 @@
<message name="IDS_SETTINGS_APPEARANCE" desc="Name of the settings page which displays appearance preferences.">
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -287,6 +287,7 @@ void AddA11yStrings(content::WebUIDataSo
@@ -285,6 +285,7 @@ void AddA11yStrings(content::WebUIDataSo
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC)
{"axTreeFixingTitle", IDS_SETTINGS_AX_TREE_FIXING_TITLE},
{"axTreeFixingSubtitle", IDS_SETTINGS_AX_TREE_FIXING_SUBTITLE},
@@ -208,7 +208,7 @@
label="$i18n{autoPinNewTabGroups}">
--- a/third_party/devtools-frontend/src/front_end/panels/elements/elements-meta.ts
+++ b/third_party/devtools-frontend/src/front_end/panels/elements/elements-meta.ts
@@ -446,11 +446,11 @@ UI.ActionRegistration.registerActionExte
@@ -450,11 +450,11 @@ UI.ActionRegistration.registerActionExte
iconClass: UI.ActionRegistration.IconClass.LARGEICON_NODE_SEARCH,
bindings: [
{
@@ -224,7 +224,7 @@
],
--- a/chrome/browser/ui/cocoa/main_menu_builder.mm
+++ b/chrome/browser/ui/cocoa/main_menu_builder.mm
@@ -193,6 +193,8 @@ NSMenuItem* BuildEditMenu(NSApplication*
@@ -197,6 +197,8 @@ NSMenuItem* BuildEditMenu(NSApplication*
Item(IDS_COPY_MAC)
.tag(IDC_CONTENT_CONTEXT_COPY)
.action(@selector(copy:)),
@@ -233,7 +233,7 @@
Item(IDS_PASTE_MAC)
.tag(IDC_CONTENT_CONTEXT_PASTE)
.action(@selector(paste:)),
@@ -535,6 +537,8 @@ NSMenuItem* BuildTabMenu(NSApplication*
@@ -542,6 +544,8 @@ NSMenuItem* BuildTabMenu(NSApplication*
Item(is_rtl ? IDS_TAB_CXMENU_NEWTABTOLEFT
: IDS_TAB_CXMENU_NEWTABTORIGHT)
.command_id(IDC_NEW_TAB_TO_RIGHT),
@@ -244,7 +244,28 @@
Item(IDS_PREV_TAB_MAC)
--- a/chrome/browser/ui/cocoa/share_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/share_menu_controller.mm
@@ -98,12 +98,6 @@ bool CanShare() {
@@ -81,20 +81,6 @@ bool CanShare() {
forEvent:(NSEvent*)event
target:(id*)target
action:(SEL*)action {
- // Load the menu if it hasn't loaded already.
- if (!menu.numberOfItems) {
- // Only populate the "Email Link" item, as it is the only item with a key
- // equivalent. We defer the expensive population of sharing services until
- // the menu is actually opened (see menuNeedsUpdate:).
- // This prevents hangs on key presses when the menu is not open.
- // See https://crbug.com/1309422.
- NSMenuItem* email = [[NSMenuItem alloc]
- initWithTitle:l10n_util::GetNSString(IDS_EMAIL_LINK_MAC)
- action:@selector(emailLink:)
- keyEquivalent:[self keyEquivalentForMail]];
- email.target = self;
- [menu addItem:email];
- }
// Per tapted@'s comment in BookmarkMenuCocoaController, it's fine
// to return NO here if an item will handle this. This is why it's
// necessary to ensure the menu is loaded above.
@@ -116,12 +102,6 @@ bool CanShare() {
// to fetch sharing services that can handle the NSURL type.
NSArray* services = [NSSharingService
sharingServicesForItems:@[ [NSURL URLWithString:@"https://google.com"] ]];
@@ -257,7 +278,7 @@
for (NSSharingService* service in services) {
// Email share service causes mysterious crashes, so share directly.
// See https://crbug.com/356643975
@@ -297,13 +291,4 @@ bool CanShare() {
@@ -315,13 +295,4 @@ bool CanShare() {
return item;
}
+37 -35
View File
@@ -52,7 +52,7 @@
#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)
@@ -197,6 +198,20 @@ AudioBuffer::AudioBuffer(AudioBus* bus)
}
}
@@ -94,7 +94,7 @@
uint32_t length,
--- a/third_party/blink/renderer/modules/webaudio/audio_context.cc
+++ b/third_party/blink/renderer/modules/webaudio/audio_context.cc
@@ -1125,7 +1125,12 @@ double AudioContext::baseLatency() const
@@ -1133,7 +1133,12 @@ double AudioContext::baseLatency() const
DCHECK_CALLED_ON_VALID_SEQUENCE(main_thread_sequence_checker_);
DCHECK(destination());
@@ -172,7 +172,7 @@
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
@@ -328,6 +328,8 @@ class MODULES_EXPORT BaseAudioContext
@@ -331,6 +331,8 @@ class MODULES_EXPORT BaseAudioContext
// if the execution context does not exist.
bool CheckExecutionContextAndThrowIfNecessary(ExceptionState&);
@@ -183,7 +183,7 @@
--- a/third_party/blink/renderer/modules/webaudio/offline_audio_context.cc
+++ b/third_party/blink/renderer/modules/webaudio/offline_audio_context.cc
@@ -411,6 +411,8 @@ void OfflineAudioContext::FireCompletion
@@ -419,6 +419,8 @@ void OfflineAudioContext::FireCompletion
return;
}
@@ -203,7 +203,7 @@
#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
@@ -99,7 +101,8 @@ bool RealtimeAnalyser::SetFftSize(uint32
}
void RealtimeAnalyser::GetFloatFrequencyData(DOMFloat32Array* destination_array,
@@ -213,19 +213,20 @@
DCHECK(IsMainThread());
DCHECK(destination_array);
@@ -115,16 +118,22 @@ void RealtimeAnalyser::GetFloatFrequency
const float* source = magnitude_buffer_.Data();
float* destination = destination_array->Data();
@@ -113,17 +116,23 @@ void RealtimeAnalyser::GetFloatFrequency
const size_t source_length = magnitude_buffer_.size();
const size_t len = std::min(source_length, destination_array->length());
if (len > 0) {
+ const bool jitter_enabled = base::FeatureList::IsEnabled(
+ blink::features::kHeliumNoiseAudio);
+
base::span<float> destination = destination_array->AsSpan();
for (unsigned i = 0; i < len; ++i) {
const float linear_value = UNSAFE_TODO(source[i]);
const float linear_value = magnitude_buffer_[i];
const double db_mag = audio_utilities::LinearToDecibels(linear_value);
- UNSAFE_TODO(destination[i]) = static_cast<float>(db_mag);
- destination[i] = static_cast<float>(db_mag);
+ auto db_value = static_cast<float>(db_mag);
+ UNSAFE_TODO(destination[i]) = jitter_enabled ?
+ destination[i] = jitter_enabled ?
+ BaseAudioContext::JitterAudioData(db_value, context) : db_value;
}
}
@@ -238,16 +239,17 @@
DCHECK(IsMainThread());
DCHECK(destination_array);
@@ -150,15 +159,22 @@ void RealtimeAnalyser::GetByteFrequencyD
const float* source = magnitude_buffer_.Data();
unsigned char* destination = destination_array->Data();
@@ -146,6 +155,9 @@ void RealtimeAnalyser::GetByteFrequencyD
: 1.0 / (max_decibels_ - min_decibels_);
const double min_decibels = min_decibels_;
+ const bool jitter_enabled = base::FeatureList::IsEnabled(
+ blink::features::kHeliumNoiseAudio);
+
base::span<unsigned char> destination = destination_array->AsSpan();
for (unsigned i = 0; i < len; ++i) {
const float linear_value = UNSAFE_TODO(source[i]);
const double db_mag = audio_utilities::LinearToDecibels(linear_value);
const float linear_value = magnitude_buffer_[i];
@@ -153,9 +165,13 @@ void RealtimeAnalyser::GetByteFrequencyD
// The range m_minDecibels to m_maxDecibels will be scaled to byte values
// from 0 to UCHAR_MAX.
@@ -260,9 +262,9 @@
+ }
+
// Clip to valid range.
UNSAFE_TODO(destination[i]) =
destination[i] =
static_cast<unsigned char>(ClampTo(scaled_value, 0, UCHAR_MAX));
@@ -167,7 +183,8 @@ void RealtimeAnalyser::GetByteFrequencyD
@@ -164,7 +180,8 @@ void RealtimeAnalyser::GetByteFrequencyD
}
void RealtimeAnalyser::GetFloatTimeDomainData(
@@ -272,47 +274,47 @@
DCHECK(IsMainThread());
DCHECK(destination_array);
@@ -183,18 +200,26 @@ void RealtimeAnalyser::GetFloatTimeDomai
@@ -177,6 +194,9 @@ void RealtimeAnalyser::GetFloatTimeDomai
const unsigned write_index = GetWriteIndex();
+ const bool jitter_enabled = base::FeatureList::IsEnabled(
+ blink::features::kHeliumNoiseAudio);
+
base::span<float> destination = destination_array->AsSpan();
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]);
@@ -184,12 +204,14 @@ void RealtimeAnalyser::GetFloatTimeDomai
input_buffer_[(i + write_index - fft_size + kInputBufferSize) %
kInputBufferSize];
+ if (jitter_enabled) {
+ value = BaseAudioContext::JitterAudioData(value, context);
+ }
+
UNSAFE_TODO(destination[i]) = value;
- destination[i] = value;
+ destination[i] = jitter_enabled ?
+ BaseAudioContext::JitterAudioData(value, context) : value;
}
}
}
-void RealtimeAnalyser::GetByteTimeDomainData(DOMUint8Array* destination_array) {
+void RealtimeAnalyser::GetByteTimeDomainData(DOMUint8Array* destination_array,
+ ExecutionContext* context) {
+ ExecutionContext* context) {
DCHECK(IsMainThread());
DCHECK(destination_array);
@@ -210,12 +235,19 @@ void RealtimeAnalyser::GetByteTimeDomain
@@ -202,13 +224,20 @@ void RealtimeAnalyser::GetByteTimeDomain
const unsigned write_index = GetWriteIndex();
+ const bool jitter_enabled = base::FeatureList::IsEnabled(
+ blink::features::kHeliumNoiseAudio);
+
base::span<unsigned char> destination = destination_array->AsSpan();
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]);
- const float value =
+ float value =
input_buffer_[(i + write_index - fft_size + kInputBufferSize) %
kInputBufferSize];
+ if (jitter_enabled) {
+ value = BaseAudioContext::JitterAudioData(value, context);
@@ -323,7 +325,7 @@
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
@@ -660,7 +660,6 @@
@@ -679,7 +679,6 @@
// AudioContext.playoutStats interface.
// https://chromestatus.com/feature/5172818344148992
name: "AudioContextPlayoutStats",
+2 -2
View File
@@ -392,7 +392,7 @@
#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"
@@ -1313,6 +1314,9 @@ String HTMLCanvasElement::ToDataURLInter
@@ -1314,6 +1315,9 @@ String HTMLCanvasElement::ToDataURLInter
scoped_refptr<StaticBitmapImage> image_bitmap = Snapshot(source_buffer);
if (image_bitmap) {
@@ -402,7 +402,7 @@
std::unique_ptr<ImageDataBuffer> data_buffer =
ImageDataBuffer::Create(image_bitmap);
if (!data_buffer)
@@ -1424,6 +1428,9 @@ void HTMLCanvasElement::toBlob(V8BlobCal
@@ -1425,6 +1429,9 @@ void HTMLCanvasElement::toBlob(V8BlobCal
CanvasAsyncBlobCreator* async_creator = nullptr;
scoped_refptr<StaticBitmapImage> image_bitmap = Snapshot(kBackBuffer);
if (image_bitmap) {
+22 -22
View File
@@ -250,7 +250,7 @@
+#endif // CONTENT_BROWSER_HELIUM_NOISE_NOISE_TOKEN_DATA_H_
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -1172,6 +1172,8 @@ source_set("browser") {
@@ -1190,6 +1190,8 @@ source_set("browser") {
"handwriting/handwriting_recognition_service_impl.h",
"handwriting/handwriting_recognizer_impl.cc",
"handwriting/handwriting_recognizer_impl.h",
@@ -581,7 +581,7 @@
+}
--- a/third_party/blink/public/mojom/BUILD.gn
+++ b/third_party/blink/public/mojom/BUILD.gn
@@ -317,6 +317,7 @@ mojom("mojom_platform") {
@@ -322,6 +322,7 @@ mojom("mojom_platform") {
"//skia/public/mojom",
"//third_party/blink/public/mojom/content_extraction",
"//third_party/blink/public/mojom/fingerprinting_protection",
@@ -589,7 +589,7 @@
"//third_party/blink/public/mojom/gpu",
"//third_party/blink/public/mojom/origin_trials:origin_trial_feature",
"//third_party/blink/public/mojom/origin_trials:origin_trial_state",
@@ -1347,6 +1348,7 @@ mojom("mojom_core") {
@@ -1351,6 +1352,7 @@ mojom("mojom_core") {
"//services/viz/public/mojom",
"//skia/public/mojom",
"//third_party/blink/public/mojom/fingerprinting_protection",
@@ -768,7 +768,7 @@
#include "third_party/blink/public/common/history/session_history_constants.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "third_party/blink/public/common/input/web_menu_source_type.h"
@@ -482,7 +483,8 @@ WebView* WebView::Create(
@@ -488,7 +489,8 @@ WebView* WebView::Create(
const base::UnguessableToken& browsing_context_group_token,
const ColorProviderColorMaps* color_provider_colors,
int32_t history_index,
@@ -778,7 +778,7 @@
return WebViewImpl::Create(
client,
is_hidden ? mojom::blink::PageVisibilityState::kHidden
@@ -491,7 +493,8 @@ WebView* WebView::Create(
@@ -497,7 +499,8 @@ WebView* WebView::Create(
widgets_never_composited, To<WebViewImpl>(opener), std::move(page_handle),
agent_group_scheduler, session_storage_namespace_id,
std::move(page_base_background_color), browsing_context_group_token,
@@ -788,7 +788,7 @@
}
WebViewImpl* WebViewImpl::Create(
@@ -510,14 +513,15 @@ WebViewImpl* WebViewImpl::Create(
@@ -516,14 +519,15 @@ WebViewImpl* WebViewImpl::Create(
const base::UnguessableToken& browsing_context_group_token,
const ColorProviderColorMaps* color_provider_colors,
int32_t history_index,
@@ -806,7 +806,7 @@
}
size_t WebView::GetWebViewCount() {
@@ -583,7 +587,8 @@ WebViewImpl::WebViewImpl(
@@ -589,7 +593,8 @@ WebViewImpl::WebViewImpl(
const base::UnguessableToken& browsing_context_group_token,
const ColorProviderColorMaps* color_provider_colors,
int32_t history_index,
@@ -816,7 +816,7 @@
: widgets_never_composited_(widgets_never_composited),
web_view_client_(client),
chrome_client_(MakeGarbageCollected<ChromeClientImpl>(this)),
@@ -616,7 +621,8 @@ WebViewImpl::WebViewImpl(
@@ -622,7 +627,8 @@ WebViewImpl::WebViewImpl(
page_ = Page::CreateOrdinary(
*chrome_client_, opener ? opener->GetPage() : nullptr,
agent_group_scheduler.GetAgentGroupScheduler(),
@@ -826,7 +826,7 @@
CoreInitializer::GetInstance().ProvideModulesToPage(
*page_, session_storage_namespace_id_);
@@ -3535,6 +3541,20 @@ void WebViewImpl::UpdateColorProviders(
@@ -3562,6 +3568,20 @@ void WebViewImpl::UpdateColorProviders(
}
}
@@ -849,7 +849,7 @@
DCHECK(does_composite_);
--- a/third_party/blink/renderer/core/exported/web_view_impl.h
+++ b/third_party/blink/renderer/core/exported/web_view_impl.h
@@ -131,7 +131,8 @@ class CORE_EXPORT WebViewImpl final : pu
@@ -132,7 +132,8 @@ class CORE_EXPORT WebViewImpl final : pu
const base::UnguessableToken& browsing_context_group_token,
const ColorProviderColorMaps* color_provider_colors,
int32_t history_index,
@@ -859,7 +859,7 @@
// All calls to Create() should be balanced with a call to Close(). This
// synchronously destroys the WebViewImpl.
@@ -320,6 +321,8 @@ class CORE_EXPORT WebViewImpl final : pu
@@ -321,6 +322,8 @@ class CORE_EXPORT WebViewImpl final : pu
void UpdateColorProviders(
const ColorProviderColorMaps& color_provider_colors) override;
void SetSupportsDraggableRegions(bool supports_draggable_regions) override;
@@ -880,7 +880,7 @@
void ConfigureAutoResizeMode();
--- a/third_party/blink/renderer/core/page/page.cc
+++ b/third_party/blink/renderer/core/page/page.cc
@@ -216,12 +216,14 @@ Page* Page::CreateOrdinary(
@@ -217,12 +217,14 @@ Page* Page::CreateOrdinary(
Page* opener,
AgentGroupScheduler& agent_group_scheduler,
const base::UnguessableToken& browsing_context_group_token,
@@ -898,7 +898,7 @@
--- a/third_party/blink/renderer/core/loader/document_loader.cc
+++ b/third_party/blink/renderer/core/loader/document_loader.cc
@@ -2851,6 +2851,9 @@ void DocumentLoader::CommitNavigation()
@@ -2907,6 +2907,9 @@ void DocumentLoader::CommitNavigation()
frame_->DomWindow()->SetCanvasNoiseToken(std::nullopt);
@@ -926,7 +926,7 @@
#include "third_party/perfetto/include/perfetto/tracing/track.h"
#include "url/gurl.h"
#include "url/origin.h"
@@ -732,6 +734,15 @@ void BrowsingDataRemoverImpl::RemoveImpl
@@ -731,6 +733,15 @@ void BrowsingDataRemoverImpl::RemoveImpl
}
}
@@ -944,7 +944,7 @@
embedder_delegate_->RemoveEmbedderData(
--- a/content/public/browser/content_browser_client.cc
+++ b/content/public/browser/content_browser_client.cc
@@ -1984,6 +1984,12 @@ ContentBrowserClient::GetClipboardTypesI
@@ -2013,6 +2013,12 @@ ContentBrowserClient::GetClipboardTypesI
return std::nullopt;
}
@@ -959,7 +959,7 @@
}
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -3314,6 +3314,11 @@ class CONTENT_EXPORT ContentBrowserClien
@@ -3350,6 +3350,11 @@ class CONTENT_EXPORT ContentBrowserClien
GetClipboardTypesIfPolicyApplied(
const ui::ClipboardSequenceNumberToken& seqno);
@@ -981,7 +981,7 @@
#include "content/browser/interest_group/ad_auction_headers_util.h"
#include "content/browser/loader/browser_initiated_resource_request.h"
#include "content/browser/loader/cached_navigation_url_loader.h"
@@ -8957,6 +8958,22 @@ void NavigationRequest::ReadyToCommitNav
@@ -9002,6 +9003,22 @@ void NavigationRequest::ReadyToCommitNav
}
}
@@ -1006,7 +1006,7 @@
}
--- a/content/browser/renderer_host/navigation_request.h
+++ b/content/browser/renderer_host/navigation_request.h
@@ -1478,6 +1478,16 @@ class CONTENT_EXPORT NavigationRequest
@@ -1479,6 +1479,16 @@ class CONTENT_EXPORT NavigationRequest
bool is_ad_tagged() const { return is_ad_tagged_; }
@@ -1023,7 +1023,7 @@
// Called when the browser process is about to process beforeunload handlers
// for this navigation, including sending an IPC to the renderer process to
// run beforeunload handlers when necessary.
@@ -3468,6 +3478,10 @@ class CONTENT_EXPORT NavigationRequest
@@ -3478,6 +3488,10 @@ class CONTENT_EXPORT NavigationRequest
blink::mojom::ConfidenceLevel confidence_level_ =
blink::mojom::ConfidenceLevel::kHigh;
@@ -1045,7 +1045,7 @@
#include "third_party/blink/public/mojom/css/preferred_color_scheme.mojom.h"
#include "third_party/blink/public/mojom/favicon/favicon_url.mojom.h"
@@ -79,6 +80,14 @@ class CONTENT_EXPORT PageImpl : public P
const base::android::JavaRef<jobject>& GetJavaPage() override;
base::android::ScopedJavaLocalRef<jobject> GetJavaPage() override;
#endif
+ const blink::HeliumNoiseTokenMap& noise_tokens() const {
@@ -1076,7 +1076,7 @@
std::optional<SkColor> main_document_theme_color_;
--- a/content/browser/renderer_host/render_frame_host_impl.cc
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
@@ -12522,6 +12522,22 @@ void RenderFrameHostImpl::CommitNavigati
@@ -12674,6 +12674,22 @@ void RenderFrameHostImpl::CommitNavigati
}
}
@@ -1099,7 +1099,7 @@
bool is_srcdoc = common_params->url.IsAboutSrcdoc();
if (is_srcdoc) {
// TODO(wjmaclean): initialize this in NavigationRequest's constructor
@@ -16103,6 +16119,15 @@ bool RenderFrameHostImpl::DidCommitNavig
@@ -16224,6 +16240,15 @@ bool RenderFrameHostImpl::DidCommitNavig
document_associated_data_->owned_page()->set_last_main_document_source_id(
ukm::ConvertToSourceId(navigation_request->GetNavigationId(),
ukm::SourceIdType::NAVIGATION_ID));
+14 -14
View File
@@ -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
@@ -215,6 +215,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -218,6 +218,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
@@ -60,7 +60,7 @@
whats_new::LogStartupType(whats_new::StartupType::kIneligible);
--- a/tools/gritsettings/resource_ids.spec
+++ b/tools/gritsettings/resource_ids.spec
@@ -1265,6 +1265,10 @@
@@ -1281,6 +1281,10 @@
"META": {"sizes": {"includes": [10]}},
"includes": [7495],
},
@@ -73,7 +73,7 @@
# START ios/ section.
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -8587,6 +8587,7 @@ static_library("browser_generated_files"
@@ -8466,6 +8466,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/enterprise/connectors:mojom",
--- a/chrome/chrome_paks.gni
+++ b/chrome/chrome_paks.gni
@@ -477,11 +477,13 @@ template("chrome_extra_paks") {
@@ -487,11 +487,13 @@ template("chrome_extra_paks") {
"$root_gen_dir/chrome/default_browser_modal_resources.pak",
"$root_gen_dir/chrome/intro_resources.pak",
"$root_gen_dir/chrome/profile_picker_resources.pak",
@@ -99,7 +99,7 @@
--- a/chrome/common/webui_url_constants.cc
+++ b/chrome/common/webui_url_constants.cc
@@ -121,6 +121,7 @@ base::span<const base::cstring_view> Chr
@@ -168,6 +168,7 @@ base::span<const base::cstring_view> Chr
kChromeUIPrefsInternalsHost,
kChromeUIProfileInternalsHost,
content::kChromeUIQuotaInternalsHost,
@@ -109,7 +109,7 @@
#endif
--- a/chrome/common/webui_url_constants.h
+++ b/chrome/common/webui_url_constants.h
@@ -609,6 +609,8 @@ inline constexpr char kChromeUIProfilePi
@@ -473,6 +473,8 @@ inline constexpr char kChromeUIProfilePi
inline constexpr char kChromeUIProfilePickerStartupQuery[] = "startup";
inline constexpr char kChromeUIProfilePickerGlicQuery[] = "glic";
inline constexpr char kChromeUIProfilePickerUrl[] = "chrome://profile-picker/";
@@ -120,7 +120,7 @@
"chrome://history-sync-optin/";
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -165,6 +165,10 @@ static_library("ui") {
@@ -164,6 +164,10 @@ static_library("ui") {
"webui/net_internals/net_internals_ui.h",
"webui/ntp_tiles_internals_ui.cc",
"webui/ntp_tiles_internals_ui.h",
@@ -133,7 +133,7 @@
"webui/omnibox/omnibox_ui.cc",
--- a/chrome/browser/ui/webui/chrome_web_ui_configs.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_configs.cc
@@ -40,6 +40,7 @@
@@ -43,6 +43,7 @@
#include "chrome/browser/ui/webui/net_internals/net_internals_ui.h"
#include "chrome/browser/ui/webui/ntp_tiles_internals_ui.h"
#include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
@@ -141,7 +141,7 @@
#include "chrome/browser/ui/webui/policy/policy_ui.h"
#include "chrome/browser/ui/webui/predictors/predictors_ui.h"
#include "chrome/browser/ui/webui/privacy_sandbox/privacy_sandbox_internals_ui.h"
@@ -438,6 +439,7 @@ void RegisterChromeWebUIConfigs() {
@@ -444,6 +445,7 @@ void RegisterChromeWebUIConfigs() {
map.AddWebUIConfig(std::make_unique<DefaultBrowserModalUIConfig>());
map.AddWebUIConfig(std::make_unique<ManagedUserProfileNoticeUIConfig>());
map.AddWebUIConfig(std::make_unique<IntroUIConfig>());
@@ -615,7 +615,7 @@
registrar.Add(pref_name, observer);
--- a/chrome/browser/ui/incognito_allowed_url.cc
+++ b/chrome/browser/ui/incognito_allowed_url.cc
@@ -48,7 +48,8 @@ bool IsHostAllowedInIncognito(const GURL
@@ -52,7 +52,8 @@ bool IsHostAllowedInIncognito(const GURL
host != chrome::kChromeUIHelpHost &&
host != chrome::kChromeUIHistoryHost &&
host != chrome::kChromeUIExtensionsHost &&
@@ -627,7 +627,7 @@
} // namespace
--- a/chrome/browser/ui/webui/settings/search_engines_handler.cc
+++ b/chrome/browser/ui/webui/settings/search_engines_handler.cc
@@ -353,7 +353,9 @@ void SearchEnginesHandler::HandleSetDefa
@@ -354,7 +354,9 @@ void SearchEnginesHandler::HandleSetDefa
CHECK(choice_made_location ==
search_engines::ChoiceMadeLocation::kSearchSettings ||
choice_made_location ==
@@ -650,7 +650,7 @@
}
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1961,6 +1961,12 @@
@@ -1965,6 +1965,12 @@
<message name="IDS_SETTINGS_HELIUM_SCHEMA_IGNORE" desc="Checkbox label to ignore any future services change alerts">
Don't notify me again
</message>
@@ -665,7 +665,7 @@
</message>
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -385,6 +385,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -396,6 +396,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumServicesOrigin] =
settings_api::PrefType::kString;
@@ -737,7 +737,7 @@
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2218,6 +2218,8 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2230,6 +2230,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
@@ -1305,6 +1305,11 @@ inline constexpr char
@@ -1226,6 +1226,11 @@ inline constexpr char
"restricted_managed_guest_session_extension_cleanup_exempt_list";
#endif // BUILDFLAG(IS_CHROMEOS)
@@ -14,7 +14,7 @@
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -113,6 +113,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -116,6 +116,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterIntegerPref(prefs::kSessionRestoreInfoBarTimesShown, 0);
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
@@ -25,7 +25,7 @@
registry->RegisterBooleanPref(prefs::kShowHomeButton, false,
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -83,12 +83,14 @@
@@ -87,12 +87,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"
@@ -40,7 +40,7 @@
#include "components/reading_list/core/reading_list_model.h"
#include "components/split_tabs/split_tab_id.h"
#include "components/split_tabs/split_tab_visual_data.h"
@@ -1733,7 +1735,20 @@ void TabStripModel::AddTab(std::unique_p
@@ -1725,7 +1727,20 @@ 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()) {
@@ -76,17 +76,17 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -503,6 +503,7 @@ void AddAppearanceStrings(content::WebUI
@@ -501,6 +501,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},
{"tabStripPosition", IDS_SETTINGS_TAB_STRIP_POSITION},
{"showTabSearchButton", IDS_SETTINGS_SHOW_TAB_SEARCH_BUTTON},
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -246,6 +246,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -257,6 +257,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
@@ -820,10 +820,18 @@ void RenderThreadImpl::RegisterSchemes()
@@ -831,10 +831,18 @@ void RenderThreadImpl::RegisterSchemes()
chrome_scheme);
WebSecurityPolicy::RegisterURLSchemeAsWebUI(chrome_scheme);
@@ -93,7 +93,7 @@
url.SchemeIs(url::kTraceScheme) ||
--- a/chrome/browser/ui/incognito_allowed_url.cc
+++ b/chrome/browser/ui/incognito_allowed_url.cc
@@ -19,7 +19,8 @@ namespace {
@@ -23,7 +23,8 @@ namespace {
bool IsHostAllowedInIncognito(const GURL& url) {
std::string scheme = url.GetScheme();
std::string_view host = url.host();
@@ -120,7 +120,7 @@
// handling.
--- a/chrome/browser/extensions/extension_tab_util.cc
+++ b/chrome/browser/extensions/extension_tab_util.cc
@@ -1100,7 +1100,8 @@ bool ExtensionTabUtil::IsKillURL(const G
@@ -1068,7 +1068,8 @@ bool ExtensionTabUtil::IsKillURL(const G
return true;
}
@@ -132,7 +132,7 @@
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2210,6 +2210,13 @@ void Browser::SetContentsBounds(WebConte
@@ -2163,6 +2163,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 =
@@ -2217,7 +2224,7 @@ void Browser::UpdateTargetURL(WebContent
@@ -2170,7 +2177,7 @@ void Browser::UpdateTargetURL(WebContent
ContentsWebView* anchor =
static_cast<ContentsWebView*>(status_bubble_views->base_view());
if (source == anchor->GetWebContents()) {
@@ -310,7 +310,7 @@
} // namespace url_formatter
--- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
+++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
@@ -374,7 +374,7 @@ std::string ChromeAutocompleteProviderCl
@@ -386,7 +386,7 @@ std::string ChromeAutocompleteProviderCl
std::string
ChromeAutocompleteProviderClient::GetEmbedderRepresentationOfAboutScheme()
const {
@@ -342,7 +342,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"
@@ -2474,7 +2475,12 @@ bool IsDebuggerAttachedToCurrentTab(Brow
@@ -2481,7 +2482,12 @@ bool IsDebuggerAttachedToCurrentTab(Brow
void CopyURL(BrowserWindowInterface* bwi, content::WebContents* web_contents) {
ui::ScopedClipboardWriter scw(ui::ClipboardBuffer::kCopyPaste);
@@ -358,7 +358,7 @@
if (toast_features::IsEnabled(toast_features::kLinkCopiedToast)) {
--- a/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.cc
+++ b/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.cc
@@ -593,7 +593,8 @@ void TabHoverCardBubbleView::UpdateCardC
@@ -588,7 +588,8 @@ void TabHoverCardBubbleView::UpdateCardC
url_formatter::kFormatUrlOmitDefaults |
url_formatter::kFormatUrlOmitHTTPS |
url_formatter::kFormatUrlOmitTrivialSubdomains |
@@ -1,6 +1,6 @@
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -1294,7 +1294,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
@@ -1317,7 +1317,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
// Automatically enables HTTPS-First Mode in a balanced configuration when
// possible.
BASE_FEATURE(kHttpsFirstBalancedModeAutoEnable,
@@ -145,7 +145,7 @@
+#endif // EXTENSIONS_COMMON_MANIFEST_URL_PATCHER_H_
--- a/extensions/common/BUILD.gn
+++ b/extensions/common/BUILD.gn
@@ -468,6 +468,8 @@ static_library("common") {
@@ -470,6 +470,8 @@ static_library("common") {
"manifest_handlers/webview_info.h",
"manifest_url_handlers.cc",
"manifest_url_handlers.h",
@@ -178,7 +178,7 @@
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -383,6 +383,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -394,6 +394,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
// Helium services page
(*s_allowlist)[::prefs::kHeliumServicesEnabled] =
settings_api::PrefType::kBoolean;
@@ -189,7 +189,7 @@
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -218,6 +218,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -221,6 +221,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterIntegerPref(prefs::kHeliumSchemaVersion, 0);
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
@@ -213,7 +213,7 @@
</template>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2229,6 +2229,10 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2241,6 +2241,10 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_DESCRIPTION},
{"heliumGotIt", IDS_SETTINGS_GOT_IT},
{"heliumSchemaIgnore", IDS_SETTINGS_HELIUM_SCHEMA_IGNORE},
@@ -226,7 +226,7 @@
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1989,6 +1989,12 @@
@@ -1993,6 +1993,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>
@@ -306,7 +306,7 @@
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -560,6 +560,7 @@ source_set("extensions") {
@@ -563,6 +563,7 @@ source_set("extensions") {
"//components/favicon/content",
"//components/guest_view/buildflags",
"//components/guest_view/common",
@@ -366,7 +366,7 @@
--- a/chrome/browser/extensions/updater/extension_updater.cc
+++ b/chrome/browser/extensions/updater/extension_updater.cc
@@ -34,7 +34,10 @@
@@ -33,7 +33,10 @@
#include "chrome/browser/profiles/keep_alive/profile_keep_alive_types.h"
#include "chrome/browser/profiles/keep_alive/scoped_profile_keep_alive.h"
#include "chrome/browser/profiles/profile.h"
@@ -442,7 +442,7 @@
}
--- a/chrome/browser/extensions/webstore_installer.cc
+++ b/chrome/browser/extensions/webstore_installer.cc
@@ -43,6 +43,7 @@
@@ -42,6 +42,7 @@
#include "components/crx_file/id_util.h"
#include "components/download/public/common/download_url_parameters.h"
#include "components/update_client/update_query_params.h"
@@ -493,7 +493,7 @@
// Note that both |global_settings_| and |default_settings_| will be null
// before first call to Refresh(), so in order to resolve this, Refresh() must
// be called in the initialization of ExtensionManagement.
@@ -292,12 +299,20 @@ GURL ExtensionManagement::GetEffectiveUp
@@ -286,12 +293,20 @@ GURL ExtensionManagement::GetEffectiveUp
<< "Update URL cannot be overridden to be the webstore URL!";
return update_url;
}
@@ -559,7 +559,7 @@
void AddObserver(Observer* observer);
--- a/chrome/browser/extensions/webstore_data_fetcher.cc
+++ b/chrome/browser/extensions/webstore_data_fetcher.cc
@@ -90,7 +90,8 @@ void WebstoreDataFetcher::SetMockItemSni
@@ -91,7 +91,8 @@ void WebstoreDataFetcher::SetMockItemSni
}
void WebstoreDataFetcher::Start(
@@ -569,7 +569,7 @@
if (g_mock_item_snippet_response_) {
g_mock_item_snippet_response_->set_item_id(id_);
delegate_->OnFetchItemSnippetParseSuccess(id_,
@@ -98,7 +99,9 @@ void WebstoreDataFetcher::Start(
@@ -99,7 +100,9 @@ void WebstoreDataFetcher::Start(
return;
}
@@ -594,7 +594,7 @@
max_auto_retries_ = max_retries;
--- a/chrome/browser/extensions/webstore_standalone_installer.cc
+++ b/chrome/browser/extensions/webstore_standalone_installer.cc
@@ -19,6 +19,7 @@
@@ -18,6 +18,7 @@
#include "chrome/browser/extensions/webstore_data_fetcher.h"
#include "chrome/browser/profiles/profile.h"
#include "components/crx_file/id_util.h"
@@ -602,7 +602,7 @@
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/blocklist_extension_prefs.h"
@@ -76,9 +77,12 @@ void WebstoreStandaloneInstaller::BeginI
@@ -75,9 +76,12 @@ void WebstoreStandaloneInstaller::BeginI
webstore_data_fetcher_ =
std::make_unique<WebstoreDataFetcher>(this, GURL(), id_);
@@ -96,7 +96,7 @@
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -8255,6 +8255,8 @@ static_library("browser") {
@@ -8126,6 +8126,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
@@ -387,6 +387,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -398,6 +398,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
@@ -220,6 +220,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -223,6 +223,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
@@ -1296,6 +1296,9 @@
@@ -1300,6 +1300,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">
@@ -2001,6 +2004,12 @@
@@ -2005,6 +2008,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
@@ -1268,7 +1268,7 @@ void AddLanguagesStrings(content::WebUID
@@ -1286,7 +1286,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)
@@ -2236,6 +2236,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2248,6 +2248,9 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
{"heliumBangsToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
@@ -198,7 +198,7 @@
import("//components/supervised_user/buildflags.gni")
import("//content/public/common/features.gni")
import("//crypto/features.gni")
@@ -109,4 +110,5 @@ chrome_grit_defines = [
@@ -105,4 +106,5 @@ chrome_grit_defines = [
"optimize_webui=$optimize_webui",
"chrome_root_store_cert_management_ui=$chrome_root_store_cert_management_ui",
"use_nss_certs=$use_nss_certs",
@@ -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
@@ -43,28 +43,12 @@ MojoActionForChromeAction(actions::Actio
@@ -44,28 +44,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:
@@ -105,26 +89,12 @@ std::optional<actions::ActionId> ChromeA
@@ -106,26 +90,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:
@@ -333,16 +303,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,
@@ -356,18 +318,12 @@ void CustomizeToolbarHandler::ListAction
@@ -358,18 +320,12 @@ void CustomizeToolbarHandler::ListAction
}
add_action(kActionPrint,
side_panel::customize_chrome::mojom::CategoryId::kTools);
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -31,7 +31,6 @@
@@ -36,7 +36,6 @@
#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/profiles/profile_shortcut_manager.h"
@@ -8,7 +8,7 @@
#include "chrome/browser/signin/account_consistency_mode_manager.h"
#include "chrome/browser/signin/account_consistency_mode_manager_factory.h"
#include "chrome/browser/signin/chrome_signin_client_factory.h"
@@ -83,7 +82,6 @@
@@ -91,7 +90,6 @@
#include "components/plus_addresses/core/browser/plus_address_service.h"
#include "components/plus_addresses/core/common/features.h"
#include "components/prefs/pref_service.h"
@@ -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"
@@ -2825,14 +2823,9 @@ void AddSearchStrings(content::WebUIData
@@ -2855,14 +2853,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
@@ -218,23 +218,7 @@ std::pair<CountryId, LoadedCountrySource
@@ -219,23 +219,7 @@ 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) {
@@ -59,7 +59,7 @@
}
std::optional<ProgramAndLocationMatch> GetProgramAndLocationMatch(
@@ -345,14 +329,13 @@ RegionalCapabilitiesService::GetRegional
@@ -403,14 +387,13 @@ RegionalCapabilitiesService::GetRegional
}
bool RegionalCapabilitiesService::IsInSearchEngineChoiceScreenRegion() {
@@ -75,8 +75,8 @@
+ return true;
}
bool RegionalCapabilitiesService::
@@ -458,14 +441,7 @@ RegionalCapabilitiesService::GetChoiceSc
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
@@ -526,14 +509,7 @@ RegionalCapabilitiesService::GetChoiceSc
}
bool RegionalCapabilitiesService::IsInEeaCountry() {
@@ -47,7 +47,7 @@
--- a/third_party/search_engines_data/BUILD.gn
+++ b/third_party/search_engines_data/BUILD.gn
@@ -37,10 +37,6 @@ json_to_struct("regional_settings") {
@@ -50,10 +50,6 @@ copy("prepopulated_engines_file") {
if (enable_builtin_search_provider_assets) {
group("resources") {
public_deps = [ ":search_engines_scaled_resources" ]
@@ -58,7 +58,7 @@
}
grit("search_engines_scaled_resources") {
@@ -55,15 +51,4 @@ if (enable_builtin_search_provider_asset
@@ -68,15 +64,4 @@ if (enable_builtin_search_provider_asset
]
output_dir = target_gen_dir
}
@@ -37,7 +37,7 @@
--- a/components/search_engines/search_engine_utils.cc
+++ b/components/search_engines/search_engine_utils.cc
@@ -35,7 +35,7 @@ SearchEngineType GetEngineType(const GUR
@@ -52,7 +52,7 @@ SearchEngineType GetEngineType(const GUR
// incoming URL's host is "[*.]google.<TLD>".
if (google_util::IsGoogleDomainUrl(url, google_util::DISALLOW_SUBDOMAIN,
google_util::ALLOW_NON_STANDARD_PORTS))
@@ -45,4 +45,4 @@
+ return SEARCH_ENGINE_OTHER;
// Now check the rest of the prepopulate data.
for (const auto* engine : TemplateURLPrepopulateData::kAllEngines) {
const auto& all_engines = regional_capabilities::GetAllPrepopulatedEngines();
+15 -15
View File
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1946,6 +1946,40 @@
@@ -1950,6 +1950,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
@@ -2216,6 +2216,23 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2228,6 +2228,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
@@ -56,6 +56,11 @@
@@ -49,6 +49,11 @@
sub-label="$i18n{siteSettingsSublabel}"
on-click="onSiteSettingsLinkRowClick_"
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
@@ -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
@@ -165,6 +165,12 @@ export class SettingsPrivacyPageElement
@@ -159,6 +159,12 @@ export class SettingsPrivacyPageElement
Router.getInstance().navigateTo(routes.SITE_SETTINGS);
}
@@ -113,7 +113,7 @@
private onSecurityPageClick_() {
this.interactedWithPage_();
this.metricsBrowserProxy_.recordAction(
@@ -232,6 +238,10 @@ export class SettingsPrivacyPageElement
@@ -226,6 +232,10 @@ export class SettingsPrivacyPageElement
override getFocusConfig() {
const map = new Map();
@@ -124,7 +124,7 @@
if (routes.COOKIES) {
map.set(routes.COOKIES.path, '#thirdPartyCookiesLinkRow');
}
@@ -259,6 +269,9 @@ export class SettingsPrivacyPageElement
@@ -253,6 +263,9 @@ export class SettingsPrivacyPageElement
override getAssociatedControlFor(childViewId: string): HTMLElement {
let triggerId: string|null = null;
switch (childViewId) {
@@ -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",
@@ -391,6 +392,7 @@ build_webui("build") {
@@ -385,6 +386,7 @@ build_webui("build") {
"languages_page/languages_util.ts",
"people_page/import_data_browser_proxy.ts",
"people_page/manage_profile_browser_proxy.ts",
@@ -375,7 +375,7 @@
+customElements.define(SettingsHeliumServicesPageElement.is, SettingsHeliumServicesPageElement);
--- a/chrome/browser/resources/settings/lazy_load.ts
+++ b/chrome/browser/resources/settings/lazy_load.ts
@@ -26,6 +26,7 @@ import './privacy_page/privacy_guide/pri
@@ -25,6 +25,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';
@@ -383,7 +383,7 @@
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';
@@ -269,6 +270,7 @@ export {SecurityKeysSubpageElement} from
@@ -266,6 +267,7 @@ export {SecurityKeysSubpageElement} from
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';
@@ -401,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"
@@ -209,6 +210,13 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -212,6 +213,13 @@ void RegisterBrowserUserPrefs(user_prefs
false);
#endif
@@ -417,7 +417,7 @@
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -46,6 +46,7 @@
@@ -45,6 +45,7 @@
#include "components/dom_distiller/core/pref_names.h"
#include "components/drive/drive_pref_names.h"
#include "components/embedder_support/pref_names.h"
@@ -425,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"
@@ -379,6 +380,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -390,6 +391,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kString;
#endif
@@ -753,7 +753,7 @@
+#endif // COMPONENTS_HELIUM_SERVICES_SCHEMA_H_
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -1295,6 +1295,8 @@ static_library("ui") {
@@ -1322,6 +1322,8 @@ static_library("ui") {
"webui/settings/search_engines_handler.h",
"webui/settings/security_settings_provider.cc",
"webui/settings/security_settings_provider.h",
@@ -825,7 +825,7 @@
+}
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
@@ -77,6 +77,7 @@
@@ -82,6 +82,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"
@@ -833,7 +833,7 @@
#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"
@@ -267,6 +268,8 @@ SettingsUI::SettingsUI(content::WebUI* w
@@ -266,6 +267,8 @@ SettingsUI::SettingsUI(content::WebUI* w
AddSettingsPageUIHandler(std::make_unique<ProtocolHandlersHandler>(profile));
AddSettingsPageUIHandler(std::make_unique<PrivacySandboxHandler>());
AddSettingsPageUIHandler(std::make_unique<SearchEnginesHandler>(profile));
+13 -13
View File
@@ -1,6 +1,6 @@
--- a/chrome/app/chromium_strings.grd
+++ b/chrome/app/chromium_strings.grd
@@ -1004,6 +1004,10 @@ Chromium is unable to recover your setti
@@ -1019,6 +1019,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>
@@ -1689,6 +1693,11 @@ Chromium is unable to recover your setti
@@ -1740,6 +1744,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
@@ -13515,6 +13515,9 @@ Check your passwords anytime in <ph name
@@ -13627,6 +13627,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
@@ -310,6 +310,8 @@
@@ -305,6 +305,8 @@
#define IDC_CONTENT_CONTEXT_INSPECTELEMENT_WITH_DEVTOOLS 40301
#define IDC_REPORT_UNSAFE_SITE 40302
@@ -48,7 +48,7 @@
#define IDC_SPELLCHECK_SUGGESTION_0 41000
--- a/chrome/browser/ui/chrome_pages.h
+++ b/chrome/browser/ui/chrome_pages.h
@@ -138,6 +138,7 @@ void ShowSafeBrowsingEnhancedProtectionW
@@ -139,6 +139,7 @@ void ShowSafeBrowsingEnhancedProtectionW
safe_browsing::SafeBrowsingSettingReferralMethod referral_method);
void ShowImportDialog(Browser* browser);
void ShowAboutChrome(Browser* browser);
@@ -58,7 +58,7 @@
void ShowPrivacySandboxSettings(Browser* browser);
--- a/chrome/browser/ui/chrome_pages.cc
+++ b/chrome/browser/ui/chrome_pages.cc
@@ -613,6 +613,11 @@ void ShowAboutChrome(Browser* browser) {
@@ -606,6 +606,11 @@ void ShowAboutChrome(Browser* browser) {
ShowSingletonTabIgnorePathOverwriteNTP(browser, GURL(kChromeUIHelpURL));
}
@@ -72,7 +72,7 @@
ShowSettingsSubPage(browser, kSearchEnginesSubPage);
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -1117,6 +1117,9 @@ bool BrowserCommandController::ExecuteCo
@@ -1147,6 +1147,9 @@ bool BrowserCommandController::ExecuteCo
case IDC_UPGRADE_DIALOG:
OpenUpdateChromeDialog(browser_);
break;
@@ -82,7 +82,7 @@
case IDC_OPEN_SAFETY_HUB:
ShowSettingsSubPage(browser_->GetBrowserForOpeningWebUi(),
chrome::kSafetyHubSubPage);
@@ -1710,6 +1713,7 @@ void BrowserCommandController::InitComma
@@ -1740,6 +1743,7 @@ void BrowserCommandController::InitComma
// These are always enabled; the menu determines their menu item visibility.
command_updater_.UpdateCommandEnabled(IDC_UPGRADE_DIALOG, true);
@@ -92,7 +92,7 @@
// Safety Hub commands.
--- a/chrome/browser/ui/toolbar/app_menu_model.h
+++ b/chrome/browser/ui/toolbar/app_menu_model.h
@@ -288,6 +288,9 @@ class AppMenuModel : public ui::SimpleMe
@@ -304,6 +304,9 @@ class AppMenuModel : public ui::SimpleMe
// boolean indicating whether any menu items were added.
bool AddDefaultBrowserMenuItems();
@@ -104,7 +104,7 @@
[[nodiscard]] bool AddSafetyHubMenuItem();
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
@@ -105,6 +105,7 @@
@@ -113,6 +113,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"
@@ -112,7 +112,7 @@
#include "components/lens/lens_features.h"
#include "components/omnibox/browser/vector_icons.h"
#include "components/password_manager/content/common/web_ui_constants.h"
@@ -2098,7 +2099,8 @@ bool AppMenuModel::AddGlobalErrorMenuIte
@@ -2119,7 +2120,8 @@ bool AppMenuModel::AddGlobalErrorMenuIte
// how update the menu if new errors are added.
const GlobalErrorService::GlobalErrorList& errors =
GlobalErrorServiceFactory::GetForProfile(browser_->profile())->errors();
@@ -122,7 +122,7 @@
for (GlobalError* error : errors) {
DCHECK(error);
if (error->HasMenuItem()) {
@@ -2162,6 +2164,22 @@ bool AppMenuModel::AddSafetyHubMenuItem(
@@ -2183,6 +2185,22 @@ bool AppMenuModel::AddSafetyHubMenuItem(
return true;
}
@@ -219,7 +219,7 @@
#endif // CHROME_BROWSER_UI_TOOLBAR_APP_MENU_ICON_CONTROLLER_H_
--- a/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
+++ b/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
@@ -214,6 +214,11 @@ void BrowserAppMenuButton::UpdateTextAnd
@@ -215,6 +215,11 @@ void BrowserAppMenuButton::UpdateTextAnd
#else
text = l10n_util::GetStringUTF16(IDS_APP_MENU_BUTTON_UPDATE);
#endif
+33 -29
View File
@@ -13,7 +13,7 @@
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(MultiContentsResizeHandle,
--- a/chrome/browser/ui/views/frame/multi_contents_view.h
+++ b/chrome/browser/ui/views/frame/multi_contents_view.h
@@ -27,7 +27,6 @@ class MultiContentsDropTargetView;
@@ -29,7 +29,6 @@ class MultiContentsDropTargetView;
class MultiContentsResizeArea;
class MultiContentsViewDelegate;
class MultiContentsViewDropTargetController;
@@ -30,7 +30,7 @@
MultiContentsView(BrowserView* browser_view,
std::unique_ptr<MultiContentsViewDelegate> delegate);
MultiContentsView(const MultiContentsView&) = delete;
@@ -162,10 +159,6 @@ class MultiContentsView : public views::
@@ -186,10 +183,6 @@ class MultiContentsView : public views::
return contents_container_views_[1]->contents_view();
}
@@ -41,7 +41,7 @@
MultiContentsBackgroundView* background_view_for_testing() const {
return background_view_;
}
@@ -296,10 +289,6 @@ class MultiContentsView : public views::
@@ -307,10 +300,6 @@ class MultiContentsView : public views::
// Nullopt if not currently resizing.
std::optional<double> initial_start_width_on_resize_;
@@ -73,7 +73,7 @@
#include "chrome/browser/ui/views/frame/scrim_view.h"
#include "chrome/browser/ui/views/frame/themed_background.h"
#include "chrome/browser/ui/views/new_tab_footer/footer_web_view.h"
@@ -66,11 +65,7 @@ MultiContentsView::MultiContentsView(
@@ -69,11 +68,7 @@ MultiContentsView::MultiContentsView(
BrowserView* browser_view,
std::unique_ptr<MultiContentsViewDelegate> delegate)
: browser_view_(browser_view),
@@ -86,7 +86,7 @@
SetLayoutManager(std::make_unique<views::DelegatingLayoutManager>(this));
SetProperty(views::kElementIdentifierKey, kMultiContentsViewElementId);
@@ -352,11 +347,8 @@ void MultiContentsView::OnResize(int res
@@ -377,11 +372,8 @@ void MultiContentsView::OnResize(int res
std::make_optional(contents_container_views_[0]->size().width());
}
double total_width = contents_container_views_[0]->size().width() +
@@ -99,7 +99,7 @@
static_cast<double>(resize_amount));
// If end_width is within the snap point widths, update to the snap point.
@@ -474,11 +466,6 @@ views::ProposedLayout MultiContentsView:
@@ -499,11 +491,6 @@ views::ProposedLayout MultiContentsView:
gfx::Rect end_rect(resize_rect.top_right(),
gfx::Size(widths.end_width, available_space.height()));
@@ -111,7 +111,7 @@
layouts.child_layouts.emplace_back(contents_container_views_[0],
contents_container_views_[0]->GetVisible(),
start_rect);
@@ -614,8 +601,10 @@ MultiContentsView::ViewWidths MultiConte
@@ -699,8 +686,10 @@ MultiContentsView::ViewWidths MultiConte
widths.resize_width = resize_area_->GetPreferredSize().width();
widths.start_width =
start_ratio_ * (available_space.width() - widths.resize_width);
@@ -123,7 +123,7 @@
} else {
CHECK(!contents_container_views_[1]->GetVisible());
widths.start_width = available_space.width();
@@ -709,10 +698,6 @@ void MultiContentsView::SetShouldShowTop
@@ -794,10 +783,6 @@ void MultiContentsView::SetShouldShowTop
return;
}
contents_separators_.should_show_top = should_show;
@@ -134,7 +134,7 @@
// This can be called during BrowserView layout, so protect against creating a
// layout loop.
@@ -724,8 +709,6 @@ void MultiContentsView::SetShouldShowLea
@@ -809,8 +794,6 @@ void MultiContentsView::SetShouldShowLea
return;
}
contents_separators_.should_show_leading = should_show;
@@ -143,7 +143,7 @@
// This can be called during BrowserView layout, so protect against creating a
// layout loop.
@@ -737,8 +720,6 @@ void MultiContentsView::SetShouldShowTra
@@ -822,8 +805,6 @@ void MultiContentsView::SetShouldShowTra
return;
}
contents_separators_.should_show_trailing = should_show;
@@ -154,7 +154,7 @@
// layout loop.
--- a/chrome/browser/ui/views/frame/contents_container_view.cc
+++ b/chrome/browser/ui/views/frame/contents_container_view.cc
@@ -21,7 +21,6 @@
@@ -24,7 +24,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"
@@ -162,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"
@@ -55,10 +54,6 @@
@@ -52,10 +51,6 @@
#endif
namespace {
@@ -173,9 +173,9 @@
constexpr int kNewTabFooterSeparatorHeight = 1;
constexpr int kNewTabFooterHeight = 56;
} // namespace
@@ -135,12 +130,6 @@ ContentsContainerView::ContentsContainer
@@ -141,12 +136,6 @@ ContentsContainerView::ContentsContainer
.Build());
}
#endif
- mini_toolbar_ = AddChildView(std::make_unique<MultiContentsViewMiniToolbar>(
- browser_view, contents_view_));
@@ -186,7 +186,7 @@
view_bounds_observer_.Observe(contents_view_);
}
@@ -170,143 +159,9 @@ std::vector<views::View*> ContentsContai
@@ -176,147 +165,9 @@ std::vector<views::View*> ContentsContai
void ContentsContainerView::UpdateBorderAndOverlay(bool is_in_split,
bool is_active,
@@ -288,11 +288,13 @@
- actor_overlay_web_view_->holder()->SetCornerRadii(radii);
- }
-
-#if BUILDFLAG(ENABLE_GLIC)
- if (glic_selection_overlay_view_) {
- glic_selection_overlay_view_->holder()->SetCornerRadii(radii);
- }
-
- if (glic_border_) {
- glic_border_->SetRoundedCorners(content_rounded_corners);
- }
-#endif
-}
-
-void ContentsContainerView::ClearBorderRoundedCorners() {
@@ -315,11 +317,13 @@
- actor_overlay_web_view_->holder()->SetCornerRadii(kNoRoundedCorners);
- }
-
-#if BUILDFLAG(ENABLE_GLIC)
- if (glic_selection_overlay_view_) {
- glic_selection_overlay_view_->holder()->SetCornerRadii(kNoRoundedCorners);
- }
-
- if (glic_border_) {
- glic_border_->SetRoundedCorners(kNoRoundedCorners);
- }
-#endif
-}
-
-void ContentsContainerView::ChildVisibilityChanged(View* child) {
@@ -332,7 +336,7 @@
void ContentsContainerView::Layout(PassKey pass_key) {
LayoutSuperclass<views::View>(this);
@@ -319,9 +174,6 @@ void ContentsContainerView::Layout(PassK
@@ -331,9 +182,6 @@ void ContentsContainerView::Layout(PassK
void ContentsContainerView::OnViewBoundsChanged(View* observed_view) {
if (observed_view == contents_view_) {
UpdateDevToolsDockedPlacement();
@@ -342,7 +346,7 @@
}
}
@@ -434,7 +286,7 @@ void ContentsContainerView::CreateCaptur
@@ -456,7 +304,7 @@ void ContentsContainerView::CreateCaptur
capture_contents_border_widget_->Init(std::move(params));
auto contents_capture_border_view =
@@ -351,7 +355,7 @@
capture_contents_border_widget_->SetContentsView(
std::move(contents_capture_border_view));
capture_contents_border_widget_->SetVisibilityChangedAnimationsEnabled(false);
@@ -588,30 +440,6 @@ views::ProposedLayout ContentsContainerV
@@ -634,30 +482,6 @@ views::ProposedLayout ContentsContainerV
non_devtools_contents_bounds, size_bounds);
}
@@ -379,9 +383,9 @@
- gfx::Rect(0, 0, width, height));
- }
-
layouts.host_size = gfx::Size(width, height);
return layouts;
}
auto* const content_layout = layouts.GetLayoutFor(contents_view_);
if (target_content_bounds_) {
content_layout->bounds.Outset(*target_content_bounds_);
--- a/chrome/browser/ui/views/frame/contents_container_view.h
+++ b/chrome/browser/ui/views/frame/contents_container_view.h
@@ -72,7 +72,6 @@ class ContentsContainerView : public vie
@@ -402,7 +406,7 @@
TabModalDialogHost* web_contents_modal_dialog_host() {
return &web_contents_modal_dialog_host_;
}
@@ -135,9 +131,6 @@ class ContentsContainerView : public vie
@@ -144,9 +140,6 @@ class ContentsContainerView : public vie
// container that holds both contents_webview and devtools_webview.
void UpdateDevToolsDockedPlacement();
@@ -412,7 +416,7 @@
// views::View:
void ChildVisibilityChanged(View* child) override;
void Layout(PassKey) override;
@@ -189,10 +182,6 @@ class ContentsContainerView : public vie
@@ -202,10 +195,6 @@ class ContentsContainerView : public vie
// The glic browser view that renders around the web contents area.
raw_ptr<glic::ContextSharingBorderView> glic_border_ = nullptr;
@@ -475,7 +479,7 @@
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -154,7 +154,6 @@
@@ -156,7 +156,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"
@@ -483,7 +487,7 @@
#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"
@@ -2426,10 +2425,6 @@ void BrowserView::UpdateToolbar(content:
@@ -2446,10 +2445,6 @@ void BrowserView::UpdateToolbar(content:
if (toolbar_) {
toolbar_->Update(contents);
}
+7 -7
View File
@@ -1,6 +1,6 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1310,6 +1310,10 @@ inline constexpr char
@@ -1231,6 +1231,10 @@ inline constexpr char
inline constexpr char kNewTabNextToActive[] =
"helium.browser.new_tab_next_to_active";
@@ -13,7 +13,7 @@
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -115,6 +115,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -118,6 +118,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kNewTabNextToActive, false);
@@ -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
@@ -1841,11 +1841,11 @@ void TabStripModel::CloseSelectedTabs()
@@ -1833,11 +1833,11 @@ void TabStripModel::CloseSelectedTabs()
}
void TabStripModel::SelectNextTab(TabStripUserGestureDetails detail) {
@@ -38,7 +38,7 @@
}
void TabStripModel::SelectLastTab(TabStripUserGestureDetails detail) {
@@ -4003,6 +4003,18 @@ TabStripSelectionChange TabStripModel::S
@@ -3935,6 +3935,18 @@ TabStripSelectionChange TabStripModel::S
return selection;
}
@@ -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
@@ -249,6 +249,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -260,6 +260,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
@@ -504,6 +504,7 @@ void AddAppearanceStrings(content::WebUI
@@ -502,6 +502,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},
{"tabStripPosition", IDS_SETTINGS_TAB_STRIP_POSITION},
{"showTabSearchButton", IDS_SETTINGS_SHOW_TAB_SEARCH_BUTTON},
--- 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 @@
@@ -0,0 +1,113 @@
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
@@ -249,11 +249,6 @@ void PinnedToolbarActionsModel::MaybeMig
UpdatePinnedState(kActionShowChromeLabs, true);
pref_service_->SetBoolean(prefs::kPinnedChromeLabsMigrationComplete, true);
}
- if (features::HasTabSearchToolbarButton() &&
- !pref_service_->GetBoolean(prefs::kTabSearchMigrationComplete)) {
- UpdatePinnedState(kActionTabSearch, true);
- pref_service_->SetBoolean(prefs::kTabSearchMigrationComplete, true);
- }
if (!pref_service_->GetBoolean(prefs::kPinnedCastMigrationComplete)) {
bool previously_pinned =
pref_service_->GetBoolean(prefs::kShowCastIconInToolbar);
--- a/chrome/browser/ui/toolbar/toolbar_pref_names.cc
+++ b/chrome/browser/ui/toolbar/toolbar_pref_names.cc
@@ -23,14 +23,6 @@ void RegisterProfilePrefs(user_prefs::Pr
default_pinned_actions.Append(chrome_labs_action.value());
}
- if (features::HasTabSearchToolbarButton()) {
- const std::optional<std::string>& tab_search_action =
- actions::ActionIdMap::ActionIdToString(kActionTabSearch);
- if (tab_search_action.has_value()) {
- default_pinned_actions.Append(tab_search_action.value());
- }
- }
-
registry->RegisterListPref(prefs::kPinnedActions,
std::move(default_pinned_actions),
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
--- a/chrome/browser/ui/tab_search_feature.cc
+++ b/chrome/browser/ui/tab_search_feature.cc
@@ -12,6 +12,6 @@ namespace features {
bool HasTabSearchToolbarButton() {
// It is important that this value not change at runtime in production. Any
// future updates to this function must maintain that property.
- return glic::GlicEnabling::IsEnabledByFlags();
+ return true;
}
} // namespace features
--- a/chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.cc
@@ -226,9 +226,7 @@ class TabSearchPositionMetricsLogger {
HorizontalTabStripRegionView::HorizontalTabStripRegionView(
BrowserView* browser_view)
: profile_(browser_view->GetProfile()),
- render_tab_search_before_tab_strip_(
- !tabs::GetDefaultTabSearchRightAligned() ||
- base::FeatureList::IsEnabled(tabs::kHorizontalTabStripComboButton)),
+ render_tab_search_before_tab_strip_(false),
tab_search_position_metrics_logger_(
std::make_unique<TabSearchPositionMetricsLogger>(
browser_view->browser())),
@@ -246,16 +244,6 @@ HorizontalTabStripRegionView::Horizontal
tab_strip_ = AddChildView(CreateTabStrip(this, browser_view));
BrowserWindowInterface* const browser = browser_view->browser();
- if (browser &&
- (browser->GetType() == BrowserWindowInterface::Type::TYPE_NORMAL) &&
- base::FeatureList::IsEnabled(tabs::kHorizontalTabStripComboButton)) {
- combo_button_ = AddChildView(std::make_unique<TabStripComboButton>(
- browser, TabStripComboButton::Context::kHorizontalTabStrip));
- combo_button_->SetProperty(views::kCrossAxisAlignmentKey,
- views::LayoutAlignment::kCenter);
- combo_button_->MaybeShowIPH();
- }
-
if (base::FeatureList::IsEnabled(features::kTabGroupsFocusing)) {
unfocus_button_ = AddChildView(std::make_unique<TabStripControlButton>(
browser, views::Button::PressedCallback(), vector_icons::kArrowBackIcon,
@@ -284,26 +272,9 @@ HorizontalTabStripRegionView::Horizontal
tab_strip_action_container->SetProperty(views::kCrossAxisAlignmentKey,
views::LayoutAlignment::kStart);
- } else if (!base::FeatureList::IsEnabled(
- tabs::kHorizontalTabStripComboButton)) {
- tab_search_container = std::make_unique<TabSearchContainer>(
- render_tab_search_before_tab_strip_, this, tab_strip_);
- tab_search_container->SetProperty(views::kCrossAxisAlignmentKey,
- views::LayoutAlignment::kCenter);
}
}
- if (tab_search_container && render_tab_search_before_tab_strip_) {
- tab_search_container->SetPaintToLayer();
- tab_search_container->layer()->SetFillsBoundsOpaquely(false);
-
- tab_search_container_ = AddChildView(std::move(tab_search_container));
-
- // Inset between the tabsearch and tabstrip should be reduced to account for
- // extra spacing.
- tab_search_container_->SetProperty(views::kViewIgnoredByLayoutKey, true);
- }
-
// Allow the |tab_strip_| to grow into the free space available in
// the HorizontalTabStripRegionView.
const views::FlexSpecification tab_strip_flex_spec =
@@ -339,14 +310,6 @@ HorizontalTabStripRegionView::Horizontal
.WithOrder(3));
SetProperty(views::kElementIdentifierKey, kTabStripRegionElementId);
-
- if (browser && tab_search_container && !render_tab_search_before_tab_strip_) {
- tab_search_container_ = AddChildView(std::move(tab_search_container));
- tab_search_container_->SetProperty(
- views::kMarginsKey,
- gfx::Insets::TLBR(0, 0, 0,
- GetLayoutConstant(LayoutConstant::kTabStripPadding)));
- }
if (tab_strip_action_container) {
tab_strip_action_container_ =
AddChildView(std::move(tab_strip_action_container));
@@ -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
@@ -391,6 +391,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -402,6 +402,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
@@ -225,6 +225,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -228,6 +228,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
registry->RegisterBooleanPref(prefs::kHeliumUpdateFetchingEnabled, true);
@@ -86,7 +86,7 @@
#include "base/threading/thread_restrictions.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
@@ -69,6 +70,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(
@@ -207,6 +211,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_(
@@ -286,6 +291,33 @@ ExtensionService::ExtensionService(
@@ -287,6 +292,33 @@ ExtensionService::ExtensionService(
prefs::kExtensionsUIDeveloperMode,
base::BindRepeating(&ExtensionService::OnDeveloperModePrefChanged,
base::Unretained(this)));
@@ -170,7 +170,7 @@
"//content/public/browser",
--- a/extensions/browser/api/storage/storage_frontend.cc
+++ b/extensions/browser/api/storage/storage_frontend.cc
@@ -19,6 +19,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"
@@ -216,6 +218,24 @@ void StorageFrontend::OnReadFinished(
@@ -276,6 +278,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
@@ -2023,6 +2023,12 @@
@@ -2027,6 +2027,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
@@ -2243,6 +2243,10 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2255,6 +2255,10 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_HELIUM_SERVICES_UPDATE},
{"heliumUpdatesToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION},
@@ -25,7 +25,7 @@
location <= mojom::ManifestLocation::kMaxValue;
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -6265,7 +6265,8 @@ void AddChromeSchemeFactories(
@@ -6344,7 +6344,8 @@ void AddChromeSchemeFactories(
std::vector<std::string> allowed_webui_hosts;
// Support for chrome:// scheme if appropriate.
if ((extension->is_extension() || extension->is_platform_app()) &&
@@ -52,7 +52,7 @@
--- a/chrome/common/extensions/chrome_extensions_client.cc
+++ b/chrome/common/extensions/chrome_extensions_client.cc
@@ -220,8 +220,9 @@ void ChromeExtensionsClient::AddOriginAc
@@ -221,8 +221,9 @@ void ChromeExtensionsClient::AddOriginAc
// conservative. Components shouldn't be subject to enterprise policy controls
// or blocking access to the webstore so they get the highest priority
// allowlist entry.
@@ -108,7 +108,7 @@
auto& context_permissions = GetContextPermissions(*context_id_);
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -183,7 +183,8 @@ void SetIsIncognitoEnabled(const std::st
@@ -180,7 +180,8 @@ void SetIsIncognitoEnabled(const std::st
#if !BUILDFLAG(IS_ANDROID)
// TODO(treib,kalman): Should this be Manifest::IsComponentLocation(..)?
// (which also checks for kExternalComponent).
@@ -117,7 +117,7 @@
+ && !Manifest::IsUBlockComponent(extension->id())) {
// This shouldn't be called for component extensions unless it is called
// by sync, for syncable component extensions.
// See http://crbug.com/112290 and associated CLs for the sordid history.
// See http://crbug.com/40716400 and associated CLs for the sordid
--- a/chrome/browser/extensions/standard_management_policy_provider.cc
+++ b/chrome/browser/extensions/standard_management_policy_provider.cc
@@ -29,6 +29,14 @@ bool AdminPolicyIsModifiable(ExtensionMa
@@ -169,7 +169,7 @@
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
#include "components/supervised_user/core/common/buildflags.h"
@@ -700,11 +701,18 @@ bool ExtensionPrefs::ReadPrefAsBoolean(c
@@ -711,11 +712,18 @@ bool ExtensionPrefs::ReadPrefAsBoolean(c
std::string_view pref_key,
bool* out_value) const {
const base::DictValue* ext = GetExtensionPref(extension_id);
@@ -191,7 +191,7 @@
if (!value) {
return false;
}
@@ -1141,6 +1149,9 @@ void ExtensionPrefs::ClearInapplicableDi
@@ -1152,6 +1160,9 @@ void ExtensionPrefs::ClearInapplicableDi
const DisableReasonSet kAllowDisableReasons = {
disable_reason::DISABLE_RELOAD,
disable_reason::DISABLE_UNSUPPORTED_REQUIREMENT,
@@ -201,7 +201,7 @@
disable_reason::DISABLE_CORRUPTED, disable_reason::DISABLE_REINSTALL};
const base::flat_set<int> current_disable_reasons =
@@ -2228,6 +2239,7 @@ void ExtensionPrefs::RegisterProfilePref
@@ -2206,6 +2217,7 @@ void ExtensionPrefs::RegisterProfilePref
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterDictionaryPref(pref_names::kExtensions);
registry->RegisterListPref(pref_names::kPinnedExtensions,
@@ -209,7 +209,7 @@
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterListPref(pref_names::kDeletedComponentExtensions);
registry->RegisterDictionaryPref(kExtensionsBlocklistUpdate);
@@ -2304,14 +2316,14 @@ bool ExtensionPrefs::GetUserExtensionPre
@@ -2282,14 +2294,14 @@ bool ExtensionPrefs::GetUserExtensionPre
ExtensionIdContainer* id_container_out) const {
DCHECK(id_container_out->empty());
@@ -229,7 +229,7 @@
}
--- a/extensions/common/features/simple_feature.cc
+++ b/extensions/common/features/simple_feature.cc
@@ -698,6 +698,7 @@ Feature::Availability SimpleFeature::Get
@@ -691,6 +691,7 @@ Feature::Availability SimpleFeature::Get
// Component extensions can access any feature.
// NOTE: Deliberately does not match EXTERNAL_COMPONENT.
if (component_extensions_auto_granted_ &&
@@ -105,7 +105,7 @@
},
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -602,6 +602,7 @@ source_set("extensions") {
@@ -608,6 +608,7 @@ source_set("extensions") {
"//net:extras",
"//services/metrics/public/cpp:ukm_builders",
"//storage/browser",
@@ -115,7 +115,7 @@
"//ui/base/unowned_user_data",
--- a/chrome/chrome_paks.gni
+++ b/chrome/chrome_paks.gni
@@ -152,6 +152,7 @@ template("chrome_extra_paks") {
@@ -156,6 +156,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",
@@ -123,7 +123,7 @@
"$root_gen_dir/ui/resources/ui_lottie_resources.pak",
"$root_gen_dir/ui/webui/resources/webui_resources.pak",
]
@@ -175,6 +176,7 @@ template("chrome_extra_paks") {
@@ -183,6 +184,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,11 +1,11 @@
--- a/chrome/common/url_constants.h
+++ b/chrome/common/url_constants.h
@@ -193,7 +193,7 @@ inline constexpr char kChromeUIUntrusted
@@ -175,7 +175,7 @@ inline constexpr char kChromeUIUntrusted
"chrome-untrusted://new-tab-page/";
// The URL for the Chromium project used in the About dialog.
-inline constexpr char16_t kChromiumProjectURL[] = u"https://www.chromium.org/";
+inline constexpr char16_t kChromiumProjectURL[] = u"https://www.chro""mium.org/";
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
// The URL for the "Clear browsing data in Chrome" help center article.
+inline constexpr char16_t kChromiumProjectURL[] = u"https://www.chro""mium.org/";
#if BUILDFLAG(IS_CHROMEOS)
static_assert(std::u16string_view(kChromiumProjectURL) ==
ash::chrome_external_urls::kChromiumProjectURL);
@@ -9,7 +9,7 @@
#if defined(USE_AURA)
registry->RegisterBooleanPref(prefs::kOverscrollHistoryNavigationEnabled,
@@ -158,7 +158,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -161,7 +161,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
@@ -147,7 +147,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -150,7 +150,7 @@ void RegisterBrowserUserPrefs(user_prefs
false);
#endif
registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy,
+1 -1
View File
@@ -187,7 +187,7 @@
// Raise the priority of cloud machine policies only when the metapolicy
--- a/chrome/browser/ui/webui/policy/policy_ui.cc
+++ b/chrome/browser/ui/webui/policy/policy_ui.cc
@@ -228,6 +228,7 @@ void CreateAndAddPolicyUIHtmlSource(Prof
@@ -229,6 +229,7 @@ void CreateAndAddPolicyUIHtmlSource(Prof
{"sourceCloudFromAsh", IDS_POLICY_SOURCE_CLOUD_FROM_ASH},
{"sourceRestrictedManagedGuestSessionOverride",
IDS_POLICY_SOURCE_RESTRICTED_MANAGED_GUEST_SESSION_OVERRIDE},
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -2438,6 +2438,9 @@
@@ -2514,6 +2514,9 @@
<message name="IDS_SETTINGS_SEARCH_ENGINES_ADD_SITE_SEARCH" desc="Title for a dialog that allows adding a new site search engine.">
Add site search
</message>
@@ -12,7 +12,7 @@
</message>
--- a/components/components_strings.grd
+++ b/components/components_strings.grd
@@ -391,6 +391,9 @@
@@ -392,6 +392,9 @@
<message name="IDS_ADD" desc="Used for Add on buttons">
Add
</message>
@@ -24,7 +24,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -177,6 +177,7 @@ namespace {
@@ -175,6 +175,7 @@ namespace {
void AddCommonStrings(content::WebUIDataSource* html_source, Profile* profile) {
static constexpr webui::LocalizedString kLocalizedStrings[] = {
{"add", IDS_ADD},
@@ -32,7 +32,7 @@
{"advancedPageTitle", IDS_SETTINGS_ADVANCED},
{"back", IDS_ACCNAME_BACK},
{"basicPageTitle", IDS_SETTINGS_BASIC},
@@ -2858,6 +2859,8 @@ void AddSearchEnginesStrings(content::We
@@ -2888,6 +2889,8 @@ void AddSearchEnginesStrings(content::We
IDS_SETTINGS_SEARCH_ENGINES_PAGE_EXPLANATION},
{"searchEnginesAddSiteSearch",
IDS_SETTINGS_SEARCH_ENGINES_ADD_SITE_SEARCH},
@@ -1,6 +1,6 @@
--- a/chrome/browser/resources/settings/site_settings/notifications_page.ts
+++ b/chrome/browser/resources/settings/site_settings/notifications_page.ts
@@ -106,7 +106,7 @@ export class NotificationsPageElement ex
@@ -97,7 +97,7 @@ export class NotificationsPageElement ex
shouldShowSafetyHub_: {
type: Boolean,
value() {
@@ -1,11 +1,11 @@
--- a/net/dns/public/doh_provider_entry.cc
+++ b/net/dns/public/doh_provider_entry.cc
@@ -286,7 +286,7 @@ const DohProviderEntry::List& DohProvide
LoggingLevel::kNormal},
{"Quad9Secure",
MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(
- DohProviderQuad9Secure, base::FEATURE_DISABLED_BY_DEFAULT),
+ DohProviderQuad9Secure, base::FEATURE_ENABLED_BY_DEFAULT),
{"9.9.9.9", "149.112.112.112", "2620:fe::fe", "2620:fe::9"},
/*dns_over_tls_hostnames=*/{"dns.quad9.net", "dns9.quad9.net"},
"https://dns.quad9.net/dns-query",
@@ -313,7 +313,7 @@ const DohProviderEntry::List& DohProvide
{
"Quad9Secure",
MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(
- DohProviderQuad9Secure, base::FEATURE_DISABLED_BY_DEFAULT),
+ DohProviderQuad9Secure, base::FEATURE_ENABLED_BY_DEFAULT),
{"9.9.9.9", "149.112.112.112", "2620:fe::fe", "2620:fe::9"},
/*dns_over_tls_hostnames=*/{"dns.quad9.net", "dns9.quad9.net"},
"https://dns.quad9.net/dns-query",
@@ -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>
@@ -294,6 +294,9 @@
@@ -303,6 +303,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
@@ -512,7 +512,7 @@ void AddAppearanceStrings(content::WebUI
@@ -513,7 +513,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},
@@ -546,9 +546,7 @@ void AddAppearanceStrings(content::WebUI
@@ -547,9 +547,7 @@ void AddAppearanceStrings(content::WebUI
{"classicTheme", IDS_SETTINGS_CLASSIC_THEME},
{"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME},
#endif
+1 -1
View File
@@ -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
@@ -2064,7 +2064,7 @@ void AddSyncControlsStrings(content::Web
@@ -2076,7 +2076,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
@@ -1955,6 +1955,9 @@
@@ -1959,6 +1959,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>
@@ -3333,6 +3336,9 @@
@@ -3433,6 +3436,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
@@ -2211,7 +2211,7 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2223,7 +2223,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.
@@ -2976,7 +2976,7 @@ void AddSiteSettingsStrings(content::Web
@@ -3006,7 +3006,7 @@ void AddSiteSettingsStrings(content::Web
{"trackingProtectionSitesAllowedCookiesTitle",
IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_TITLE},
{"trackingProtectionSitesAllowedCookiesDescription",
@@ -89,7 +89,7 @@
import '../settings_vars.css.js';
--- a/chrome/browser/resources/settings/lazy_load.ts
+++ b/chrome/browser/resources/settings/lazy_load.ts
@@ -238,9 +238,7 @@ export {SettingsManageProfileElement} fr
@@ -235,9 +235,7 @@ export {SettingsManageProfileElement} fr
export {ManageProfileBrowserProxyImpl, ProfileShortcutStatus} from './people_page/manage_profile_browser_proxy.js';
export type {ManageProfileBrowserProxy} from './people_page/manage_profile_browser_proxy.js';
// </if>
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1968,6 +1968,12 @@
@@ -1972,6 +1972,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
@@ -2216,9 +2216,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2228,9 +2228,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},
@@ -29,7 +29,7 @@
{"heliumServicesSetupPendingText", IDS_SETTINGS_HELIUM_SERVICES_SETUP_PENDING_TEXT},
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
@@ -23,6 +23,7 @@
@@ -16,6 +16,7 @@
label="$i18n{clearBrowsingData}"
sub-label="$i18n{clearBrowsingDataDescription}"
on-click="onClearBrowsingDataClick_"></cr-link-row>
@@ -37,7 +37,7 @@
<cr-link-row id="thirdPartyCookiesLinkRow"
start-icon="privacy:cookie"
class="hr" label="$i18n{thirdPartyCookiesLinkRowLabel}"
@@ -31,6 +32,7 @@
@@ -24,6 +25,7 @@
on-click="onCookiesClick_"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
@@ -45,7 +45,7 @@
<template is="dom-if" if=
"[[shouldShowAdPrivacy_(
isPrivacySandboxRestricted_,
@@ -46,16 +48,16 @@
@@ -39,16 +41,16 @@
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
</template>
@@ -69,7 +69,7 @@
sub-label="$i18n{heliumServicesDescription}"
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts
@@ -272,13 +272,11 @@ export class SettingsPrivacyPageElement
@@ -266,13 +266,11 @@ export class SettingsPrivacyPageElement
case 'heliumServices':
triggerId = 'heliumServicesLinkRow';
break;
@@ -19,7 +19,7 @@
class="cr-nav-menu-item">
--- a/chrome/browser/resources/settings/route.ts
+++ b/chrome/browser/resources/settings/route.ts
@@ -240,7 +240,7 @@ function createRoutes(): SettingsRoutes
@@ -235,7 +235,7 @@ function createRoutes(): SettingsRoutes
r.PASSKEYS = r.YOUR_SAVED_INFO.createChild('/passkeys');
// </if>
}
@@ -1,6 +1,6 @@
--- a/chrome/browser/resources/settings/site_settings/notifications_page.html
+++ b/chrome/browser/resources/settings/site_settings/notifications_page.html
@@ -12,15 +12,10 @@
@@ -9,15 +9,10 @@
<div id="notificationRadioGroup" class="radio-group">
<template is="dom-if" if="[[showNotificationPermissionsReview_]]">
<template is="dom-if" if="[[shouldShowSafetyHub_]]">
@@ -1,6 +1,6 @@
--- a/chrome/browser/resources/settings/route.ts
+++ b/chrome/browser/resources/settings/route.ts
@@ -358,7 +358,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
@@ -69,7 +69,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>
@@ -70,7 +70,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
<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="point-scan" viewBox="0 -960 960 960"><path d="M423.5-423.5Q400-447 400-480t23.5-56.5Q447-560 480-560t56.5 23.5Q560-513 560-480t-23.5 56.5Q513-400 480-400t-56.5-23.5ZM440-640v-200h80v200h-80Zm0 520v-200h80v200h-80Zm200-320v-80h200v80H640Zm-520 0v-80h200v80H120Z"></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="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="shield-spark" 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-316Zm0 180q7 0 8-6 16-61 60.5-105.5T654-472q6-2 6-8 0-7-6-8-61-16-105-60.5T488-654q-1-6-8-6-6 0-8 6-16 61-60.5 105.5T306-488q-6 1-6 8 0 6 6 8 61 16 105.5 60.5T472-306q2 6 8 6Z"></path></g>
<g id="sprint"><path d="M 4.519531 16.5 L 3.480469 15.4375 L 11.417969 7.5 L 9.5 7.5 L 9.5 9 L 8 9 L 8 6 L 12.644531 6 L 16.707031 10.042969 C 17.027344 10.347656 17.378906 10.582031 17.761719 10.75 C 18.140625 10.917969 18.554688 11 19 11 L 19 12.5 C 18.359375 12.5 17.753906 12.378906 17.175781 12.136719 C 16.601562 11.890625 16.089844 11.546875 15.644531 11.105469 L 14 9.5 L 12 11.5 L 13.980469 13.480469 L 8.75 16.5 L 8 15.207031 L 11.519531 13.167969 L 9.707031 11.332031 Z M 3 11 L 3 9.5 L 7 9.5 L 7 11 Z M 1 8.5 L 1 7 L 5 7 L 5 8.5 Z M 16 7 C 15.582031 7 15.230469 6.851562 14.9375 6.558594 C 14.644531 6.261719 14.5 5.910156 14.5 5.496094 C 14.5 5.082031 14.644531 4.730469 14.9375 4.4375 C 15.230469 4.144531 15.582031 4 16 4 C 16.417969 4 16.769531 4.148438 17.0625 4.441406 C 17.355469 4.738281 17.5 5.089844 17.5 5.503906 C 17.5 5.917969 17.355469 6.269531 17.0625 6.5625 C 16.769531 6.855469 16.417969 7 16 7 Z M 3 6 L 3 4.5 L 7 4.5 L 7 6 Z M 3 6 "></path></g>
<g id="sync-saved-locally"><path d="M 9.105469 11.707031 L 13.832031 7 L 12.644531 5.8125 L 9.105469 9.355469 L 7.332031 7.582031 L 6.167969 8.75 Z M 0.832031 17.5 L 0.832031 15.832031 L 19.167969 15.832031 L 19.167969 17.5 Z M 3.332031 15 C 2.875 15 2.484375 14.835938 2.15625 14.511719 C 1.828125 14.183594 1.667969 13.792969 1.667969 13.332031 L 1.667969 4.167969 C 1.667969 3.707031 1.828125 3.316406 2.15625 2.988281 C 2.484375 2.664062 2.875 2.5 3.332031 2.5 L 16.667969 2.5 C 17.125 2.5 17.515625 2.664062 17.84375 2.988281 C 18.171875 3.316406 18.332031 3.707031 18.332031 4.167969 L 18.332031 13.332031 C 18.332031 13.792969 18.171875 14.183594 17.84375 14.511719 C 17.515625 14.835938 17.125 15 16.667969 15 Z M 3.332031 13.332031 L 16.667969 13.332031 L 16.667969 4.167969 L 3.332031 4.167969 Z M 3.332031 13.332031 L 3.332031 4.167969 Z M 3.332031 13.332031 "></path></g>
@@ -170,7 +170,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
@@ -173,7 +173,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
<!-- Navigation: Security GM3 icon -->
<g id="security" viewBox="0 -960 960 960">
@@ -10,7 +10,7 @@
"appearance_page/appearance_page_index.ts",
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -490,6 +490,8 @@ void AddAppearanceStrings(content::WebUI
@@ -488,6 +488,8 @@ void AddAppearanceStrings(content::WebUI
Profile* profile) {
static constexpr webui::LocalizedString kLocalizedStrings[] = {
{"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
@@ -159,7 +159,7 @@
// Nothing to do. Other parent elements are responsible for updating
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
@@ -96,28 +96,6 @@
@@ -92,28 +92,6 @@
</cr-button>
</template>
</div>
@@ -188,19 +188,20 @@
<div
class="hr"
hidden="[[!showHr_(
@@ -191,11 +169,6 @@
label="$i18n{showTabGroupsInBookmarksBar}">
@@ -213,12 +191,6 @@
hidden="[[showProjectsPanelEnabled_]]">
</settings-toggle-button>
- <settings-toggle-button class="hr" id="autoPinNewTabGroups"
- pref="{{prefs.auto_pin_new_tab_groups}}"
- label="$i18n{autoPinNewTabGroups}">
- label="$i18n{autoPinNewTabGroups}"
- hidden="[[showProjectsPanelEnabled_]]">
- </settings-toggle-button>
-
<div class="cr-row">
<div class="flex cr-padded-text" aria-hidden="true">
$i18n{sidePanelPosition}
@@ -280,10 +253,6 @@
@@ -303,10 +275,6 @@
</settings-toggle-button>
</if>
</div>
@@ -226,7 +227,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
@@ -93,6 +93,11 @@ NOTE: Chrome OS icons go in ./chromeos/o
@@ -96,6 +96,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
@@ -302,6 +302,9 @@
@@ -298,6 +298,9 @@
<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
@@ -1923,8 +1923,8 @@ void AddPersonalizationOptionsStrings(co
@@ -1935,8 +1935,8 @@ void AddPersonalizationOptionsStrings(co
{"enablePersonalizationLoggingDesc",
IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC},
{"spellingDescription", IDS_SETTINGS_SPELLING_PREF_DESC},
@@ -71,8 +71,8 @@
+#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"
@@ -228,6 +229,15 @@ void DownloadBubbleSecurityViewInfo::Pop
#include "extensions/strings/grit/extensions_strings.h"
@@ -229,6 +230,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
@@ -3096,6 +3096,10 @@ are declared in tools/grit/grit_args.gni
@@ -3118,6 +3118,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
@@ -3124,6 +3128,10 @@ are declared in tools/grit/grit_args.gni
@@ -3146,6 +3150,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>
+4 -4
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
+++ b/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
@@ -161,13 +161,8 @@ void BrowserAppMenuButton::UpdateIcon()
@@ -162,13 +162,8 @@ void BrowserAppMenuButton::UpdateIcon()
}
void BrowserAppMenuButton::UpdateInkdrop() {
@@ -16,7 +16,7 @@
}
bool BrowserAppMenuButton::IsLabelPresentAndVisible() const {
@@ -178,14 +173,6 @@ bool BrowserAppMenuButton::IsLabelPresen
@@ -179,14 +174,6 @@ bool BrowserAppMenuButton::IsLabelPresen
}
SkColor BrowserAppMenuButton::GetForegroundColor(ButtonState state) const {
@@ -31,7 +31,7 @@
return ToolbarButton::GetForegroundColor(state);
}
@@ -197,23 +184,7 @@ void BrowserAppMenuButton::UpdateTextAnd
@@ -198,23 +185,7 @@ void BrowserAppMenuButton::UpdateTextAnd
} else if (type_and_severity_.type ==
AppMenuIconController::IconType::kUpgradeNotification) {
tooltip_message_id = IDS_APPMENU_TOOLTIP_UPDATE_AVAILABLE;
@@ -55,7 +55,7 @@
} else if (type_and_severity_.type ==
AppMenuIconController::IconType::kHeliumServicesUpdate) {
tooltip_message_id = IDS_APPMENU_TOOLTIP_HELIUM_SERVICES_UPDATE;
@@ -233,37 +204,19 @@ void BrowserAppMenuButton::UpdateTextAnd
@@ -234,37 +205,19 @@ void BrowserAppMenuButton::UpdateTextAnd
}
bool BrowserAppMenuButton::ShouldPaintBorder() const {
+13 -13
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
@@ -771,9 +771,6 @@ SaveAndShareSubMenuModel::SaveAndShareSu
@@ -775,9 +775,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);
@@ -786,11 +783,6 @@ SaveAndShareSubMenuModel::SaveAndShareSu
@@ -790,11 +787,6 @@ SaveAndShareSubMenuModel::SaveAndShareSu
}
}
@@ -22,9 +22,9 @@
} // namespace
////////////////////////////////////////////////////////////////////////////////
@@ -924,23 +916,6 @@ void ToolsMenuModel::Build(Browser* brow
AddItemWithStringIdAndVectorIcon(this, IDC_NAME_WINDOW, IDS_NAME_WINDOW,
kNameWindowIcon);
@@ -947,23 +939,6 @@ void ToolsMenuModel::Build(Browser* brow
}
}
- if (CustomizeChromePageHandler::IsSupported(
- NtpCustomBackgroundServiceFactory::GetForProfile(browser->profile()),
@@ -46,7 +46,7 @@
AddSeparator(ui::NORMAL_SEPARATOR);
AddItemWithStringIdAndVectorIcon(this, IDC_PERFORMANCE, IDS_SHOW_PERFORMANCE,
@@ -1808,22 +1783,8 @@ void AppMenuModel::Build() {
@@ -1829,22 +1804,8 @@ void AppMenuModel::Build() {
// Build (and, by extension, Init) should only be called once.
DCHECK_EQ(0u, GetItemCount());
@@ -71,7 +71,7 @@
AddSeparator(ui::NORMAL_SEPARATOR);
}
@@ -1860,32 +1821,6 @@ void AppMenuModel::Build() {
@@ -1881,32 +1842,6 @@ void AppMenuModel::Build() {
AddSeparator(ui::NORMAL_SEPARATOR);
@@ -104,7 +104,7 @@
if (!browser_->profile()->IsOffTheRecord()) {
auto recent_tabs_sub_menu =
std::make_unique<RecentTabsSubMenuModel>(provider_, browser_);
@@ -1907,7 +1842,7 @@ void AppMenuModel::Build() {
@@ -1928,7 +1863,7 @@ void AppMenuModel::Build() {
std::make_unique<BookmarkSubMenuModel>(this, browser_);
AddSubMenuWithStringIdAndVectorIcon(
@@ -113,7 +113,7 @@
bookmark_sub_menu_model_.get(), kBookmarksListsMenuIcon);
SetElementIdentifierAt(GetIndexOfCommandId(IDC_BOOKMARKS_MENU).value(),
kBookmarksMenuItem);
@@ -1924,23 +1859,10 @@ void AppMenuModel::Build() {
@@ -1945,23 +1880,10 @@ void AppMenuModel::Build() {
kTabGroupsMenuItem);
}
@@ -141,7 +141,7 @@
AddItemWithStringIdAndVectorIcon(this, IDC_CLEAR_BROWSING_DATA,
IDS_CLEAR_BROWSING_DATA,
@@ -1987,9 +1909,6 @@ void AppMenuModel::Build() {
@@ -2006,9 +1928,6 @@ void AppMenuModel::Build() {
lens::features::kLensOverlay));
}
@@ -151,7 +151,7 @@
CreateFindAndEditSubMenu();
sub_menus_.push_back(
@@ -2038,6 +1957,12 @@ void AppMenuModel::Build() {
@@ -2059,6 +1978,12 @@ void AppMenuModel::Build() {
#endif
#endif
@@ -164,7 +164,7 @@
AddItemWithStringIdAndVectorIcon(this, IDC_OPTIONS, IDS_SETTINGS,
kSettingsMenuIcon);
@@ -2134,34 +2059,21 @@ bool AppMenuModel::AddDefaultBrowserMenu
@@ -2155,34 +2080,21 @@ bool AppMenuModel::AddDefaultBrowserMenu
return false;
}
@@ -214,7 +214,7 @@
bool AppMenuModel::AddHeliumSchemaItem() {
--- a/chrome/browser/ui/toolbar/app_menu_model.h
+++ b/chrome/browser/ui/toolbar/app_menu_model.h
@@ -291,6 +291,9 @@ class AppMenuModel : public ui::SimpleMe
@@ -307,6 +307,9 @@ class AppMenuModel : public ui::SimpleMe
// Adds a nag to review Helium services permission changes
bool AddHeliumSchemaItem();
+4 -4
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/toolbar/app_menu.cc
+++ b/chrome/browser/ui/views/toolbar/app_menu.cc
@@ -254,7 +254,7 @@ class InMenuButtonBackground : public vi
@@ -255,7 +255,7 @@ class InMenuButtonBackground : public vi
constexpr int kCircularButtonSize = 28;
bounds_rect.ClampToCenteredSize(
gfx::Size(kCircularButtonSize, kCircularButtonSize));
@@ -9,7 +9,7 @@
}
const auto* const color_provider = view->GetColorProvider();
cc::PaintFlags flags;
@@ -1477,21 +1477,8 @@ void AppMenu::PopulateMenu(MenuItemView*
@@ -1482,21 +1482,8 @@ void AppMenu::PopulateMenu(MenuItemView*
PopulateMenu(item, model->GetSubmenuModelAt(i));
}
@@ -31,7 +31,7 @@
ProfileAttributesEntry* profile_attributes =
GetProfileAttributesFromProfile(browser_->profile());
if (profile_attributes &&
@@ -1505,7 +1492,6 @@ void AppMenu::PopulateMenu(MenuItemView*
@@ -1510,7 +1497,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(
@@ -1525,18 +1511,6 @@ void AppMenu::PopulateMenu(MenuItemView*
@@ -1530,18 +1516,6 @@ void AppMenu::PopulateMenu(MenuItemView*
break;
}
case IDC_WEB_APP_UPGRADE_DIALOG: {
+1 -1
View File
@@ -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"
@@ -1943,7 +1944,21 @@ void AutocompleteController::UpdateKeywo
@@ -1941,7 +1942,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();
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -174,7 +174,7 @@ using PermanentFolderType = BookmarkPare
@@ -176,7 +176,7 @@ using PermanentFolderType = BookmarkPare
bool animations_enabled = true;
// Thickness of the separator (|) in dips (density-independent pixels).
@@ -9,7 +9,7 @@
gfx::ImageSkia* GetImageSkiaNamed(int id) {
return ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id);
@@ -370,8 +370,8 @@ class BookmarkBarView::ButtonSeparatorVi
@@ -372,8 +372,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);
@@ -721,7 +721,7 @@ void BookmarkBarView::Layout(PassKey) {
@@ -728,7 +728,7 @@ void BookmarkBarView::Layout(PassKey) {
}
int x = GetLeadingMargin();
@@ -29,7 +29,7 @@
int width = View::width() - x - kBookmarkBarTrailingMargin;
const int button_height =
@@ -842,7 +842,7 @@ void BookmarkBarView::Layout(PassKey) {
@@ -849,7 +849,7 @@ void BookmarkBarView::Layout(PassKey) {
// the bookmark buttons.
if (saved_tab_group_bar_width > 0) {
// Possibly update the paddings of the separator
@@ -33,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
@@ -240,7 +240,7 @@ void NTPResourceCache::CreateNewTabIncog
@@ -239,7 +239,7 @@ void NTPResourceCache::CreateNewTabIncog
DCHECK(profile_->HasAnyOffTheRecordProfile());
replacements["incognitoTabDescription"] =
+403 -19
View File
@@ -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,108 +1,4 @@
@@ -1,178 +1,13 @@
-<!-- #html_wrapper_imports_start
-import {nothing} from '//resources/lit/v3_0/lit.rollup.js';
-#html_wrapper_imports_end -->
@@ -54,12 +54,12 @@
- ?hidden="${!this.showScrim_}"></div>
- ` : ''}
- <div id="searchboxContainer"
- @focusin="${this.onSearchboxContainerFocusIn_}"
- @focusout="${this.onSearchboxContainerFocusOut_}">
- <cr-searchbox id="searchbox" ?is-dark="${this.isThemeDark_()}"
- @focusin="${this.onSearchboxContainerFocusin_}"
- @focusout="${this.onSearchboxContainerFocusout_}">
- <ntp-searchbox id="searchbox" ?is-dark="${this.isThemeDark_()}"
- placeholder-text="$i18n{searchBoxPlaceholder}"
- ?color-source-is-baseline="${this.colorSourceIsBaseline}"
- @open-composebox="${this.openComposebox_}"
- @open-composebox="${this.onOpenComposebox_}"
- @open-lens-search="${this.onOpenLensSearch_}"
- @open-voice-search="${this.onOpenVoiceSearch_}" ?shown="${this.realboxShown_}"
- ?had-secondary-side="${this.realboxHadSecondarySide}"
@@ -73,16 +73,17 @@
- ?cycling-placeholders="${this.searchboxCyclingPlaceholders_}"
- context-menu-glif-animation-state="${this.contextMenuGlifAnimationState_}"
- ?multi-line-enabled="${this.multiLineEnabled_}">
- </cr-searchbox>
- </ntp-searchbox>
- ${this.showComposebox_ ? html`
- <div id="dialogAnchor"></div>
- <dialog id="composeboxDialog">
- <cr-composebox id="composebox"
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
- ?searchbox-next-enabled="${this.ntpRealboxNextEnabled_}"
- .submitButtonIconType="${this.ntpRealboxNextEnabled_ ? 'forward' : 'upward'}"
- ?disable-caret-color-animation="${!this.caretAnimationsEnabled_}"
- @composebox-initialized="${this.onComposeboxInitialized_}"
- @close-composebox="${this.closeComposebox_}"
- .state="${this.composeboxState_}"
- @close-composebox="${this.onCloseComposebox_}"
- @context-menu-entrypoint-click="${this.onContextMenuEntrypointClick_}"
- @voice-search-action="${this.onComposeVoiceSearchAction_}"
- searchbox-layout-mode="${this.realboxLayoutMode_}">
@@ -103,9 +104,9 @@
- && this.ntpNextFeaturesEnabled_ && this.isActionChipsVisible_ ? html`
- <ntp-action-chips
- ?show-background="${this.showActionChipsBackground_()}"
- ?reduced-motion-preferred="${this.reducedMotionPreferred_}"
- @action-chip-click="${this.openComposebox_}"
- @action-chips-retrieval-state-changed="${this.onActionChipsRetrievalStateChanged_}">
- @action-chip-click="${this.onActionChipClick_}"
- @action-chips-retrieval-state-changed="${this.onActionChipsRetrievalStateChanged_}"
- @action-chips-disabled="${this.onActionChipsDisabled_}">
- </ntp-action-chips>
- ` : ''}
- ${this.lazyRender_ ? html`
@@ -120,13 +121,16 @@
${this.lazyRender_ ? html`
${this.shortcutsEnabled_ ? html`
<cr-most-visited id="mostVisited" .theme="${this.theme_?.mostVisited || null}"
@@ -112,65 +8,7 @@ import {nothing} from '//resources/lit/v
@most-visited-auto-removed="${this.showAutoRemovedToast_}">
single-row reflow-on-overflow
?expandable-tiles-enabled="${this.ntpNextFeaturesEnabled_}"
- max-tiles-before-show-more="${this.maxTilesBeforeShowMore_}"
- @most-visited-auto-removed="${this.onMostVisitedAutoRemoved_}">
+ max-tiles-before-show-more="${this.maxTilesBeforeShowMore_}">
</cr-most-visited>
` : ''}
- ${this.middleSlotPromoEnabled_ ? html`
- <ntp-middle-slot-promo
- @ntp-middle-slot-promo-loaded="${this.onMiddleSlotPromoLoaded_}"
- @ntp-middle-slot-promo-loaded="${this.onNtpMiddleSlotPromoLoaded_}"
- ?hidden="${!this.promoAndModulesLoaded_}">
- </ntp-middle-slot-promo>
- ` : ''}
@@ -137,17 +141,18 @@
- @modules-shown-to-user-changed="${this.onModulesShownToUserChanged_}"
- @customize-module="${this.onCustomizeModule_}"
- @modules-loaded="${this.onModulesLoaded_}"
- @modules-auto-removed="${this.showAutoRemovedToast_}"
- @modules-auto-removed="${this.onModulesAutoRemoved_}"
- ?hidden="${!this.promoAndModulesLoaded_}">
- </ntp-modules>
- `}
- ` : ''}
- ${this.shortcutsEnabled_ || this.modulesEnabled_ ? html`
- ${this.shortcutsEnabled_ || this.modulesEnabled_ ||
- this.ntpNextFeaturesEnabled_ ? html`
- <cr-toast id="undoToast" duration="10000">
- <div id="undoToastMessage">${this.undoAutoRemovalMessage_ || ''}</div>
- <div id="undoToastMessage">${this.undoToastMessage_ || ''}</div>
- <cr-button id="undoButton"
- aria-label="$i18n{undoDescription}"
- @click="${this.onAutoRemovalUndoClick_}">
- @click="${this.onUndoButtonClick_}">
- $i18n{undo}
- </cr-button>
- </cr-toast>
@@ -186,7 +191,7 @@
<ntp-customize-buttons id="customizeButtons"
?modules-shown-to-user="${this.modulesShownToUser}"
?show-background-image="${this.showBackgroundImage_}"
@@ -192,23 +30,3 @@ import {nothing} from '//resources/lit/v
@@ -194,23 +29,3 @@ import {nothing} from '//resources/lit/v
` : ''}
<div id="contentBottomSpacer"></div>
</div>
@@ -275,3 +280,382 @@
</cr-button>
</div>
<!--_html_template_end_-->`;
--- a/chrome/browser/resources/new_tab_page/app.ts
+++ b/chrome/browser/resources/new_tab_page/app.ts
@@ -3,9 +3,6 @@
// found in the LICENSE file.
import './action_chips/action_chips.js';
-import './iframe.js';
-import './logo.js';
-import './ntp_searchbox.js';
import '/strings.m.js';
import 'chrome://new-tab-page/shared/customize_buttons/customize_buttons.js';
import 'chrome://resources/cr_elements/cr_button/cr_button.js';
@@ -22,9 +19,6 @@ import {VoiceSearchAction as ComposeVoic
import {HelpBubbleMixinLit} from 'chrome://resources/cr_components/help_bubble/help_bubble_mixin_lit.js';
import type {CrToastElement} from 'chrome://resources/cr_elements/cr_toast/cr_toast.js';
import {assert, assertNotReached} from 'chrome://resources/js/assert.js';
-import type {ClickInfo} from 'chrome://resources/js/browser_command.mojom-webui.js';
-import {Command} from 'chrome://resources/js/browser_command.mojom-webui.js';
-import {BrowserCommandProxy} from 'chrome://resources/js/browser_command/browser_command_proxy.js';
import {hexColorToSkColor, skColorToRgba} from 'chrome://resources/js/color_utils.js';
import {EventTracker} from 'chrome://resources/js/event_tracker.js';
import {FocusOutlineManager} from 'chrome://resources/js/focus_outline_manager.js';
@@ -43,8 +37,6 @@ import {SidePanelOpenTrigger} from './cu
import {CustomizeButtonsProxy} from './customize_buttons_proxy.js';
import {CustomizeChromeSection} from './customize_chrome.mojom-webui.js';
import {CustomizeDialogPage} from './customize_dialog_types.js';
-import type {IframeElement} from './iframe.js';
-import type {LogoElement} from './logo.js';
import {recordBoolean, recordDuration, recordEnumeration, recordLinearValue, recordLoadDuration, recordSparseValueWithPersistentHash} from './metrics_utils.js';
import {ParentTrustedDocumentProxy} from './modules/microsoft_auth_frame_connector.js';
import type {PageCallbackRouter, PageHandlerRemote, Theme} from './new_tab_page.mojom-webui.js';
@@ -52,7 +44,6 @@ import {NtpBackgroundImageSource} from '
import {NewTabPageProxy} from './new_tab_page_proxy.js';
import type {MicrosoftAuthUntrustedDocumentRemote} from './ntp_microsoft_auth_shared_ui.mojom-webui.js';
import {ShowNtpPromosResult} from './ntp_promo.mojom-webui.js';
-import type {NtpSearchboxElement} from './ntp_searchbox.js';
import {$$} from './utils.js';
import {Action as VoiceAction, recordVoiceAction} from './voice_search_overlay.js';
import {WindowProxy} from './window_proxy.js';
@@ -63,17 +54,6 @@ enum ModuleLoadStatus {
MODULE_LOAD_COMPLETE = 2,
}
-interface ExecutePromoBrowserCommandData {
- commandId: Command;
- clickInfo: ClickInfo;
-}
-
-interface CanShowPromoWithBrowserCommandData {
- frameType: string;
- messageType: string;
- commandId: Command;
-}
-
/**
* Elements on the NTP. This enum must match the numbering for NTPElement in
* enums.xml. These values are persisted to logs. Entries should not be
@@ -122,13 +102,10 @@ enum NtpWallpaperSearchButtonHideConditi
}
const CUSTOMIZE_URL_PARAM: string = 'customize';
-const OGB_IFRAME_ORIGIN = 'chrome-untrusted://new-tab-page';
const MSAL_IFRAME_ORIGIN = 'chrome-untrusted://ntp-microsoft-auth';
export const CUSTOMIZE_CHROME_BUTTON_ELEMENT_ID =
'CustomizeButtonsHandler::kCustomizeChromeButtonElementId';
-export const CONTEXTUAL_ENTRYPOINT_ELEMENT_ID =
- 'NewTabPageUI::kRealboxContextualEntrypointElementId';
// 900px ~= 561px (max value for --ntp-search-box-width) * 1.5 + some margin.
const realboxCanShowSecondarySideMediaQueryList =
@@ -163,12 +140,6 @@ const AppElementBase = HelpBubbleMixinLi
export interface AppElement {
$: {
customizeButtons: CustomizeButtonsElement,
- oneGoogleBarClipPath: HTMLElement,
- logo: LogoElement,
- searchbox: NtpSearchboxElement,
- composebox: ComposeboxElement,
- undoToast: CrToastElement,
- undoToastMessage: HTMLElement,
};
}
@@ -218,9 +189,6 @@ export class AppElement extends AppEleme
// =======================================================================
composeboxState_: {type: Object},
- oneGoogleBarIframeOrigin_: {type: String},
- oneGoogleBarIframePath_: {type: String},
- oneGoogleBarLoaded_: {type: Boolean},
theme_: {type: Object},
showCustomize_: {type: Boolean},
showCustomizeChromeText_: {type: Boolean},
@@ -359,9 +327,6 @@ export class AppElement extends AppEleme
loadTimeData.getBoolean('searchboxShowComposebox');
protected accessor composeboxState_: ComposeboxState|null = null;
- protected accessor oneGoogleBarIframeOrigin_: string = OGB_IFRAME_ORIGIN;
- protected accessor oneGoogleBarIframePath_: string|undefined;
- protected accessor oneGoogleBarLoaded_: boolean = false;
protected accessor theme_: Theme|null = null;
protected accessor showCustomize_: boolean = false;
protected accessor showCustomizeChromeText_: boolean = false;
@@ -477,13 +442,6 @@ export class AppElement extends AppEleme
this.shouldPrintPerformance_ =
new URLSearchParams(location.search).has('print_perf');
- this.oneGoogleBarIframePath_ = (() => {
- const params = new URLSearchParams();
- params.set(
- 'paramsencoded', btoa(window.location.search.replace(/^[?]/, '&')));
- return `${OGB_IFRAME_ORIGIN}/one-google-bar?${params}`;
- })();
-
this.showCustomize_ =
WindowProxy.getInstance().url.searchParams.has(CUSTOMIZE_URL_PARAM);
@@ -584,30 +542,12 @@ export class AppElement extends AppEleme
this.setCustomizeChromeSidePanelVisible_(this.showCustomize_);
recordCustomizeChromeOpen(NtpCustomizeChromeEntryPoint.URL);
}
- this.eventTracker_.add(window, 'message', (event: MessageEvent) => {
- const data = event.data;
- // Something in OneGoogleBar is sending a message that is received here.
- // Need to ignore it.
- if (typeof data !== 'object') {
- return;
- }
- if ('frameType' in data && data.frameType === 'one-google-bar') {
- this.handleOneGoogleBarMessage_(event);
- }
- });
this.eventTracker_.add(window, 'keydown', this.onWindowKeydown_.bind(this));
this.eventTracker_.add(
window, 'click', this.onWindowClick_.bind(this), /*capture=*/ true);
this.eventTracker_.add(document, 'scroll', () => {
this.scrolledToTop_ = document.documentElement.scrollTop <= 0;
});
- this.eventTracker_.add(
- WindowProxy.getInstance().matchMedia('(prefers-color-scheme: dark)'),
- 'change', (e: MediaQueryListEvent) => {
- if (e.matches) {
- this.updateOneGoogleBarAppearance_();
- }
- });
if (loadTimeData.getString('backgroundImageUrl')) {
this.backgroundManager_.getBackgroundImageLoadTime().then(
time => {
@@ -738,11 +678,6 @@ export class AppElement extends AppEleme
this.recordBrowserPromoMetrics_();
}
- if (this.ntpRealboxNextEnabled_ && this.realboxLayoutMode_ !== '') {
- this.registerHelpBubble(
- CONTEXTUAL_ENTRYPOINT_ELEMENT_ID, ['#searchbox', '#context'],
- {fixed: true});
- }
}
override updated(changedProperties: PropertyValues<this>) {
@@ -784,31 +719,12 @@ export class AppElement extends AppEleme
composeboxDialog.showModal();
}
- if (changedPrivateProperties.has('oneGoogleBarLoaded_') ||
- changedPrivateProperties.has('theme_') ||
- changedPrivateProperties.has('showComposebox_')) {
- this.updateOneGoogleBarAppearance_();
- }
-
if (changedPrivateProperties.has('showComposebox_') &&
this.showComposebox_ && this.enableThreadsRail_) {
recordBoolean('NewTabPage.ThreadsRail.Shown', true);
}
}
- // Called to update the OGB of relevant NTP state changes.
- private updateOneGoogleBarAppearance_() {
- if (this.oneGoogleBarLoaded_) {
- const isNtpDarkTheme =
- this.theme_ && (!!this.theme_.backgroundImage || this.theme_.isDark);
- $$<IframeElement>(this, '#oneGoogleBar')!.postMessage({
- type: 'updateAppearance',
- // We should be using a light OGB for dark themes and vice versa.
- applyLightTheme: isNtpDarkTheme,
- });
- }
- }
-
private computeShowCustomizeChromeText_(): boolean {
if (this.showWallpaperSearchButton_) {
return false;
@@ -901,26 +817,15 @@ export class AppElement extends AppEleme
const composebox =
this.shadowRoot.querySelector<ComposeboxElement>('#composebox');
assert(composebox);
- const closeComposebox = new CustomEvent('closeComposebox', {
- detail: {composeboxText: composebox.getText()},
- bubbles: true,
- cancelable: true,
- });
-
- this.onCloseComposebox_(closeComposebox);
+ this.onCloseComposebox_();
}
- protected onCloseComposebox_(e: CustomEvent<{composeboxText?: string}>) {
+ protected onCloseComposebox_() {
const composeboxDialog =
this.shadowRoot.querySelector<HTMLDialogElement>('#composeboxDialog');
assert(composeboxDialog);
composeboxDialog.close();
- const composeboxText = e.detail.composeboxText;
-
- if (composeboxText && composeboxText.trim()) {
- this.$.searchbox.setInputText(composeboxText);
- }
const composebox =
this.shadowRoot.querySelector<ComposeboxElement>('#composebox');
assert(composebox);
@@ -932,7 +837,6 @@ export class AppElement extends AppEleme
this.toggleComposebox_();
this.logoColor_ = this.computeLogoColor_();
this.singleColoredLogo_ = this.computeSingleColoredLogo_();
- this.updateOneGoogleBarAppearance_();
}
protected onOpenVoiceSearch_() {
@@ -1135,101 +1039,6 @@ export class AppElement extends AppEleme
return !!this.theme_ && (!!this.theme_.logoColor || this.theme_.isDark);
}
- /**
- * Sends the command received from the given source and origin to the browser.
- * Relays the browser response to whether or not a promo containing the given
- * command can be shown back to the source promo frame. |commandSource| and
- * |commandOrigin| are used only to send the response back to the source promo
- * frame and should not be used for anything else.
- * @param messageData Data received from the source promo frame.
- * @param commandSource Source promo frame.
- * @param commandOrigin Origin of the source promo frame.
- */
- private canShowPromoWithBrowserCommand_(
- messageData: CanShowPromoWithBrowserCommandData, commandSource: Window,
- commandOrigin: string) {
- // Make sure we don't send unsupported commands to the browser.
- /** @type {!Command} */
- const commandId = Object.values(Command).includes(messageData.commandId) ?
- messageData.commandId :
- Command.kUnknownCommand;
-
- BrowserCommandProxy.getInstance().handler.canExecuteCommand(commandId).then(
- ({canExecute}) => {
- const response = {
- messageType: messageData.messageType,
- [messageData.commandId]: canExecute,
- };
- commandSource.postMessage(response, commandOrigin);
- });
- }
-
- /**
- * Sends the command and the accompanying mouse click info received from the
- * promo of the given source and origin to the browser. Relays the execution
- * status response back to the source promo frame. |commandSource| and
- * |commandOrigin| are used only to send the execution status response back to
- * the source promo frame and should not be used for anything else.
- * @param commandData Command and mouse click info.
- * @param commandSource Source promo frame.
- * @param commandOrigin Origin of the source promo frame.
- */
- private executePromoBrowserCommand_(
- commandData: ExecutePromoBrowserCommandData, commandSource: Window,
- commandOrigin: string) {
- // Make sure we don't send unsupported commands to the browser.
- const commandId = Object.values(Command).includes(commandData.commandId) ?
- commandData.commandId :
- Command.kUnknownCommand;
-
- BrowserCommandProxy.getInstance()
- .handler.executeCommand(commandId, commandData.clickInfo)
- .then(({commandExecuted}) => {
- commandSource.postMessage(commandExecuted, commandOrigin);
- });
- }
-
- /**
- * Handles messages from the OneGoogleBar iframe. The messages that are
- * handled include show bar on load and overlay updates.
- *
- * 'overlaysUpdated' message includes the updated array of overlay rects that
- * are shown.
- */
- private handleOneGoogleBarMessage_(event: MessageEvent) {
- const data = event.data;
- if (data.messageType === 'loaded') {
- const oneGoogleBar = $$<IframeElement>(this, '#oneGoogleBar')!;
- oneGoogleBar.style.clipPath = 'url(#oneGoogleBarClipPath)';
- oneGoogleBar.style.zIndex = '1000';
- this.oneGoogleBarLoaded_ = true;
- this.pageHandler_.onOneGoogleBarRendered(WindowProxy.getInstance().now());
- } else if (data.messageType === 'overlaysUpdated') {
- this.$.oneGoogleBarClipPath.querySelectorAll('rect').forEach(el => {
- el.remove();
- });
- const overlayRects = data.data as DOMRect[];
- overlayRects.forEach(({x, y, width, height}) => {
- const rectElement =
- document.createElementNS('http://www.w3.org/2000/svg', 'rect');
- // Add 8px around every rect to ensure shadows are not cutoff.
- rectElement.setAttribute('x', `${x - 8}`);
- rectElement.setAttribute('y', `${y - 8}`);
- rectElement.setAttribute('width', `${width + 16}`);
- rectElement.setAttribute('height', `${height + 16}`);
- this.$.oneGoogleBarClipPath.appendChild(rectElement);
- });
- } else if (data.messageType === 'can-show-promo-with-browser-command') {
- this.canShowPromoWithBrowserCommand_(
- data, event.source as Window, event.origin);
- } else if (data.messageType === 'execute-browser-command') {
- this.executePromoBrowserCommand_(
- data.data, event.source as Window, event.origin);
- } else if (data.messageType === 'click') {
- recordClick(NtpElement.ONE_GOOGLE_BAR);
- }
- }
-
protected onNtpMiddleSlotPromoLoaded_() {
this.middleSlotPromoLoaded_ = true;
}
@@ -1497,33 +1306,14 @@ export class AppElement extends AppEleme
* multiple toasts at the same time. Otherwise, the first pending toast is
* popped and shown.
*/
- private processPendingUndoToasts_() {
- if (this.pendingUndoToasts_.length === 0) {
- return;
- }
-
- if (this.$.undoToast.open) {
- return;
- }
-
- const undoToastContext = this.pendingUndoToasts_.shift()!;
- this.undoToastCallback_ = undoToastContext.undo;
- this.undoToastMessage_ = undoToastContext.message;
- this.$.undoToast.show();
- }
+ private processPendingUndoToasts_() {}
/**
* Processes an auto-removal undo click. It will hide the toast, call the
* undo callback, and call the processing function to handle the next queued
* toast (if any).
*/
- protected onUndoButtonClick_() {
- this.$.undoToast.hide();
- this.undoToastCallback_?.();
- this.undoToastCallback_ = null;
- this.undoToastMessage_ = null;
- this.processPendingUndoToasts_();
- }
+ protected onUndoButtonClick_() {}
}
declare global {
--- a/chrome/browser/resources/new_tab_page/new_tab_page.ts
+++ b/chrome/browser/resources/new_tab_page/new_tab_page.ts
@@ -21,7 +21,7 @@ export {BrowserCommandProxy} from 'chrom
export {BrowserProxyImpl} from 'chrome://resources/js/metrics_reporter/browser_proxy.js';
export {MetricsReporterImpl} from 'chrome://resources/js/metrics_reporter/metrics_reporter.js';
export {getTrustedHTML} from 'chrome://resources/js/static_types.js';
-export {AppElement, CONTEXTUAL_ENTRYPOINT_ELEMENT_ID, CUSTOMIZE_CHROME_BUTTON_ELEMENT_ID, NtpCustomizeChromeEntryPoint, NtpElement} from './app.js';
+export {AppElement, CUSTOMIZE_CHROME_BUTTON_ELEMENT_ID, NtpCustomizeChromeEntryPoint, NtpElement} from './app.js';
export {BackgroundManager} from './background_manager.js';
export {CustomizeButtonsProxy} from './customize_buttons_proxy.js';
export {CustomizeDialogPage} from './customize_dialog_types.js';
@@ -1,10 +1,9 @@
--- a/chrome/browser/ui/extensions/extension_post_install_dialog.cc
+++ b/chrome/browser/ui/extensions/extension_post_install_dialog.cc
@@ -51,23 +51,6 @@ void ConfigurePostInstallDialogModel(
extension_name))
@@ -53,23 +53,6 @@ void ConfigurePostInstallDialogModel(
.SetIcon(
ui::ImageModel::FromImageSkia(model->MakeIconOfSize(kMaxIconSize)));
-
- if (model->show_how_to_use()) {
- dialog_model_builder.AddParagraph(
- ui::DialogModelLabel(model->GetHowToUseText()));
@@ -21,6 +20,7 @@
- dialog_model_builder.AddParagraph(ui::DialogModelLabel(
- l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_INFO)));
- }
}
void OpenExtensionsShortcutsPage(
-
#if BUILDFLAG(IS_ANDROID)
dialog_model_builder.AddOkButton(
base::DoNothing(),
+1 -1
View File
@@ -41,7 +41,7 @@
.baseColor="${this.greyDefaultColor_.base}"
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -437,6 +437,8 @@ void ThemeService::UseDefaultTheme() {
@@ -438,6 +438,8 @@ void ThemeService::UseDefaultTheme() {
}
ClearThemeData(/*reset_all_settings=*/true);
@@ -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
@@ -135,9 +135,6 @@ constexpr int kSeparatorPadding = 8;
@@ -139,9 +139,6 @@ constexpr int kSeparatorPadding = 8;
constexpr int kDialogWidth = 240;
// The default size of icons that are displayed in the tab group editor bubble.
static constexpr int kDefaultIconSize = 20;
@@ -10,7 +10,7 @@
int GetHorizontalSpacing() {
return ChromeLayoutProvider::Get()->GetDistanceMetric(
@@ -855,10 +852,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
@@ -506,10 +503,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
}
bool TabGroupEditorBubbleView::ShouldShowSavedFooter() const {
@@ -21,4 +21,4 @@
+ return false;
}
void TabGroupEditorBubbleView::NewTabInGroupPressed() {
bool TabGroupEditorBubbleView::OwnsGroup() const {
+2 -2
View File
@@ -1,6 +1,6 @@
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1445,7 +1445,18 @@ void View::Paint(const PaintInfo& parent
@@ -1448,7 +1448,18 @@ void View::Paint(const PaintInfo& parent
const SkPath clip_path_in_parent = clip_path_.makeTransform(
gfx::TransformToFlattenedSkMatrix(to_parent_recording_space));
@@ -22,7 +22,7 @@
--- a/chrome/browser/ui/views/frame/custom_corners_background.cc
+++ b/chrome/browser/ui/views/frame/custom_corners_background.cc
@@ -186,9 +186,14 @@ void CustomCornersBackground::Paint(gfx:
@@ -167,9 +167,14 @@ void CustomCornersBackground::Paint(gfx:
CornerToRadiusVector(corners.upper_trailing, default_radius_),
CornerToRadiusVector(corners.lower_trailing, default_radius_),
CornerToRadiusVector(corners.lower_leading, default_radius_)};
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/browser_frame_view.h
+++ b/chrome/browser/ui/views/frame/browser_frame_view.h
@@ -147,6 +147,11 @@ class BrowserFrameView : public views::F
@@ -156,6 +156,11 @@ class BrowserFrameView : public views::F
// frame. Mainly used by special browsers such as PWAs.
virtual void UpdateThrobber(bool running) = 0;
@@ -14,7 +14,7 @@
// This is typically called when child views (e.g. tab strip, toolbar,
--- a/chrome/browser/ui/views/frame/browser_frame_view_mac.h
+++ b/chrome/browser/ui/views/frame/browser_frame_view_mac.h
@@ -59,6 +59,7 @@ class BrowserFrameViewMac : public Brows
@@ -61,6 +61,7 @@ class BrowserFrameViewMac : public Brows
int NonClientHitTest(const gfx::Point& point) override;
void UpdateMinimumSize() override;
void WindowControlsOverlayEnabledChanged() override;
@@ -24,8 +24,8 @@
gfx::Size GetMinimumSize() const override;
--- a/chrome/browser/ui/views/frame/browser_frame_view_mac.mm
+++ b/chrome/browser/ui/views/frame/browser_frame_view_mac.mm
@@ -301,6 +301,18 @@ views::LayoutAlignment BrowserFrameViewM
}
@@ -332,6 +332,18 @@ gfx::RoundedCornersF BrowserFrameViewMac
return gfx::RoundedCornersF();
}
+void BrowserFrameViewMac::SetCaptionButtonsOpacity(float opacity) {
@@ -45,7 +45,7 @@
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
@@ -526,6 +526,27 @@ bool OpaqueBrowserFrameView::ShouldShowC
@@ -527,6 +527,27 @@ bool OpaqueBrowserFrameView::ShouldShowC
return GetShowWindowTitleBar();
}
@@ -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
@@ -512,6 +512,8 @@ void AddAppearanceStrings(content::WebUI
@@ -510,6 +510,8 @@ void AddAppearanceStrings(content::WebUI
{"browserLayoutCompact", IDS_SETTINGS_BROWSER_LAYOUT_COMPACT},
{"browserLayoutVertical", IDS_SETTINGS_BROWSER_LAYOUT_VERTICAL},
{"tabStripRightAlign", IDS_SETTINGS_TAB_STRIP_RIGHT_ALIGN},
@@ -24,18 +24,18 @@
{"centeredLocationBar", IDS_SETTINGS_CENTERED_LOCATION_BAR},
{"verticalCollapseShortcut", IDS_SETTINGS_VERTICAL_COLLAPSE_SHORTCUT},
{"minimalLocationBar", IDS_SETTINGS_MINIMAL_LOCATION_BAR},
@@ -577,6 +579,8 @@ void AddAppearanceStrings(content::WebUI
@@ -578,6 +580,8 @@ void AddAppearanceStrings(content::WebUI
base::FeatureList::IsEnabled(features::kTabHoverCardImages));
html_source->AddBoolean("showVerticalTabsEnabled",
tabs::IsVerticalTabsFeatureEnabled());
+ html_source->AddBoolean("showZenModeEnabled",
+ features::IsHeliumZenModeFeatureEnabled());
html_source->AddBoolean(
"tabSearchIsRightAlignedAtStartup",
"showTabStripComboButtonEnabled",
tabs::IsVerticalTabsFeatureEnabled() ||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -206,6 +206,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -211,6 +211,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumMinimalLocationBar] =
settings_api::PrefType::kBoolean;
@@ -45,7 +45,7 @@
(*s_allowlist)[::embedder_support::kAlternateErrorPagesEnabled] =
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
@@ -124,6 +124,12 @@
@@ -120,6 +120,12 @@
pref="{{prefs.helium.browser.minimal_location_bar}}"
label="$i18n{minimalLocationBar}">
</settings-toggle-button>
@@ -60,28 +60,28 @@
<div
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.ts
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.ts
@@ -250,6 +250,13 @@ export class SettingsAppearancePageEleme
@@ -250,7 +250,12 @@ export class SettingsAppearancePageEleme
return loadTimeData.getBoolean('showVerticalTabsEnabled');
},
},
-
+ showZenModeEnabled_: {
+ type: Boolean,
+ value() {
+ return loadTimeData.getBoolean('showZenModeEnabled');
+ },
+ },
+
showTabSearchPositionRestartButton_: {
showTabStripComboButtonEnabled_: {
type: Boolean,
value: false,
@@ -315,6 +322,7 @@ export class SettingsAppearancePageEleme
value() {
@@ -313,6 +318,7 @@ export class SettingsAppearancePageEleme
// </if>
declare private showVerticalTabsEnabled_: boolean;
+ declare private showZenModeEnabled_: boolean;
declare private showTabSearchPositionRestartButton_: boolean;
declare private showManagedThemeDialog_: boolean;
declare private sidePanelOptions_: DropdownMenuOptionList;
declare private showTabStripComboButtonEnabled_: boolean;
declare private showProjectsPanelEnabled_: boolean;
declare private showEverythingMenuEnabled_: boolean;
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -25,6 +25,13 @@ bool HeliumUseCompactLocationWidth() {
@@ -100,7 +100,7 @@
#if BUILDFLAG(IS_WIN)
--- a/chrome/browser/ui/ui_features.h
+++ b/chrome/browser/ui/ui_features.h
@@ -23,6 +23,9 @@ namespace features {
@@ -22,6 +22,9 @@ namespace features {
BASE_DECLARE_FEATURE(kHeliumCompactLocationWidth);
bool HeliumUseCompactLocationWidth();
@@ -178,7 +178,7 @@
HeliumLayoutType GetBrowserLayout() const;
--- a/chrome/browser/ui/tabs/tab_strip_prefs.cc
+++ b/chrome/browser/ui/tabs/tab_strip_prefs.cc
@@ -36,6 +36,8 @@ void RegisterProfilePrefs(user_prefs::Pr
@@ -48,6 +48,8 @@ void RegisterProfilePrefs(user_prefs::Pr
registry->RegisterIntegerPref(prefs::kHeliumLayout,
std::to_underlying(HeliumLayoutType::kClassic));
registry->RegisterBooleanPref(prefs::kHeliumVerticalRightAligned, false);
@@ -189,7 +189,7 @@
kVerticalTabStripDefaultUncollapsedWidth);
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1321,6 +1321,13 @@ inline constexpr char kHeliumLayout[] =
@@ -1242,6 +1242,13 @@ inline constexpr char kHeliumLayout[] =
inline constexpr char kHeliumVerticalRightAligned[] =
"helium.browser.vertical_right_aligned";
+69 -84
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -314,6 +314,7 @@
@@ -317,6 +317,7 @@
#include "ui/events/event_handler.h"
#include "ui/events/event_utils.h"
#include "ui/events/keycodes/keyboard_codes.h"
@@ -43,7 +43,7 @@
// Add any legal notices required for the user to the queue.
QueueLegalAndPrivacyNotices(browser_->GetProfile());
@@ -1169,6 +1182,7 @@ BrowserView::~BrowserView() {
@@ -1174,6 +1187,7 @@ BrowserView::~BrowserView() {
// Stop the animation timer explicitly here to avoid running it in a nested
// message loop, which may run by Browser destructor.
loading_animation_timer_.Stop();
@@ -126,20 +126,13 @@
InvalidateLayout();
return;
}
@@ -1615,6 +1683,7 @@ void BrowserView::OnVerticalTabStripMode
}
UpdateTabSearchBubbleHost();
+ UpdateZenCollapseButtonVisibility();
InvalidateLayout();
}
@@ -1639,10 +1708,207 @@ void BrowserView::OnToolbarTabStripState
@@ -1641,10 +1709,208 @@ void BrowserView::OnToolbarTabStripState
toolbar_->UpdateToolbarLayout();
}
+ UpdateZenModeState();
UpdateTabSearchBubbleHost();
+ UpdateZenCollapseButtonVisibility();
InvalidateLayout();
}
@@ -342,7 +335,7 @@
void BrowserView::OnProjectsPanelStateChanged(
ProjectsPanelStateController* controller) {
projects_panel_container_->OnProjectsPanelStateChanged(controller);
@@ -2377,6 +2643,8 @@ void BrowserView::FullscreenStateChanged
@@ -2397,6 +2663,8 @@ void BrowserView::FullscreenStateChanged
ShowSplitView(GetActiveContentsWebView()->HasFocus());
}
}
@@ -351,7 +344,7 @@
}
void BrowserView::SetToolbarButtonProvider(ToolbarButtonProvider* provider) {
@@ -2429,6 +2697,17 @@ void BrowserView::SetFocusToLocationBar(
@@ -2449,6 +2717,17 @@ void BrowserView::SetFocusToLocationBar(
return;
}
@@ -366,10 +359,10 @@
+ DeprecatedLayoutImmediately();
+ }
+
LocationBarView* location_bar = GetLocationBarView();
location_bar->FocusLocation(is_user_initiated);
if (!location_bar->omnibox_view()->HasFocus()) {
@@ -3188,7 +3467,7 @@ bool BrowserView::IsToolbarVisible() con
LocationBar* location_bar = GetLocationBar();
location_bar->FocusLocation(is_user_initiated,
/*clear_focus_if_failed=*/true);
@@ -3203,7 +3482,7 @@ bool BrowserView::IsToolbarVisible() con
}
bool BrowserView::IsToolbarShowing() const {
@@ -378,7 +371,7 @@
}
bool BrowserView::IsLocationBarVisible() const {
@@ -5208,6 +5487,8 @@ void BrowserView::AddedToWidget() {
@@ -5239,6 +5518,8 @@ void BrowserView::AddedToWidget() {
base::BindRepeating(&BrowserView::OnToolbarTabStripStateChanged,
base::Unretained(this)));
OnToolbarTabStripStateChanged(helium_layout_controller);
@@ -387,7 +380,7 @@
}
UpdateTabSearchBubbleHost();
@@ -5357,6 +5638,7 @@ void BrowserView::AddedToWidget() {
@@ -5388,6 +5669,7 @@ void BrowserView::AddedToWidget() {
}
void BrowserView::RemovedFromWidget() {
@@ -395,7 +388,7 @@
CHECK(GetFocusManager());
focus_manager_observation_.Reset();
}
@@ -5385,6 +5667,14 @@ void BrowserView::OnThemeChanged() {
@@ -5416,6 +5698,14 @@ void BrowserView::OnThemeChanged() {
}
FrameColorsChanged();
@@ -410,7 +403,7 @@
}
bool BrowserView::GetDropFormats(
@@ -5715,6 +6005,9 @@ void BrowserView::UpdateFastResizeForCon
@@ -5746,6 +6036,9 @@ void BrowserView::UpdateFastResizeForCon
}
int BrowserView::GetClientAreaTop() {
@@ -420,7 +413,7 @@
views::View* top_view = toolbar_;
#if BUILDFLAG(ENABLE_WEBUI_TAB_STRIP)
// If webui_tab_strip is displayed, the client area starts at its top,
@@ -6260,6 +6553,42 @@ void BrowserView::OnWillChangeFocus(View
@@ -6300,6 +6593,42 @@ void BrowserView::OnWillChangeFocus(View
}
void BrowserView::OnDidChangeFocus(View* focused_before, View* focused_now) {
UpdateAccessibleNameForRootView();
@@ -465,7 +458,7 @@
WebAppFrameToolbarView* BrowserView::web_app_frame_toolbar() {
--- a/chrome/browser/ui/views/frame/browser_view.h
+++ b/chrome/browser/ui/views/frame/browser_view.h
@@ -56,6 +56,9 @@
@@ -55,6 +55,9 @@
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/mojom/window_show_state.mojom-forward.h"
#include "ui/base/pointer/touch_ui_controller.h"
@@ -475,7 +468,7 @@
#include "ui/gfx/native_ui_types.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/webview/unhandled_keyboard_event_handler.h"
@@ -119,6 +122,7 @@ enum class Channel;
@@ -118,6 +121,7 @@ enum class Channel;
}
namespace views {
@@ -483,7 +476,7 @@
class WebView;
} // namespace views
@@ -143,10 +147,15 @@ class BrowserView : public BrowserWindow
@@ -144,10 +148,15 @@ class BrowserView : public BrowserWindow
public infobars::InfoBarContainer::Delegate,
public ImmersiveModeController::Observer,
public webapps::AppBannerManager::Observer,
@@ -500,7 +493,7 @@
// The name of a key to store on the window handle so that other code can
// locate this object using just the handle.
static constexpr char kBrowserViewKey[] = "__BROWSER_VIEW__";
@@ -418,6 +427,15 @@ class BrowserView : public BrowserWindow
@@ -419,6 +428,15 @@ class BrowserView : public BrowserWindow
// Returns the current shown ratio of the top browser controls.
float GetTopControlsSlideBehaviorShownRatio() const;
@@ -530,7 +523,7 @@
// Testing interface:
views::View* GetContentsContainerForTest() { return contents_container_; }
BrowserViewLayout* GetBrowserViewLayoutForTesting() {
@@ -954,6 +979,19 @@ class BrowserView : public BrowserWindow
@@ -953,6 +978,19 @@ class BrowserView : public BrowserWindow
void OnProjectsPanelStateChanged(ProjectsPanelStateController* controller);
@@ -550,7 +543,7 @@
// Make sure the WebUI tab strip exists if it should.
void MaybeInitializeWebUITabStrip();
@@ -1469,6 +1507,12 @@ class BrowserView : public BrowserWindow
@@ -1468,6 +1506,12 @@ class BrowserView : public BrowserWindow
std::unique_ptr<TabCyclingEventHandler> tab_cycling_event_handler_;
@@ -578,7 +571,7 @@
virtual void MoveWindowForFindBarIfNecessary() const = 0;
--- 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
@@ -161,6 +161,18 @@ float BrowserViewLayoutDelegateImpl::Get
@@ -162,6 +162,18 @@ float BrowserViewLayoutDelegateImpl::Get
return browser_view_->GetTopControlsSlideBehaviorShownRatio();
}
@@ -597,7 +590,7 @@
gfx::NativeView BrowserViewLayoutDelegateImpl::GetHostViewForAnchoring() const {
return browser_view_->GetWidgetForAnchoring()->GetNativeView();
}
@@ -207,6 +219,10 @@ bool BrowserViewLayoutDelegateImpl::Shou
@@ -208,6 +220,10 @@ bool BrowserViewLayoutDelegateImpl::Shou
return true;
}
@@ -662,19 +655,20 @@
--- a/chrome/browser/ui/views/frame/layout/browser_view_tabbed_layout_impl.cc
+++ b/chrome/browser/ui/views/frame/layout/browser_view_tabbed_layout_impl.cc
@@ -31,9 +31,11 @@
#include "chrome/browser/ui/views/infobars/infobar_container_view.h"
#include "chrome/browser/ui/views/side_panel/side_panel.h"
@@ -34,10 +34,12 @@
#include "chrome/browser/ui/views/tabs/projects/layout_constants.h"
#include "chrome/browser/ui/views/tabs/projects/projects_panel_utils.h"
#include "chrome/browser/ui/views/tabs/projects/projects_panel_view.h"
+#include "ui/compositor/layer.h"
#include "ui/gfx/geometry/outsets.h"
#include "ui/gfx/geometry/size.h"
#include "ui/views/controls/separator.h"
#include "ui/views/view_class_properties.h"
+#include "ui/views/layout/layout_provider.h"
#include "ui/views/view_utils.h"
#if BUILDFLAG(IS_MAC)
@@ -55,6 +57,28 @@ constexpr int kVerticalTabsGrabHandleSiz
@@ -59,6 +61,28 @@ constexpr int kVerticalTabsGrabHandleSiz
// against the frame controls when it is the top-most row.
constexpr int kTopToolbarExclusion = 10;
@@ -703,7 +697,7 @@
// Maximum portion of the window a "size-restricted" contents-height side panel
// can take up. This is not the only limit on side panel size.
constexpr float kMaxContentsHeightSidePanelFraction = 2.f / 3.f;
@@ -540,6 +564,13 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -581,6 +605,13 @@ BrowserViewTabbedLayoutImpl::CalculatePr
const bool vertical_right_aligned =
delegate().IsVerticalTabStripRightAligned();
@@ -717,10 +711,10 @@
if (tab_strip_type == TabStripType::kWebUi) {
// When the WebUI tab strip is present, it does not paint over the caption
@@ -577,14 +608,19 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -613,14 +644,19 @@ BrowserViewTabbedLayoutImpl::CalculatePr
const int leading_margin = GetHorizontalTabStripLeadingMargin(params);
tabstrip_bounds = GetBoundsWithExclusion(
params, views().horizontal_tab_strip_region_view,
TabStyle::Get()->GetBottomCornerRadius());
params, views().horizontal_tab_strip_region_view, leading_margin);
- const int default_tabstrip_toolbar_overlap =
- GetLayoutConstant(LayoutConstant::kHeliumBasePadding);
- params.SetTop(tabstrip_bounds.bottom() -
@@ -741,8 +735,8 @@
+ top_chrome_visible && tabstrip_bounds.height() > 0);
}
// Lay out vertical tab strip if visible.
@@ -594,24 +630,35 @@ BrowserViewTabbedLayoutImpl::CalculatePr
// This will be the area next to the vertical tab strip (if present) that will
@@ -636,20 +672,29 @@ BrowserViewTabbedLayoutImpl::CalculatePr
gfx::Rect vertical_tab_strip_bounds;
if (tab_strip_type == TabStripType::kVertical) {
vertical_tab_strip_animation = CalculateVerticalTabStripAnimation(params);
@@ -762,7 +756,6 @@
- vertical_tab_strip_animation.top_offset);
- params.InsetHorizontal(horizontal_layout.vertical_tab_strip_width,
- /*leading=*/!vertical_right_aligned);
+
+ // In zen mode: scale the offset with the toolbar reveal so tabs
+ // slide up as chrome hides.
+ int top_offset = vertical_tab_strip_animation.top_offset;
@@ -781,6 +774,10 @@
+ params.InsetHorizontal(vertical_tab_strip_width,
+ /*leading=*/!vertical_right_aligned);
+ }
// Let the vertical tab strip animate out over the content.
if (views().vertical_tab_strip_region_view->is_animating()) {
@@ -663,7 +708,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
}
layout.AddChild(views().vertical_tab_strip_region_view,
vertical_tab_strip_bounds,
@@ -790,7 +787,7 @@
}
// TODO(crbug.com/469425263): Ensure correct layout calculations for the
@@ -652,7 +699,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -718,7 +764,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
// Inset the bookmark bar horizontally by the vertical tab strip width so
// it doesn't overlap.
@@ -800,7 +797,7 @@
auto& top_container_children = top_container_layout.children;
auto bookmarks_child = top_container_children.find(views().bookmark_bar);
if (bookmarks_child != top_container_children.end() &&
@@ -682,6 +730,29 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -748,6 +795,29 @@ BrowserViewTabbedLayoutImpl::CalculatePr
}
params.SetTop(top_container_layout.bounds.bottom());
@@ -830,7 +827,7 @@
}
if (dynamic_tab_strip) {
@@ -697,7 +768,7 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -763,7 +833,7 @@ BrowserViewTabbedLayoutImpl::CalculatePr
params.visual_client_area.width(),
tabstrip_height);
layout.AddChild(views().horizontal_tab_strip_region_view, tabstrip_bounds,
@@ -839,7 +836,7 @@
}
// Lay out the main area background.
@@ -792,6 +863,11 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -868,6 +938,11 @@ BrowserViewTabbedLayoutImpl::CalculatePr
top_container_layout.bounds =
GetTopContainerBoundsInParent(top_container_local_bounds, params);
params.SetTop(top_container_layout.bounds.bottom());
@@ -851,7 +848,7 @@
}
// Lay out infobar container.
@@ -946,15 +1022,19 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1081,15 +1156,19 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
const TabStripType tab_strip_type = GetTabStripType();
const bool dynamic_tab_strip = IsDynamicTabStrip(tab_strip_type);
const bool show_dynamic_tab_strip = ShowDynamicTabStrip(tab_strip_type);
@@ -875,10 +872,10 @@
layout.AddChild(views().webui_tab_strip,
gfx::Rect(params.visual_client_area.origin(),
gfx::Size(width, height)));
@@ -975,12 +1055,18 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1103,12 +1182,18 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
const int leading_margin = GetHorizontalTabStripLeadingMargin(params);
tabstrip_bounds = GetBoundsWithExclusion(
params, views().horizontal_tab_strip_region_view,
TabStyle::Get()->GetBottomCornerRadius());
params, views().horizontal_tab_strip_region_view, leading_margin);
- params.SetTop(tabstrip_bounds.bottom() -
- GetLayoutConstant(LayoutConstant::kTabstripToolbarOverlap));
+ tabstrip_bounds = ScaleHeightFromTop(tabstrip_bounds, top_chrome_ratio);
@@ -897,7 +894,7 @@
}
// Lay out toolbar. If toolbar is in the top-most row, it will go into the
@@ -988,7 +1074,7 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1116,7 +1201,7 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
const bool toolbar_visible = delegate().IsToolbarVisible();
if (IsParentedTo(views().toolbar, views().top_container)) {
gfx::Rect toolbar_bounds;
@@ -906,7 +903,7 @@
// Toolbar is in the top row in all layouts except Classic.
const bool is_not_classic =
GetHeliumLayout() != HeliumLayoutType::kClassic;
@@ -1001,14 +1087,17 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1129,14 +1214,17 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
params.visual_client_area.y(),
params.visual_client_area.width(),
views().toolbar->GetPreferredSize().height());
@@ -926,7 +923,7 @@
const int toolbar_tabstrip_overlap =
toolbar_visible ? GetLayoutConstant(LayoutConstant::kHeliumBasePadding)
: 0;
@@ -1024,9 +1113,13 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1152,9 +1240,13 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
const gfx::Rect bookmarks_bounds(
params.visual_client_area.x(), params.visual_client_area.y(),
params.visual_client_area.width(),
@@ -943,7 +940,7 @@
params.SetTop(bookmarks_bounds.bottom());
}
@@ -1036,29 +1129,37 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1164,29 +1256,37 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
// Lay out the loading bar when present.
if (IsParentedTo(views().loading_bar, views().top_container)) {
gfx::Rect loading_bar_bounds;
@@ -988,7 +985,7 @@
}
return gfx::Rect(params.visual_client_area.x(), original_top,
@@ -1066,6 +1167,26 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1194,6 +1294,26 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
params.visual_client_area.y() - original_top);
}
@@ -1015,7 +1012,7 @@
void BrowserViewTabbedLayoutImpl::ConfigureTopContainerBackground(
const BrowserLayoutParams& params,
CustomCornersBackground* background) {
@@ -1079,10 +1200,107 @@ void BrowserViewTabbedLayoutImpl::Config
@@ -1207,9 +1327,107 @@ void BrowserViewTabbedLayoutImpl::Config
// The top container always draws an opaque background when in vertical
// tabstrip mode.
@@ -1067,7 +1064,8 @@
}
void BrowserViewTabbedLayoutImpl::DoPostLayoutVisualAdjustments(
const BrowserLayoutParams& params) {
- const BrowserLayoutParams& /*params*/) {}
+ const BrowserLayoutParams& /*params*/) {
+ if (delegate().IsZenModeEnabledForLayout()) {
+ DoZenModeVisualAdjustments();
+ }
@@ -1124,10 +1122,10 @@
+ }
+ }
+ }
}
+}
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -1480,6 +1480,16 @@ void ToolbarView::UpdateToolbarLayout()
@@ -1860,6 +1860,16 @@ void ToolbarView::UpdateToolbarLayout()
InvalidateLayout();
}
@@ -1144,7 +1142,7 @@
bool ToolbarView::IsCompactLayout() const {
auto* controller =
HeliumLayoutStateController::From(browser_view_->browser());
@@ -1515,8 +1525,11 @@ void ToolbarView::UpdateVerticalTabsColl
@@ -1895,8 +1905,11 @@ void ToolbarView::UpdateVerticalTabsColl
auto* controller =
tabs::VerticalTabStripStateController::From(browser_view_->browser());
@@ -1159,7 +1157,7 @@
if (!should_show) {
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
@@ -159,6 +159,13 @@ class ToolbarView : public views::Access
@@ -173,6 +173,13 @@ class ToolbarView : public views::Access
// Attaches the tab strip region view when compact layout is enabled.
void AttachTabStripRegionView(HorizontalTabStripRegionView* view);
@@ -1173,7 +1171,7 @@
// Accessors.
Browser* browser() const { return browser_; }
views::Button* GetChromeLabsButton() const;
@@ -250,7 +257,6 @@ class ToolbarView : public views::Access
@@ -286,7 +293,6 @@ class ToolbarView : public views::Access
bool IsVerticalLayout() const;
bool IsVerticalTabsRightAligned() const;
bool ShouldShowToolbarNewTabButton() const;
@@ -1183,7 +1181,7 @@
// AppMenuIconController::Delegate:
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -1271,10 +1271,18 @@ bool BrowserCommandController::ExecuteCo
@@ -1301,10 +1301,18 @@ bool BrowserCommandController::ExecuteCo
bool copy = prefs->GetBoolean(prefs::kCopyPageUrlShortcut);
return ExecuteCommandWithDisposition(
@@ -1206,7 +1204,7 @@
auto* controller =
--- a/chrome/browser/ui/views/frame/contents_container_view.cc
+++ b/chrome/browser/ui/views/frame/contents_container_view.cc
@@ -194,6 +194,8 @@ ContentsContainerView::ContentsContainer
@@ -191,6 +191,8 @@ ContentsContainerView::ContentsContainer
contents_view_->SetID(VIEW_ID_TAB_CONTAINER);
leading_corner_fill_view_ =
AddChildView(std::make_unique<LeadingCornerFillView>());
@@ -1215,7 +1213,7 @@
if (base::FeatureList::IsEnabled(ntp_features::kNtpFooter)) {
new_tab_footer_view_separator_ =
@@ -284,20 +286,45 @@ void ContentsContainerView::UpdateBorder
@@ -290,20 +292,45 @@ void ContentsContainerView::UpdateBorder
is_in_split_ = is_in_split;
is_first_view_ = is_first_view;
@@ -1266,7 +1264,7 @@
}
void ContentsContainerView::OnVerticalTabStripStateChanged(
@@ -547,18 +574,21 @@ views::ProposedLayout ContentsContainerV
@@ -584,18 +611,21 @@ views::ProposedLayout ContentsContainerV
layouts.child_layouts.emplace_back(
contents_view_.get(), contents_view_->GetVisible(), contents_rect);
@@ -1293,11 +1291,11 @@
+ layout_corner_fill(leading_corner_fill_view_);
+ layout_corner_fill(trailing_corner_fill_view_);
#if BUILDFLAG(ENABLE_GLIC)
if (glic_border_) {
// |glic_border_| should not be seen over devtools.
--- a/chrome/browser/ui/views/frame/contents_container_view.h
+++ b/chrome/browser/ui/views/frame/contents_container_view.h
@@ -182,6 +182,7 @@ class ContentsContainerView : public vie
@@ -191,6 +191,7 @@ class ContentsContainerView : public vie
// Overlay rounded corner used in vertical layout.
raw_ptr<LeadingCornerFillView> leading_corner_fill_view_ = nullptr;
@@ -1317,7 +1315,7 @@
// Returns true if more than one WebContents is displayed.
bool IsInSplitView() const;
@@ -232,8 +235,6 @@ class MultiContentsView : public views::
@@ -255,8 +258,6 @@ class MultiContentsView : public views::
// Returns 0 if not in a split view.
int GetMinViewWidth(gfx::Rect available_space) const;
@@ -1344,22 +1342,9 @@
// Gets the amount of padding to place between
int GetMinimumGrabHandlePadding() const;
--- a/chrome/browser/ui/views/tabs/vertical/vertical_tab_strip_top_container.cc
+++ b/chrome/browser/ui/views/tabs/vertical/vertical_tab_strip_top_container.cc
@@ -102,7 +102,9 @@ views::ProposedLayout VerticalTabStripTo
container_views.push_back(combo_button_);
CHECK(collapse_button_);
- container_views.push_back(collapse_button_);
+ if (collapse_button_->GetVisible()) {
+ container_views.push_back(collapse_button_);
+ }
if (unfocus_button_ && unfocus_button_->GetVisible()) {
container_views.push_back(unfocus_button_);
--- a/chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.h
+++ b/chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.h
@@ -59,6 +59,7 @@ class HorizontalTabStripRegionView final
@@ -61,6 +61,7 @@ class HorizontalTabStripRegionView final
// view. |point| is in the local coordinate space of |this|.
bool IsPositionInWindowCaption(const gfx::Point& point);
@@ -1369,7 +1354,7 @@
views::View* reserved_grab_handle_space_for_testing() {
--- a/chrome/browser/ui/views/frame/vertical_tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/vertical_tab_strip_region_view.cc
@@ -525,7 +525,15 @@ void VerticalTabStripRegionView::UpdateI
@@ -680,7 +680,15 @@ void VerticalTabStripRegionView::UpdateI
? LayoutConstant::kVerticalTabStripCollapsedPadding
: LayoutConstant::kVerticalTabStripUncollapsedPadding);
@@ -1388,7 +1373,7 @@
void VerticalTabStripRegionView::OnCollapsedStateChanged(
--- a/chrome/browser/ui/views/frame/vertical_tab_strip_region_view.h
+++ b/chrome/browser/ui/views/frame/vertical_tab_strip_region_view.h
@@ -138,14 +138,14 @@ class VerticalTabStripRegionView final :
@@ -154,14 +154,14 @@ class VerticalTabStripRegionView final :
void SetHasLeadingExclusionForLayout(bool has_leading_exclusion);
+3 -3
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -1316,8 +1316,7 @@ AppMenuButton* ToolbarView::GetAppMenuBu
@@ -1698,8 +1698,7 @@ AppMenuButton* ToolbarView::GetAppMenuBu
}
gfx::Rect ToolbarView::GetFindBarBoundingBox(int contents_bottom) {
@@ -12,7 +12,7 @@
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -514,7 +514,6 @@ void LocationBarView::Init() {
@@ -515,7 +515,6 @@ void LocationBarView::Init() {
params.types_enabled.push_back(PageActionIconType::kIntentPicker);
}
params.types_enabled.push_back(PageActionIconType::kPwaInstall);
@@ -22,7 +22,7 @@
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
@@ -327,40 +327,4 @@ std::u16string FindBarController::GetSel
@@ -383,40 +383,4 @@ std::u16string FindBarController::GetSel
return selected_text;
}
@@ -29,7 +29,7 @@
// Don't mess with the window radius before macOS 26, as concentricity was not
--- a/chrome/browser/ui/views/frame/browser_frame_view_mac.mm
+++ b/chrome/browser/ui/views/frame/browser_frame_view_mac.mm
@@ -402,11 +402,11 @@ BrowserFrameViewMac::GetCaptionButtonBou
@@ -433,11 +433,11 @@ BrowserFrameViewMac::GetCaptionButtonBou
// These are empirically determined; feel free to change them if they're
// not precise.
if (@available(macOS 26, *)) {
@@ -1,30 +1,38 @@
--- a/chrome/browser/resources/side_panel/customize_chrome/app.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/app.ts
@@ -156,23 +156,6 @@ export class AppElement extends AppEleme
element.scrollIntoView({behavior: 'auto'});
});
@@ -127,8 +127,6 @@ export class AppElement extends AppEleme
this.listenerIds_ = [
this.apiProxy_.callbackRouter.scrollToSection.addListener(
this.onScrollToSection_.bind(this)),
- this.apiProxy_.callbackRouter.attachedTabStateUpdated.addListener(
- this.onAttachedTabStateUpdated_.bind(this)),
this.apiProxy_.callbackRouter.setThemeEditable.addListener(
this.onSetThemeEditable_.bind(this)),
this.apiProxy_.callbackRouter.setFooterSettings.addListener(
@@ -215,22 +213,6 @@ export class AppElement extends AppEleme
element.scrollIntoView({behavior: 'auto'});
}
- this.attachedTabStateUpdatedId_ =
- CustomizeChromeApiProxy.getInstance()
- .callbackRouter.attachedTabStateUpdated.addListener(
- (newTabPageType: NewTabPageType) => {
- if (this.newTabPageType_ === newTabPageType) {
- return;
- }
-
- this.newTabPageType_ = newTabPageType;
- private onAttachedTabStateUpdated_(newTabPageType: NewTabPageType) {
- if (this.newTabPageType_ === newTabPageType) {
- return;
- }
-
- // Since some pages aren't supported in non first party mode,
- // change the section back to the overview.
- if (!this.isSourceTabFirstPartyNtp_() &&
- !this.pageSupportedOnNonFirstPartyNtps()) {
- this.page_ = CustomizeChromePage.OVERVIEW;
- }
- });
this.pageHandler_.updateAttachedTabState();
this.setThemeEditableId_ = CustomizeChromeApiProxy.getInstance()
@@ -351,10 +334,6 @@ export class AppElement extends AppEleme
- this.newTabPageType_ = newTabPageType;
-
- // Since some pages aren't supported in non first party mode,
- // change the section back to the overview.
- if (!this.isSourceTabFirstPartyNtp_() &&
- !this.pageSupportedOnNonFirstPartyNtps()) {
- this.page_ = CustomizeChromePage.OVERVIEW;
- }
- }
-
private onSetThemeEditable_(isThemeEditable: boolean) {
this.showEditTheme_ = isThemeEditable;
}
@@ -349,10 +331,6 @@ export class AppElement extends AppEleme
await this.updateComplete;
page.focusOnBackButton();
}
@@ -37,16 +45,14 @@
declare global {
--- a/chrome/browser/resources/side_panel/customize_chrome/appearance.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/appearance.ts
@@ -141,12 +141,6 @@ export class AppearanceElement extends A
});
this.pageHandler_.updateTheme();
- this.attachedTabStateUpdatedId_ =
- CustomizeChromeApiProxy.getInstance()
- .callbackRouter.attachedTabStateUpdated.addListener(
- (newTabPageType: NewTabPageType) => {
- this.newTabPageType_ = newTabPageType;
- });
this.pageHandler_.updateAttachedTabState();
this.setThemeEditableId_ = CustomizeChromeApiProxy.getInstance()
@@ -129,10 +129,6 @@ export class AppearanceElement extends A
this.apiProxy_.callbackRouter.setTheme.addListener((theme: Theme) => {
this.theme_ = theme;
}),
- this.apiProxy_.callbackRouter.attachedTabStateUpdated.addListener(
- (newTabPageType: NewTabPageType) => {
- this.newTabPageType_ = newTabPageType;
- }),
this.apiProxy_.callbackRouter.setThemeEditable.addListener(
(isThemeEditable: boolean) => {
this.showEditTheme_ = isThemeEditable;
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
+++ b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
@@ -1245,6 +1245,7 @@ void VideoOverlayWindowViews::SetUpViews
@@ -1251,6 +1251,7 @@ void VideoOverlayWindowViews::SetUpViews
base::Unretained(this)));
live_caption_button->SetSize(kActionButtonSize);
live_caption_button->SetIsLiveCaptionDialogOpen(false);
@@ -8,7 +8,7 @@
auto live_caption_dialog = std::make_unique<OverlayWindowLiveCaptionDialog>(
Profile::FromBrowserContext(
@@ -2360,8 +2361,8 @@ void VideoOverlayWindowViews::OnLiveCapt
@@ -2380,8 +2381,8 @@ void VideoOverlayWindowViews::OnLiveCapt
SetLiveCaptionDialogVisibility(!live_caption_dialog_->GetVisible());
}
+13 -17
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/layout_constants.cc
+++ b/chrome/browser/ui/layout_constants.cc
@@ -22,6 +22,8 @@
@@ -21,6 +21,8 @@
int GetLayoutConstant(LayoutConstant constant) {
const bool touch_ui = ui::TouchUiController::Get()->touch_ui();
switch (constant) {
@@ -9,7 +9,7 @@
case LayoutConstant::kAppMenuProfileRowAvatarIconSize:
return 24;
case LayoutConstant::kAppMenuMaximumCharacterLength:
@@ -29,7 +31,8 @@ int GetLayoutConstant(LayoutConstant con
@@ -28,7 +30,8 @@ int GetLayoutConstant(LayoutConstant con
case LayoutConstant::kBookmarkBarHeight: {
// The fixed margin ensures the bookmark buttons appear centered relative
// to the white space above and below.
@@ -19,7 +19,7 @@
return GetLayoutConstant(LayoutConstant::kBookmarkBarButtonHeight) +
bookmark_bar_attached_vertical_margin;
}
@@ -52,7 +55,7 @@ int GetLayoutConstant(LayoutConstant con
@@ -51,7 +54,7 @@ int GetLayoutConstant(LayoutConstant con
case LayoutConstant::kLocationBarChildInteriorPadding:
return 3;
case LayoutConstant::kLocationBarChildCornerRadius:
@@ -28,18 +28,12 @@
case LayoutConstant::kLocationBarChipIconSize:
return 16;
case LayoutConstant::kLocationBarChipPadding:
@@ -60,7 +63,7 @@ int GetLayoutConstant(LayoutConstant con
@@ -59,21 +62,21 @@ int GetLayoutConstant(LayoutConstant con
case LayoutConstant::kLocationBarElementPadding:
return touch_ui ? 3 : 2;
case LayoutConstant::kLocationBarPageInfoIconVerticalPadding:
- return touch_ui ? 3 : 5;
+ return touch_ui ? 3 : 2;
case LayoutConstant::kLocationBarLeadingDecorationEdgePadding:
// TODO(manukh): See comment in `LocationBarView::Layout()`. We have too
// many feature permutations that would affect this and other layout
@@ -69,19 +72,19 @@ int GetLayoutConstant(LayoutConstant con
// here once we decide on a permutation.
NOTREACHED();
case LayoutConstant::kLocationBarTrailingDecorationEdgePadding:
- return touch_ui ? 3 : 12;
+ return touch_ui ? 3 : 2;
@@ -61,7 +55,7 @@
case LayoutConstant::kStarRatingIconSize:
return 14;
case LayoutConstant::kTabAfterTitlePadding:
@@ -93,36 +96,36 @@ int GetLayoutConstant(LayoutConstant con
@@ -85,22 +88,22 @@ int GetLayoutConstant(LayoutConstant con
case LayoutConstant::kTabCloseButtonSize:
return touch_ui ? 24 : 16;
case LayoutConstant::kTabHeight:
@@ -86,8 +80,10 @@
case LayoutConstant::kToolbarButtonHeight:
- return touch_ui ? 48 : 34;
+ return touch_ui ? 48 : 28;
case LayoutConstant::kToolbarDividerCornerRadius:
return 1;
case LayoutConstant::kToolbarButtonIconSize:
return touch_ui ? kDefaultTouchableIconSize
: kDefaultIconSizeChromeRefresh;
@@ -109,15 +112,15 @@ int GetLayoutConstant(LayoutConstant con
case LayoutConstant::kToolbarDividerHeight:
return touch_ui ? 20 : 16;
case LayoutConstant::kToolbarDividerSpacing:
@@ -102,13 +98,13 @@
case LayoutConstant::kToolbarIconDefaultMargin:
- return touch_ui ? 0 : 2;
+ return touch_ui ? 0 : GetLayoutConstant(LayoutConstant::kHeliumBasePadding);
case LayoutConstant::kToolbarStandardSpacing:
case LayoutConstant::kLocationBarMargin:
- return touch_ui ? 12 : 9;
+ return touch_ui ? 12 : GetLayoutConstant(LayoutConstant::kHeliumBasePadding) * 2;
case LayoutConstant::kToolbarHeightSidePanelInset:
return 8;
case LayoutConstant::kPageInfoIconSize:
@@ -177,13 +180,13 @@ gfx::Insets GetLayoutInsets(LayoutInset
@@ -172,13 +175,13 @@ gfx::Insets GetLayoutInsets(LayoutInset
return gfx::Insets::VH(8, 20);
case LOCATION_BAR_ICON_INTERIOR_PADDING:
@@ -124,7 +120,7 @@
case TOOLBAR_ACTION_VIEW: {
// TODO(afakhry): Unify all toolbar button sizes on all platforms.
@@ -192,7 +195,7 @@ gfx::Insets GetLayoutInsets(LayoutInset
@@ -187,7 +190,7 @@ gfx::Insets GetLayoutInsets(LayoutInset
}
case TOOLBAR_BUTTON:
@@ -133,7 +129,7 @@
case BROWSER_APP_MENU_CHIP_PADDING:
if (touch_ui) {
@@ -208,11 +211,13 @@ gfx::Insets GetLayoutInsets(LayoutInset
@@ -203,11 +206,13 @@ gfx::Insets GetLayoutInsets(LayoutInset
if (touch_ui) {
return GetLayoutInsets(TOOLBAR_BUTTON);
} else {
@@ -1,6 +1,6 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1329,6 +1329,11 @@ inline constexpr char kHeliumVerticalCol
@@ -1250,6 +1250,11 @@ inline constexpr char kHeliumVerticalCol
inline constexpr char kHeliumVerticalUncollapsedWidth[] =
"helium.browser.vertical_uncollapsed_width";
@@ -14,7 +14,7 @@
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -117,6 +117,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -120,6 +120,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kTabCyclingMRU, false);
@@ -25,7 +25,7 @@
registry->RegisterBooleanPref(prefs::kShowHomeButton, false,
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
@@ -297,6 +297,10 @@ class ToolbarView : public views::Access
@@ -335,6 +335,10 @@ class ToolbarView : public views::Access
void OnShowMediaButtonChanged();
@@ -36,7 +36,7 @@
void OnTouchUiChanged();
void NewTabButtonPressed(const ui::Event& event);
@@ -370,6 +374,8 @@ class ToolbarView : public views::Access
@@ -443,6 +447,8 @@ class ToolbarView : public views::Access
BooleanPrefMember show_media_button_;
@@ -47,9 +47,9 @@
// The display mode used when laying out the toolbar.
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -184,6 +184,28 @@ auto& GetViewCommandMap() {
constexpr int kBrowserAppMenuRefreshExpandedMargin = 5;
constexpr int kBrowserAppMenuRefreshCollapsedMargin = 2;
@@ -216,6 +216,28 @@ constexpr int kLargeSpaceBetweenButtons
constexpr int kInsideBorderAroundGlicButtons = 2;
constexpr int kOutsideBorderAroundGlicButtons = 11;
+constexpr int kCenteredLocationBarMaxWidth = 700;
+
@@ -76,7 +76,7 @@
bool IsMigratedClickToCallBubble(
IntentPickerBubbleView::BubbleType bubble_type) {
return bubble_type == IntentPickerBubbleView::BubbleType::kClickToCall &&
@@ -569,6 +591,11 @@ void ToolbarView::Init() {
@@ -657,6 +679,11 @@ void ToolbarView::Init() {
OnShowMediaButtonChanged();
}
@@ -88,7 +88,7 @@
InitLayout();
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
@@ -1076,6 +1103,7 @@ void ToolbarView::Layout(PassKey) {
@@ -1446,6 +1473,7 @@ void ToolbarView::Layout(PassKey) {
// Call super implementation to ensure layout manager and child layouts
// happen.
LayoutSuperclass<AccessiblePaneView>(this);
@@ -96,7 +96,7 @@
}
void ToolbarView::OnThemeChanged() {
@@ -1488,6 +1516,48 @@ void ToolbarView::OnShowMediaButtonChang
@@ -1878,6 +1906,48 @@ void ToolbarView::OnShowMediaButtonChang
InvalidateLayout();
}
@@ -159,7 +159,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -512,6 +512,7 @@ void AddAppearanceStrings(content::WebUI
@@ -510,6 +510,7 @@ void AddAppearanceStrings(content::WebUI
{"browserLayoutCompact", IDS_SETTINGS_BROWSER_LAYOUT_COMPACT},
{"browserLayoutVertical", IDS_SETTINGS_BROWSER_LAYOUT_VERTICAL},
{"tabStripRightAlign", IDS_SETTINGS_TAB_STRIP_RIGHT_ALIGN},
@@ -169,7 +169,7 @@
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -202,6 +202,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -207,6 +207,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
(*s_allowlist)[::prefs::kHeliumLayout] = settings_api::PrefType::kNumber;
(*s_allowlist)[::prefs::kHeliumVerticalRightAligned] =
settings_api::PrefType::kBoolean;
@@ -180,7 +180,7 @@
(*s_allowlist)[::embedder_support::kAlternateErrorPagesEnabled] =
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.ts
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.ts
@@ -479,6 +479,10 @@ export class SettingsAppearancePageEleme
@@ -480,6 +480,10 @@ export class SettingsAppearancePageEleme
return this.showVerticalTabsEnabled_ && layout === BrowserLayout.VERTICAL;
}
@@ -193,7 +193,7 @@
return;
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
@@ -114,6 +114,12 @@
@@ -110,6 +110,12 @@
pref="{{prefs.helium.browser.vertical_right_aligned}}"
label="$i18n{tabStripRightAlign}">
</settings-toggle-button>
+33 -33
View File
@@ -38,7 +38,7 @@
#if BUILDFLAG(IS_WIN)
--- a/chrome/browser/ui/ui_features.h
+++ b/chrome/browser/ui/ui_features.h
@@ -20,6 +20,9 @@ namespace features {
@@ -19,6 +19,9 @@ namespace features {
// All features in alphabetical order. The features should be documented
// alongside the definition of their values in the .cc file.
@@ -50,7 +50,7 @@
BASE_DECLARE_FEATURE(kBrowserWidgetCacheThemeService);
--- a/chrome/browser/ui/views/frame/browser_view.h
+++ b/chrome/browser/ui/views/frame/browser_view.h
@@ -80,6 +80,7 @@ class ContentsLayoutManager;
@@ -79,6 +79,7 @@ class ContentsLayoutManager;
struct DropData;
class ExclusiveAccessBubbleViews;
class ExclusiveAccessBubbleViewsContext;
@@ -58,7 +58,7 @@
class InfoBarContainerView;
class LocationBarView;
class MultiContentsView;
@@ -355,6 +356,9 @@ class BrowserView : public BrowserWindow
@@ -356,6 +357,9 @@ class BrowserView : public BrowserWindow
// Returns whether the webapp frame toolbar should be drawn.
bool ShouldDrawWebAppFrameToolbar() const;
@@ -68,7 +68,7 @@
// Returns whether or not strokes should be drawn around and under the tabs.
bool ShouldDrawTabStrokes() const;
@@ -946,6 +950,8 @@ class BrowserView : public BrowserWindow
@@ -945,6 +949,8 @@ class BrowserView : public BrowserWindow
void OnVerticalTabStripModeChanged(
tabs::VerticalTabStripStateController* controller);
@@ -77,7 +77,7 @@
void OnProjectsPanelStateChanged(ProjectsPanelStateController* controller);
// Make sure the WebUI tab strip exists if it should.
@@ -1450,6 +1456,8 @@ class BrowserView : public BrowserWindow
@@ -1446,6 +1452,8 @@ class BrowserView : public BrowserWindow
PrefChangeRegistrar registrar_;
@@ -85,10 +85,10 @@
+
base::CallbackListSubscription vertical_tab_subscription_;
base::CallbackListSubscription projects_panel_subscription_;
std::unique_ptr<tabs::VerticalTabStripStateController::ScopedEnableStateLock>
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1482,7 +1482,8 @@ bool BrowserView::ShouldDrawTabStrip() c
@@ -1487,7 +1487,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.
@@ -98,7 +98,7 @@
}
bool BrowserView::ShouldDrawVerticalTabStrip() const {
@@ -1496,6 +1497,11 @@ bool BrowserView::ShouldDrawWebAppFrameT
@@ -1501,6 +1502,11 @@ bool BrowserView::ShouldDrawWebAppFrameT
GetFrameView()->ShouldShowWebAppFrameToolbar();
}
@@ -110,7 +110,7 @@
bool BrowserView::IsVerticalTabStripCollapsed() const {
if (auto* const controller =
tabs::VerticalTabStripStateController::From(browser_)) {
@@ -1615,6 +1621,31 @@ void BrowserView::OnVerticalTabStripMode
@@ -1622,6 +1628,31 @@ void BrowserView::OnVerticalTabStripMode
InvalidateLayout();
}
@@ -142,7 +142,7 @@
void BrowserView::OnProjectsPanelStateChanged(
ProjectsPanelStateController* controller) {
projects_panel_container_->OnProjectsPanelStateChanged(controller);
@@ -4059,9 +4090,10 @@ void BrowserView::ReparentTabStripAndWeb
@@ -4080,9 +4111,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.
@@ -156,7 +156,7 @@
// Reparent PWA views that were moved for immersive and ChromeOS tablet
// mode.
@@ -5152,6 +5184,16 @@ void BrowserView::AddedToWidget() {
@@ -5190,6 +5222,16 @@ void BrowserView::AddedToWidget() {
toolbar_->Init();
@@ -175,23 +175,23 @@
// TODO(pbos): Investigate whether the side panels should be creatable when
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -65,6 +65,7 @@
@@ -71,6 +71,7 @@
#include "chrome/browser/ui/views/extensions/extensions_toolbar_desktop.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/custom_corners_background.h"
+#include "chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.h"
#include "chrome/browser/ui/views/frame/top_container_view.h"
#include "chrome/browser/ui/views/glic/glic_button_interface.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"
#include "chrome/browser/ui/views/location_bar/intent_chip_button.h"
@@ -156,6 +157,7 @@ DEFINE_UI_CLASS_PROPERTY_KEY(bool, kActi
namespace {
@@ -185,6 +186,7 @@ struct CaptionHitTestData {
int after_dist = 0;
};
+constexpr int kPreferredCompactWidth = 350;
constexpr int kToolbarFlexOrderOffset = 1000;
constexpr int kLocationBarFlexOrder = kToolbarFlexOrderOffset + 1;
constexpr int kToolbarActionsFlexOrder = kToolbarFlexOrderOffset + 2;
@@ -887,6 +889,22 @@ bool ToolbarView::IsRectInWindowCaption(
@@ -1249,6 +1251,22 @@ bool ToolbarView::IsRectInWindowCaption(
return gfx::ToEnclosingRect(rect_in_target_coords_f);
};
@@ -214,7 +214,7 @@
// Check each child 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.
@@ -1264,6 +1282,30 @@ void ToolbarView::LayoutCommon() {
@@ -1639,6 +1657,30 @@ void ToolbarView::LayoutCommon() {
// Cast button visibility is controlled externally.
}
@@ -245,10 +245,10 @@
void ToolbarView::UpdateToolbarLayout() {
if (!location_bar_) {
return;
@@ -1274,7 +1316,10 @@ void ToolbarView::UpdateToolbarLayout()
@@ -1649,7 +1691,10 @@ void ToolbarView::UpdateToolbarLayout()
views::MaximumFlexSizeRule::kPreferred);
const int location_bar_margin =
GetLayoutConstant(LayoutConstant::kToolbarStandardSpacing);
GetLayoutConstant(LayoutConstant::kLocationBarMargin);
- const auto min_location_bar_flex = views::MinimumFlexSizeRule::kPreferred;
+ const auto min_location_bar_flex =
+ features::HeliumUseCompactLocationWidth()
@@ -257,7 +257,7 @@
const views::FlexSpecification location_bar_flex_rule =
views::FlexSpecification(min_location_bar_flex,
views::MaximumFlexSizeRule::kUnbounded)
@@ -1571,7 +1616,7 @@ void ToolbarView::OnLocationBarCenteredC
@@ -1964,7 +2009,7 @@ void ToolbarView::OnLocationBarCenteredC
}
void ToolbarView::MaybeCenterLocationBar() {
@@ -268,15 +268,15 @@
}
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
@@ -61,6 +61,7 @@ class AvatarToolbarButtonBrowserTest;
class ToolbarController;
@@ -64,6 +64,7 @@ class ToolbarController;
class ToolbarDivider;
class OverflowButton;
class PerformanceInterventionButton;
+class HorizontalTabStripRegionView;
namespace views {
class FlexLayout;
@@ -155,6 +156,9 @@ class ToolbarView : public views::Access
@@ -169,6 +170,9 @@ class ToolbarView : public views::Access
// Updates the toolbar for the current browser layout.
void UpdateToolbarLayout();
@@ -286,14 +286,14 @@
// Accessors.
Browser* browser() const { return browser_; }
views::Button* GetChromeLabsButton() const;
@@ -351,6 +355,7 @@ class ToolbarView : public views::Access
@@ -411,6 +415,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;
+ raw_ptr<HorizontalTabStripRegionView> tab_strip_region_view_ = nullptr;
raw_ptr<glic::ToolbarGlicButton> glic_button_ = nullptr;
// The button currently holding the lock to be shown/hidden.
raw_ptr<glic::GlicButtonInterface> locked_expansion_button_ = nullptr;
--- a/chrome/browser/ui/views/toolbar/toolbar_controller.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_controller.cc
@@ -22,6 +22,7 @@
@@ -301,9 +301,9 @@
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
+#include "chrome/browser/ui/helium/helium_layout_state_controller.h"
#include "chrome/browser/ui/side_panel/side_panel_action_callback.h"
#include "chrome/browser/ui/side_panel/side_panel_enums.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/views/contextual_tasks/contextual_tasks_button.h"
@@ -297,15 +298,20 @@ ToolbarController::GetDefaultResponsiveE
nullptr,
#endif // BUILDFLAG(ENABLE_WEBUI_TAB_STRIP)
@@ -336,7 +336,7 @@
--- a/chrome/browser/ui/views/frame/layout/browser_view_tabbed_layout_impl.cc
+++ b/chrome/browser/ui/views/frame/layout/browser_view_tabbed_layout_impl.cc
@@ -166,6 +166,9 @@ BrowserViewTabbedLayoutImpl::GetMinimumT
@@ -190,6 +190,9 @@ BrowserViewTabbedLayoutImpl::GetMinimumT
}
return std::make_pair(result, gfx::Size());
}
@@ -346,7 +346,7 @@
case TabStripType::kWebUi:
// WebUI tabstrip is lazily-created.
return std::make_pair(gfx::Size(),
@@ -419,6 +422,9 @@ BrowserViewTabbedLayoutImpl::GetTabStrip
@@ -460,6 +463,9 @@ BrowserViewTabbedLayoutImpl::GetTabStrip
#endif
return TabStripType::kVertical;
}
@@ -368,7 +368,7 @@
virtual bool ShouldDrawWebAppFrameToolbar() const = 0;
--- 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
@@ -50,6 +50,10 @@ bool BrowserViewLayoutDelegateImpl::Shou
@@ -51,6 +51,10 @@ bool BrowserViewLayoutDelegateImpl::Shou
return browser_view_->ShouldDrawVerticalTabStrip();
}
+22 -22
View File
@@ -24,7 +24,7 @@
#define IDC_ADD_NEW_TAB_TO_GROUP 34100
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -10444,6 +10444,51 @@ Keep your key file in a safe place. You
@@ -10387,6 +10387,51 @@ Keep your key file in a safe place. You
Create split view
</message>
@@ -78,7 +78,7 @@
<then>
--- a/chrome/browser/ui/browser_commands.h
+++ b/chrome/browser/ui/browser_commands.h
@@ -15,6 +15,7 @@
@@ -16,6 +16,7 @@
#include "chrome/browser/devtools/devtools_toggle_action.h"
#include "chrome/browser/task_manager/task_manager_metrics_recorder.h"
#include "chrome/browser/ui/chrome_pages.h"
@@ -86,15 +86,15 @@
#include "chrome/browser/ui/tabs/tab_enums.h"
#include "chrome/browser/ui/tabs/tab_strip_model_delegate.h"
#include "chrome/browser/ui/tabs/tab_strip_user_gesture_details.h"
@@ -262,6 +263,8 @@ void ShowTabSearch(BrowserWindowInterfac
@@ -263,6 +264,8 @@ void ShowTabSearch(BrowserWindowInterfac
void CloseTabSearch(Browser* browser);
void ToggleContextualTasksSidePanel(BrowserWindowInterface* browser);
void ToggleVerticalTabs(Browser* browser);
+void SetBrowserLayout(Browser* browser, HeliumLayoutType layout);
+void ToggleVerticalTabStripRightAligned(Browser* browser);
void ShowTabDeclutter(Browser* browser);
bool CanCloseFind(Browser* browser);
void CloseFind(Browser* browser);
void Zoom(Browser* browser, content::PageZoom zoom);
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -79,6 +79,7 @@
@@ -105,8 +105,8 @@
#include "chrome/browser/ui/intent_picker_tab_helper.h"
#include "chrome/browser/ui/lens/lens_search_controller.h"
#include "chrome/browser/ui/location_bar/location_bar.h"
@@ -2207,6 +2208,20 @@ void ToggleVerticalTabs(Browser* browser
: "SwitchToVerticalTabStrip"));
@@ -2220,6 +2221,20 @@ void ToggleVerticalTabs(Browser* browser
controller->SetVerticalTabsEnabled(!controller->ShouldDisplayVerticalTabs());
}
+void SetBrowserLayout(Browser* browser, HeliumLayoutType layout) {
@@ -123,12 +123,12 @@
+ }
+}
+
void ShowTabDeclutter(Browser* browser) {
browser->window()->CreateTabSearchBubble(
tab_search::mojom::TabSearchSection::kOrganize,
bool CanCloseFind(Browser* browser) {
WebContents* current_tab = browser->tab_strip_model()->GetActiveWebContents();
if (!current_tab) {
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -697,6 +697,21 @@ bool BrowserCommandController::ExecuteCo
@@ -733,6 +733,21 @@ bool BrowserCommandController::ExecuteCo
case IDC_NAME_WINDOW:
PromptToNameWindow(browser_);
break;
@@ -150,7 +150,7 @@
#if BUILDFLAG(IS_CHROMEOS)
case IDC_TAKE_SCREENSHOT:
@@ -1514,6 +1529,15 @@ void BrowserCommandController::InitComma
@@ -1545,6 +1560,15 @@ void BrowserCommandController::InitComma
command_updater_.UpdateCommandEnabled(IDC_SHOW_SEARCH_TOOLS, true);
command_updater_.UpdateCommandEnabled(IDC_SHOW_AI_MODE_OMNIBOX_BUTTON, true);
@@ -178,7 +178,7 @@
#endif
--- a/chrome/browser/ui/views/frame/system_menu_model_builder.cc
+++ b/chrome/browser/ui/views/frame/system_menu_model_builder.cc
@@ -13,7 +13,6 @@
@@ -14,7 +14,6 @@
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
#include "chrome/browser/ui/tabs/features.h"
@@ -186,8 +186,8 @@
#include "chrome/browser/ui/toolbar/app_menu_model.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
@@ -55,9 +54,6 @@
#include "chrome/browser/glic/public/glic_enabling.h"
@@ -51,9 +50,6 @@
#include "ui/ozone/public/ozone_platform.h"
#endif
-DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(SystemMenuModelBuilder,
@@ -196,7 +196,7 @@
SystemMenuModelBuilder::SystemMenuModelBuilder(
ui::AcceleratorProvider* provider,
Browser* browser)
@@ -107,6 +103,26 @@ void SystemMenuModelBuilder::BuildSystem
@@ -103,6 +99,26 @@ void SystemMenuModelBuilder::BuildSystem
if (!browser()->profile()->IsOffTheRecord()) {
model->AddSeparator(ui::NORMAL_SEPARATOR);
@@ -223,9 +223,9 @@
model->AddItemWithStringId(IDC_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL,
IDS_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL);
}
@@ -123,41 +139,6 @@ void SystemMenuModelBuilder::BuildSystem
@@ -118,41 +134,6 @@ void SystemMenuModelBuilder::BuildSystem
}
#endif // BUILDFLAG(IS_WIN)
#endif // BUILDFLAG(ENABLE_GLIC)
- if (auto* controller =
- tabs::VerticalTabStripStateController::From(browser())) {
@@ -267,15 +267,15 @@
model->AddItemWithStringId(IDC_TASK_MANAGER_CONTEXT_MENU, IDS_TASK_MANAGER);
--- a/chrome/browser/ui/views/frame/system_menu_model_delegate.cc
+++ b/chrome/browser/ui/views/frame/system_menu_model_delegate.cc
@@ -13,6 +13,7 @@
@@ -15,6 +15,7 @@
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
+#include "chrome/browser/ui/helium/helium_layout_state_controller.h"
#include "chrome/browser/ui/tabs/vertical_tab_strip_state_controller.h"
#include "chrome/browser/ui/views/tabs/vertical/vertical_tab_strip_metrics.h"
#include "chrome/grit/generated_resources.h"
#include "components/prefs/pref_service.h"
@@ -47,6 +48,34 @@ bool SystemMenuModelDelegate::IsCommandI
@@ -45,6 +46,34 @@ bool SystemMenuModelDelegate::IsCommandI
return !prefs->GetBoolean(prefs::kUseCustomChromeFrame);
}
#endif
@@ -310,10 +310,10 @@
return false;
}
@@ -85,6 +114,13 @@ bool SystemMenuModelDelegate::IsCommandI
@@ -79,6 +108,13 @@ bool SystemMenuModelDelegate::IsCommandI
if (command_id == IDC_GLIC_TOGGLE_PIN) {
return glic::GlicEnabling::IsEnabledForProfile(browser_->profile());
}
#endif
+
+ if (command_id == IDC_BROWSER_LAYOUT_VERTICAL_RIGHT) {
+ auto* layout_controller = HeliumLayoutStateController::From(browser_);
+205 -92
View File
@@ -1,17 +1,17 @@
--- a/chrome/browser/ui/tabs/features.cc
+++ b/chrome/browser/ui/tabs/features.cc
@@ -11,7 +11,7 @@ namespace tabs {
BASE_FEATURE(kTabGroupHome, base::FEATURE_DISABLED_BY_DEFAULT);
@@ -14,7 +14,7 @@ BASE_FEATURE(kTabGroupHome, base::FEATUR
BASE_FEATURE(kSessionRestoreShowThrobberOnVisible,
base::FEATURE_DISABLED_BY_DEFAULT);
-BASE_FEATURE(kVerticalTabs, base::FEATURE_DISABLED_BY_DEFAULT);
+BASE_FEATURE(kVerticalTabs, base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kVerticalTabsPreviewBadge, base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kVerticalTabsLaunch, base::FEATURE_DISABLED_BY_DEFAULT);
--- a/chrome/browser/sync/prefs/chrome_syncable_prefs_database.cc
+++ b/chrome/browser/sync/prefs/chrome_syncable_prefs_database.cc
@@ -394,7 +394,6 @@ enum {
@@ -391,7 +391,6 @@ enum {
kPinSplitTabButton = 100327,
kGlicRolloutEligibility = 100328,
kShelfNotebookLmAppPinRolls = 100329,
@@ -27,9 +27,9 @@
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/ui/helium/helium_layout_state_controller.h"
#include "chrome/browser/ui/tabs/features.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_service.h"
@@ -27,7 +28,8 @@ VerticalTabsState TabMetricsProvider::Ge
#include "chrome/browser/user_education/user_education_service.h"
#include "chrome/browser/user_education/user_education_service_factory.h"
@@ -37,7 +38,8 @@ VerticalTabsState TabMetricsProvider::Ge
size_t vertical_tab_profiles = 0;
for (Profile* profile : profiles) {
if (profile->GetPrefs() &&
@@ -39,24 +39,39 @@
vertical_tab_profiles++;
}
}
@@ -83,9 +85,4 @@ void TabMetricsProvider::OnProfileAdded(
base::Unretained(this), profile)));
}
-void TabMetricsProvider::OnUserEducationSessionStart(Profile* profile) {
- base::UmaHistogramBoolean(
- "Tabs.VerticalTabs.EnabledAtSessionStart",
- profile->GetPrefs() &&
- profile->GetPrefs()->GetBoolean(prefs::kVerticalTabsEnabled));
-}
+void TabMetricsProvider::OnUserEducationSessionStart(Profile* profile) {}
--- a/chrome/browser/ui/tabs/tab_strip_prefs.cc
+++ b/chrome/browser/ui/tabs/tab_strip_prefs.cc
@@ -5,8 +5,10 @@
@@ -5,10 +5,12 @@
#include "chrome/browser/ui/tabs/tab_strip_prefs.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/helium/helium_layout_state_controller.h"
#include "chrome/browser/ui/actions/chrome_action_id.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tab_search_feature.h"
#include "chrome/browser/ui/tabs/features.h"
+#include "chrome/browser/ui/tabs/vertical_tab_strip_state.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
@@ -31,12 +33,18 @@ bool GetDefaultTabSearchRightAligned() {
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(prefs::kTabSearchRightAligned,
GetDefaultTabSearchRightAligned());
#include "chrome/browser/ui/tabs/vertical_tab_strip_state_controller.h"
#include "chrome/browser/ui/toolbar/toolbar_pref_names.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
@@ -42,8 +44,13 @@ void RegisterProfilePrefs(user_prefs::Pr
prefs::kTabSearchPinnedToTabstripMigrationComplete, false);
registry->RegisterBooleanPref(prefs::kProjectsPanelPinnedToTabstrip, true);
registry->RegisterBooleanPref(prefs::kEverythingMenuPinnedToTabstrip, true);
- registry->RegisterBooleanPref(prefs::kVerticalTabsEnabled, false);
- registry->RegisterBooleanPref(prefs::kVerticalTabsEnabledFirstTime, false);
+
+ registry->RegisterIntegerPref(prefs::kHeliumLayout,
+ std::to_underlying(HeliumLayoutType::kClassic));
+ registry->RegisterBooleanPref(prefs::kHeliumVerticalRightAligned, false);
@@ -65,20 +80,13 @@
+ kVerticalTabStripDefaultUncollapsedWidth);
}
TabSearchPosition GetTabSearchPosition(const Profile* profile) {
if (tabs::IsVerticalTabsFeatureEnabled() &&
- profile->GetPrefs()->GetBoolean(prefs::kVerticalTabsEnabled)) {
+ profile->GetPrefs()->GetInteger(prefs::kHeliumLayout) ==
+ std::to_underlying(HeliumLayoutType::kVertical)) {
return TabSearchPosition::kVerticalTabstrip;
}
void MigrateTabSearchPref(PrefService* profile_prefs) {
--- a/chrome/browser/ui/tabs/vertical_tab_strip_state_controller.h
+++ b/chrome/browser/ui/tabs/vertical_tab_strip_state_controller.h
@@ -7,10 +7,6 @@
@@ -8,10 +8,6 @@
#include "base/callback_list.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "base/scoped_observation.h"
-#include "chrome/browser/sessions/session_service_base_observer.h"
-#include "chrome/browser/ui/browser_window/public/browser_collection_observer.h"
@@ -86,7 +94,7 @@
#include "chrome/browser/ui/tabs/vertical_tab_strip_state.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/sessions/core/session_id.h"
@@ -26,8 +22,7 @@ class ActionItem;
@@ -27,8 +23,7 @@ class ActionItem;
namespace tabs {
@@ -96,7 +104,7 @@
public:
DECLARE_USER_DATA(VerticalTabStripStateController);
@@ -43,7 +38,7 @@ class VerticalTabStripStateController :
@@ -56,7 +51,7 @@ class VerticalTabStripStateController :
delete;
VerticalTabStripStateController& operator=(
const VerticalTabStripStateController&) = delete;
@@ -105,16 +113,16 @@
static const VerticalTabStripStateController* From(
const BrowserWindowInterface* browser_window);
@@ -52,6 +47,8 @@ class VerticalTabStripStateController :
@@ -65,6 +60,8 @@ class VerticalTabStripStateController :
bool ShouldDisplayVerticalTabs() const;
void SetVerticalTabsEnabled(bool enabled);
+ bool IsTabStripRightAligned() const;
+ void SetTabStripRightAligned(bool right_aligned);
bool IsCollapsed() const;
void SetCollapsed(bool collapsed);
@@ -71,35 +68,21 @@ class VerticalTabStripStateController :
std::unique_ptr<ScopedEnableStateLock> GetEnableStateLock();
@@ -86,10 +83,6 @@ class VerticalTabStripStateController :
base::CallbackListSubscription RegisterOnModeChanged(
StateChangedCallback callback);
@@ -125,7 +133,9 @@
private:
void NotifyCollapseChanged();
void NotifyModeWillChange();
void NotifyModeChanged();
@@ -97,28 +90,19 @@ class VerticalTabStripStateController :
void OnModeChanged();
- // Updates the SessionService with the current state (collapsed status and
- // uncollapsed width) for the associated session ID.
@@ -143,16 +153,18 @@
- // BrowserCollectionObserver:
- void OnBrowserCreated(BrowserWindowInterface* browser) override;
-
void OnLockCreated();
void OnLockDestroyed();
const raw_ptr<PrefService> pref_service_;
PrefChangeRegistrar pref_change_registrar_;
raw_ptr<actions::ActionItem> root_action_item_;
- raw_ptr<SessionService> session_service_;
- const SessionID session_id_;
- raw_ptr<BrowserWindowInterface> browser_window_;
raw_ptr<BrowserWindowInterface> browser_window_;
VerticalTabStripState state_;
@@ -109,8 +92,6 @@ class VerticalTabStripStateController :
@@ -129,13 +113,12 @@ class VerticalTabStripStateController :
on_mode_will_change_callback_list_;
base::RepeatingCallbackList<void(VerticalTabStripStateController*)>
on_mode_changed_callback_list_;
@@ -160,24 +172,33 @@
- browser_collection_observation_{this};
ui::ScopedUnownedUserData<VerticalTabStripStateController>
scoped_unowned_user_data_;
bool is_vertical_tabs_enabled_ = false;
int enable_state_lock_count_ = 0;
+ bool mode_changed_while_locked_ = false;
base::WeakPtrFactory<VerticalTabStripStateController> weak_ptr_factory_{this};
};
--- a/chrome/browser/ui/tabs/vertical_tab_strip_state_controller.cc
+++ b/chrome/browser/ui/tabs/vertical_tab_strip_state_controller.cc
@@ -7,21 +7,16 @@
#include <optional>
@@ -9,24 +9,18 @@
#include "base/i18n/rtl.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
-#include "base/strings/string_number_conversions.h"
-#include "base/strings/to_string.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/sessions/session_service.h"
-#include "chrome/browser/sessions/session_service_factory.h"
#include "chrome/browser/ui/actions/chrome_action_id.h"
#include "chrome/browser/ui/browser_actions.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/browser_window/public/browser_window_interface.h"
-#include "chrome/browser/ui/browser_window/public/global_browser_collection.h"
+#include "chrome/browser/ui/helium/helium_layout_state_controller.h"
#include "chrome/browser/ui/tabs/features.h"
#include "chrome/browser/ui/views/interaction/browser_elements_views.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
#include "components/prefs/pref_notifier_impl.h"
@@ -186,7 +207,7 @@
#include "ui/actions/actions.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/vector_icons.h"
@@ -34,58 +29,29 @@ VerticalTabStripStateController::Vertica
@@ -39,61 +33,33 @@ VerticalTabStripStateController::Vertica
BrowserWindowInterface* browser_window,
PrefService* pref_service,
actions::ActionItem* root_action_item,
@@ -202,16 +223,19 @@
root_action_item_(root_action_item),
- session_service_(session_service),
- session_id_(session_id),
- browser_window_(browser_window),
browser_window_(browser_window),
scoped_unowned_user_data_(browser_window->GetUnownedUserDataHost(),
*this) {
- is_vertical_tabs_enabled_ =
- pref_service_->GetBoolean(prefs::kVerticalTabsEnabled);
-
pref_change_registrar_.Init(pref_service_);
- pref_change_registrar_.Add(
- prefs::kVerticalTabsEnabled,
+ pref_change_registrar_.AddMultiple(
+ {prefs::kHeliumLayout, prefs::kHeliumVerticalRightAligned},
base::BindRepeating(&VerticalTabStripStateController::NotifyModeChanged,
base::BindRepeating(&VerticalTabStripStateController::OnModeChanged,
base::Unretained(this)));
- if (restored_state_collapsed.has_value()) {
@@ -223,6 +247,9 @@
+ state_.collapsed = pref_service_->GetBoolean(prefs::kHeliumVerticalCollapsed);
+ state_.uncollapsed_width =
+ pref_service_->GetInteger(prefs::kHeliumVerticalUncollapsedWidth);
+ is_vertical_tabs_enabled_ =
+ pref_service_->GetInteger(prefs::kHeliumLayout) ==
+ std::to_underlying(HeliumLayoutType::kVertical);
UpdateCollapseActionItem();
-
@@ -253,16 +280,9 @@
-}
+VerticalTabStripStateController::~VerticalTabStripStateController() = default;
// static
const VerticalTabStripStateController* VerticalTabStripStateController::From(
@@ -102,12 +68,24 @@ VerticalTabStripStateController* Vertica
}
bool VerticalTabStripStateController::ShouldDisplayVerticalTabs() const {
- return pref_service_->GetBoolean(prefs::kVerticalTabsEnabled);
+ return pref_service_->GetInteger(prefs::kHeliumLayout) ==
+ std::to_underlying(HeliumLayoutType::kVertical);
}
VerticalTabStripStateController::ScopedEnableStateLock::ScopedEnableStateLock(
base::WeakPtr<VerticalTabStripStateController> controller)
@@ -136,7 +102,18 @@ bool VerticalTabStripStateController::Sh
void VerticalTabStripStateController::SetVerticalTabsEnabled(bool enabled) {
NotifyModeWillChange();
@@ -282,7 +302,7 @@
}
bool VerticalTabStripStateController::IsCollapsed() const {
@@ -160,7 +138,7 @@ VerticalTabStripStateController::Registe
@@ -195,7 +172,7 @@ VerticalTabStripStateController::Registe
}
void VerticalTabStripStateController::NotifyCollapseChanged() {
@@ -291,7 +311,7 @@
UpdateCollapseActionItem();
on_collapse_changed_callback_list_.Notify(this);
}
@@ -170,21 +148,20 @@ void VerticalTabStripStateController::No
@@ -205,23 +182,19 @@ void VerticalTabStripStateController::No
}
void VerticalTabStripStateController::NotifyModeChanged() {
@@ -299,6 +319,45 @@
on_mode_changed_callback_list_.Notify(this);
}
void VerticalTabStripStateController::OnModeChanged() {
- if (pref_service_->GetBoolean(prefs::kVerticalTabsEnabled) &&
- !pref_service_->GetBoolean(prefs::kVerticalTabsEnabledFirstTime)) {
- base::RecordAction(
- base::UserMetricsAction("VerticalTabs_EnabledFirstTime"));
- pref_service_->SetBoolean(prefs::kVerticalTabsEnabledFirstTime, true);
- }
-
if (enable_state_lock_count_ > 0) {
+ mode_changed_while_locked_ = true;
return;
}
is_vertical_tabs_enabled_ =
- pref_service_->GetBoolean(prefs::kVerticalTabsEnabled);
+ pref_service_->GetInteger(prefs::kHeliumLayout) ==
+ std::to_underlying(HeliumLayoutType::kVertical);
NotifyModeChanged();
}
@@ -234,27 +207,25 @@ void VerticalTabStripStateController::On
CHECK_GT(enable_state_lock_count_, 0);
enable_state_lock_count_--;
- if (enable_state_lock_count_ == 0) {
- bool new_state = pref_service_->GetBoolean(prefs::kVerticalTabsEnabled);
- if (new_state != is_vertical_tabs_enabled_) {
- is_vertical_tabs_enabled_ = new_state;
- NotifyModeChanged();
- }
+ if (enable_state_lock_count_ == 0 && mode_changed_while_locked_) {
+ mode_changed_while_locked_ = false;
+ is_vertical_tabs_enabled_ =
+ pref_service_->GetInteger(prefs::kHeliumLayout) ==
+ std::to_underlying(HeliumLayoutType::kVertical);
+ NotifyModeChanged();
}
}
-void VerticalTabStripStateController::UpdateSessionService() {
- if (session_service_ && !browser_collection_observation_.IsObserving()) {
- session_service_->AddWindowExtraData(session_id_, kCollapsedKey,
@@ -321,7 +380,7 @@
? views::kMenuOpenIcon
: views::kMenuCloseIcon;
@@ -204,20 +181,4 @@ void VerticalTabStripStateController::Up
@@ -274,20 +245,4 @@ void VerticalTabStripStateController::Up
}
}
@@ -344,7 +403,7 @@
} // namespace tabs
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1314,6 +1314,21 @@ inline constexpr char kNewTabNextToActiv
@@ -1235,6 +1235,21 @@ inline constexpr char kNewTabNextToActiv
// when cycling through tabs with Ctrl+Tab.
inline constexpr char kTabCyclingMRU[] = "helium.browser.mru_tab_cycling";
@@ -366,21 +425,26 @@
// A boolean pref set to true if a Home button to open the Home pages should be
// visible on the toolbar.
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
@@ -2003,9 +2018,6 @@ inline constexpr char kGoogleSearchSideP
// True when the tab search button is on the right side of the tab strip even in
// RTL.
inline constexpr char kTabSearchRightAligned[] = "tab_search.is_right_aligned";
@@ -1875,14 +1890,6 @@ inline constexpr char kProjectsPanelPinn
// strip.
inline constexpr char kEverythingMenuPinnedToTabstrip[] =
"everything_menu.pinned_to_tabstrip";
-
-// Boolean determining whether vertical tabs are enabled.
-inline constexpr char kVerticalTabsEnabled[] = "vertical_tabs.enabled";
-
-// Records whether the user has enabled vertical tabs for the first time. Only
-// used for metrics reporting purposes.
-inline constexpr char kVerticalTabsEnabledFirstTime[] =
- "vertical_tabs.enabled_first_time";
#endif // !BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(ENABLE_COMPOSE)
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -60,6 +60,8 @@ static_library("ui") {
@@ -59,6 +59,8 @@ static_library("ui") {
"confirm_bubble.h",
"crypto_module_password_dialog.h",
"cryptuiapi_shim.h",
"enterprise_startup_dialog.h",
+ "helium/helium_layout_state_controller.cc",
+ "helium/helium_layout_state_controller.h",
@@ -537,7 +601,7 @@
+}
--- a/chrome/browser/ui/browser_window/public/browser_window_features.h
+++ b/chrome/browser/ui/browser_window/public/browser_window_features.h
@@ -61,6 +61,7 @@ class ExclusiveAccessManager;
@@ -59,6 +59,7 @@ class ExclusiveAccessManager;
class FindBarController;
class FindBarOwner;
class FullscreenControlHost;
@@ -545,9 +609,9 @@
class HistoryClustersSidePanelCoordinator;
class HistorySidePanelCoordinator;
class IncognitoClearBrowsingDataDialogCoordinator;
@@ -577,6 +578,8 @@ class BrowserWindowFeatures {
std::unique_ptr<tabs::TabDeclutterController> tab_declutter_controller_;
@@ -569,6 +570,8 @@ class BrowserWindowFeatures {
std::unique_ptr<extensions::Mv2DisabledDialogController>
mv2_disabled_dialog_controller_;
+ std::unique_ptr<HeliumLayoutStateController> helium_layout_state_controller_;
+
@@ -556,7 +620,7 @@
--- a/chrome/browser/ui/browser_window/internal/browser_window_features.cc
+++ b/chrome/browser/ui/browser_window/internal/browser_window_features.cc
@@ -53,6 +53,7 @@
@@ -62,6 +62,7 @@
#include "chrome/browser/ui/extensions/mv2_disabled_dialog_controller.h"
#include "chrome/browser/ui/find_bar/find_bar.h"
#include "chrome/browser/ui/find_bar/find_bar_controller.h"
@@ -564,9 +628,9 @@
#include "chrome/browser/ui/lens/lens_overlay_entry_point_controller.h"
#include "chrome/browser/ui/omnibox/ai_mode_page_action_controller.h"
#include "chrome/browser/ui/performance_controls/memory_saver_bubble_controller.h"
@@ -299,6 +300,10 @@ void BrowserWindowFeatures::Init(Browser
@@ -306,6 +307,10 @@ void BrowserWindowFeatures::Init(Browser
std::make_unique<tabs::GlicNudgeController>(browser);
}
#endif // BUILDFLAG(ENABLE_GLIC)
+ helium_layout_state_controller_ =
+ GetUserDataFactory().CreateInstance<HeliumLayoutStateController>(
@@ -587,7 +651,7 @@
virtual BrowserLayoutParams GetBrowserLayoutParams(
--- 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
@@ -54,6 +54,12 @@ bool BrowserViewLayoutDelegateImpl::IsVe
@@ -55,6 +55,12 @@ bool BrowserViewLayoutDelegateImpl::IsVe
return browser_view_->IsVerticalTabStripCollapsed();
}
@@ -621,20 +685,19 @@
#include "base/token.h"
#include "base/uuid.h"
#include "base/values.h"
@@ -30,12 +28,10 @@
@@ -31,11 +29,9 @@
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
#include "chrome/browser/ui/browser_window/public/browser_window_interface.h"
-#include "chrome/browser/ui/tabs/features.h"
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_utils.h"
#include "chrome/browser/ui/tabs/saved_tab_groups/tab_group_action_context_desktop.h"
#include "chrome/browser/ui/tabs/tab_group_model.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
-#include "chrome/browser/ui/tabs/vertical_tab_strip_state_controller.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/web_applications/web_app_helpers.h"
#include "components/saved_tab_groups/public/features.h"
@@ -170,18 +166,7 @@ std::map<std::string, std::string> Brows
#include "components/saved_tab_groups/public/saved_tab_group.h"
@@ -163,18 +159,7 @@ std::map<std::string, std::string> Brows
std::map<std::string, std::string>
BrowserLiveTabContext::GetExtraDataForWindow() const {
@@ -654,7 +717,7 @@
}
std::optional<tab_groups::TabGroupId> BrowserLiveTabContext::GetTabGroupForTab(
@@ -388,7 +373,7 @@ sessions::LiveTabContext* BrowserLiveTab
@@ -380,7 +365,7 @@ sessions::LiveTabContext* BrowserLiveTab
ui::mojom::WindowShowState show_state,
const std::string& workspace,
const std::string& user_title,
@@ -663,7 +726,7 @@
std::unique_ptr<Browser::CreateParams> create_params;
if (ShouldCreateAppWindowForAppName(profile, app_name)) {
// Only trusted app popup windows should ever be restored.
@@ -413,26 +398,6 @@ sessions::LiveTabContext* BrowserLiveTab
@@ -405,26 +390,6 @@ sessions::LiveTabContext* BrowserLiveTab
create_params->initial_workspace = workspace;
create_params->user_title = user_title;
@@ -692,7 +755,7 @@
return browser->GetFeatures().live_tab_context();
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -67,12 +67,10 @@
@@ -68,12 +68,10 @@
#include "chrome/browser/ui/startup/startup_browser_creator.h"
#include "chrome/browser/ui/startup/startup_tab.h"
#include "chrome/browser/ui/startup/startup_types.h"
@@ -705,7 +768,7 @@
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/waap/initial_webui_window_metrics_manager.h"
#include "chrome/browser/ui/webui/whats_new/whats_new_util.h"
@@ -1144,7 +1142,7 @@ class SessionRestoreImpl : public Browse
@@ -1145,7 +1143,7 @@ class SessionRestoreImpl : public Browse
ui::mojom::WindowShowState show_state,
const std::string& app_name,
const std::string& user_title,
@@ -714,7 +777,7 @@
int32_t restore_id) {
Browser::CreateParams params(type, profile_, false);
params.initial_bounds = bounds;
@@ -1170,26 +1168,6 @@ class SessionRestoreImpl : public Browse
@@ -1171,26 +1169,6 @@ class SessionRestoreImpl : public Browse
params.initial_visible_on_all_workspaces_state = visible_on_all_workspaces;
params.creation_source = Browser::CreationSource::kSessionRestore;
@@ -751,18 +814,68 @@
#include "chrome/browser/ui/tabs/features.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/common/buildflags.h"
@@ -105,9 +106,11 @@ void UmaHistogramCounts10000WithTabStrip
return;
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -240,8 +240,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kSidePanelHorizontalAlignment] =
settings_api::PrefType::kBoolean;
- (*s_allowlist)[::prefs::kVerticalTabsEnabled] =
- settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kTabSearchRightAligned] =
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kTabSearchPinnedToTabstrip] =
--- a/chrome/browser/ui/tabs/vertical_tab_iph_controller.cc
+++ b/chrome/browser/ui/tabs/vertical_tab_iph_controller.cc
@@ -34,11 +34,6 @@ VerticalTabIphController::VerticalTabIph
BrowserWindowInterface* interface)
: browser_window_interface_(interface),
scoped_data_(interface->GetUnownedUserDataHost(), *this) {
- auto* tab_strip_model = browser_window_interface_->GetTabStripModel();
- auto* profile = Profile::FromBrowserContext(tab_strip_model->profile());
- if (!profile->GetPrefs()->GetBoolean(prefs::kVerticalTabsEnabledFirstTime)) {
- browser_window_interface_->GetTabStripModel()->AddObserver(this);
- }
}
VerticalTabIphController::~VerticalTabIphController() = default;
@@ -54,38 +49,7 @@ void VerticalTabIphController::OnTabStri
}
}
- const char* suffix = tabs::IsVerticalTabsFeatureEnabled() &&
- tab_strip.GetProfile()->GetPrefs()->GetBoolean(
- prefs::kVerticalTabsEnabled)
+ const bool vertical_enabled =
+ tab_strip.GetProfile()->GetPrefs()->GetInteger(prefs::kHeliumLayout) ==
+ std::to_underlying(HeliumLayoutType::kVertical);
+
+ const char* suffix = tabs::IsVerticalTabsFeatureEnabled() && vertical_enabled
? ".VerticalTabStrip"
: ".HorizontalTabStrip";
-void VerticalTabIphController::MaybeShowPromo() {
- auto* tab_strip_model = browser_window_interface_->GetTabStripModel();
- if (tab_strip_model->count() <= kMinTabsForVerticalTabPromo) {
- return;
- }
-
- auto* profile = Profile::FromBrowserContext(tab_strip_model->profile());
- if (profile->GetPrefs()->GetBoolean(prefs::kVerticalTabsEnabledFirstTime)) {
- return;
- }
-
- BrowserView* browser_view =
- BrowserView::GetBrowserViewForBrowser(browser_window_interface_);
- if (!browser_view || !browser_view->tab_strip_view()) {
- return;
- }
-
- int first_unpinned_index = tab_strip_model->IndexOfFirstNonPinnedTab();
- if (first_unpinned_index == tab_strip_model->count()) {
- return;
- }
-
- // If the unpinned tab is shrunk significantly compared to its standard
- // width show the IPH.
- views::View* tab =
- browser_view->tab_strip_view()->GetTabAnchorViewAt(first_unpinned_index);
- if (IsTabShrunk(tab)) {
- BrowserUserEducationInterface::From(browser_window_interface_)
- ->MaybeShowFeaturePromo(
- feature_engagement::kIPHVerticalTabstripTutorialFeature);
- }
-}
+void VerticalTabIphController::MaybeShowPromo() {}
bool VerticalTabIphController::IsTabShrunk(views::View* tab) {
if (!tab) {
+15 -16
View File
@@ -13,10 +13,10 @@
#include "chrome/browser/ui/helium/helium_layout_state_controller.h"
#include "chrome/browser/ui/layout_constants.h"
+#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h"
#include "chrome/browser/ui/views/frame/custom_corners_background.h"
#include "chrome/browser/ui/views/frame/custom_floating_corner.h"
@@ -138,6 +140,9 @@ BrowserViewTabbedLayoutImpl::GetMinimumT
@@ -162,6 +164,9 @@ BrowserViewTabbedLayoutImpl::GetMinimumT
const BrowserLayoutParams& params) const {
switch (GetTabStripType()) {
case TabStripType::kHorizontal: {
@@ -26,7 +26,7 @@
auto result = views().horizontal_tab_strip_region_view->GetMinimumSize();
result.Enlarge(GetExclusionWidth(params), 0);
return std::make_pair(gfx::Size(), result);
@@ -181,6 +186,9 @@ BrowserViewTabbedLayoutImpl::CalculateHo
@@ -205,6 +210,9 @@ BrowserViewTabbedLayoutImpl::CalculateHo
// Start with some preliminary values.
layout.force_top_container_to_top =
tab_strip_type != TabStripType::kHorizontal;
@@ -36,7 +36,7 @@
layout.min_content_width = kContentsContainerMinimumWidth;
// Get information about the vertical tabstrip, if present.
@@ -423,6 +431,25 @@ HeliumLayoutType BrowserViewTabbedLayout
@@ -464,6 +472,25 @@ HeliumLayoutType BrowserViewTabbedLayout
: HeliumLayoutType::kClassic;
}
@@ -62,7 +62,7 @@
bool BrowserViewTabbedLayoutImpl::ShadowOverlayVisible() const {
if (!views().toolbar_height_side_panel) {
return false;
@@ -535,6 +562,9 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -576,6 +603,9 @@ BrowserViewTabbedLayoutImpl::CalculatePr
BrowserLayoutParams params = browser_params;
bool needs_exclusion = true;
const TabStripType tab_strip_type = GetTabStripType();
@@ -72,7 +72,7 @@
HorizontalLayout horizontal_layout = CalculateHorizontalLayout(params);
if (tab_strip_type == TabStripType::kWebUi) {
@@ -560,7 +590,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -601,15 +631,18 @@ BrowserViewTabbedLayoutImpl::CalculatePr
}
// Lay out horizontal tab strip region if present.
@@ -82,10 +82,9 @@
views().browser_view)) {
gfx::Rect tabstrip_bounds;
if (tab_strip_type == TabStripType::kHorizontal) {
@@ -572,8 +603,10 @@ BrowserViewTabbedLayoutImpl::CalculatePr
const int leading_margin = GetHorizontalTabStripLeadingMargin(params);
tabstrip_bounds = GetBoundsWithExclusion(
params, views().horizontal_tab_strip_region_view,
TabStyle::Get()->GetBottomCornerRadius());
params, views().horizontal_tab_strip_region_view, leading_margin);
+ const int default_tabstrip_toolbar_overlap =
+ GetLayoutConstant(LayoutConstant::kHeliumBasePadding);
params.SetTop(tabstrip_bounds.bottom() -
@@ -94,7 +93,7 @@
needs_exclusion = false;
}
layout.AddChild(views().horizontal_tab_strip_region_view, tabstrip_bounds,
@@ -684,6 +717,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -750,6 +783,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
top_container_layout, top_container_params, needs_exclusion);
top_container_layout.bounds =
GetTopContainerBoundsInParent(top_container_local_bounds, params);
@@ -116,7 +115,7 @@
params.SetTop(top_container_layout.bounds.bottom());
// Possibly bump the leading margin of the top container out to cover the
@@ -701,6 +749,22 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -767,6 +815,22 @@ BrowserViewTabbedLayoutImpl::CalculatePr
}
}
@@ -137,9 +136,9 @@
+ }
+
// Lay out the main area background.
ProposedLayout* main_background_layout = nullptr;
if (IsParentedTo(views().main_background_region, views().browser_view)) {
layout.AddChild(views().main_background_region, params.visual_client_area,
@@ -946,6 +1010,8 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1081,6 +1145,8 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
const int original_top = params.visual_client_area.y();
const TabStripType tab_strip_type = GetTabStripType();
@@ -148,7 +147,7 @@
// If the WebUI tabstrip is in the top container (which can happen in
// immersive mode), ensure it is laid out here.
@@ -1007,6 +1073,17 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1135,6 +1201,17 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
layout.AddChild(views().toolbar, toolbar_bounds, toolbar_visible);
}
@@ -166,7 +165,7 @@
// Lay out the bookmarks bar if one is present.
const bool bookmarks_visible = delegate().IsBookmarkBarVisible();
if (IsParentedTo(views().bookmark_bar, views().top_container)) {
@@ -1058,8 +1135,10 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1186,8 +1263,10 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
void BrowserViewTabbedLayoutImpl::ConfigureTopContainerBackground(
const BrowserLayoutParams& params,
CustomCornersBackground* background) {
@@ -200,7 +199,7 @@
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/views/frame/browser_native_widget.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
@@ -640,7 +641,22 @@ void OpaqueBrowserFrameView::OnPaint(gfx
@@ -641,7 +642,22 @@ void OpaqueBrowserFrameView::OnPaint(gfx
frame_background_->set_theme_image_inset(
GetBrowserView()->GetThemeOffsetFromBrowserView());
frame_background_->set_theme_overlay_image(GetFrameOverlayImage());
@@ -6,9 +6,9 @@
#include "chrome/browser/ui/frame/window_frame_util.h"
+#include "chrome/browser/ui/helium/helium_layout_state_controller.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/tab_search_feature.h"
#include "chrome/browser/ui/tabs/features.h"
@@ -79,18 +80,28 @@ class FrameGrabHandle : public views::Vi
#include "chrome/browser/ui/tabs/tab_menu_model.h"
@@ -84,7 +85,8 @@ class FrameGrabHandle : public views::Vi
METADATA_HEADER(FrameGrabHandle, views::View)
public:
@@ -18,6 +18,7 @@
SetProperty(views::kElementIdentifierKey,
kTabStripFrameGrabHandleElementId);
}
@@ -106,16 +108,23 @@ class FrameGrabHandle : public views::Vi
gfx::Size CalculatePreferredSize(
const views::SizeBounds& available_size) const override {
@@ -36,13 +37,16 @@
+
+ return gfx::Size(0, 0);
}
+
+ private:
private:
// Anchor point for help bubbles and other dialogs that lies in an empty
// region of the tabstrip.
std::unique_ptr<user_education::ViewSubregionAnchor> dialog_anchor_;
+ base::WeakPtr<TabStrip> tab_strip_;
};
BEGIN_METADATA(FrameGrabHandle)
@@ -294,7 +305,7 @@ HorizontalTabStripRegionView::Horizontal
@@ -302,7 +311,7 @@ HorizontalTabStripRegionView::Horizontal
}
reserved_grab_handle_space_ =
+10 -10
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.cc
@@ -107,16 +107,32 @@ class FrameGrabHandle : public views::Vi
@@ -130,16 +130,32 @@ class FrameGrabHandle : public views::Vi
BEGIN_METADATA(FrameGrabHandle)
END_METADATA
@@ -40,7 +40,7 @@
}
// Updates the border of `view` if the insets need to be updated.
@@ -286,7 +302,7 @@ HorizontalTabStripRegionView::Horizontal
@@ -292,7 +308,7 @@ HorizontalTabStripRegionView::Horizontal
views::MaximumFlexSizeRule::kPreferred);
tab_strip_->SetProperty(views::kFlexBehaviorKey, tab_strip_flex_spec);
@@ -49,7 +49,7 @@
std::unique_ptr<TabStripControlButton> tab_strip_control_button =
std::make_unique<NewTabButton>(
base::BindRepeating(&TabStrip::NewTabButtonPressed,
@@ -302,6 +318,7 @@ HorizontalTabStripRegionView::Horizontal
@@ -308,6 +324,7 @@ HorizontalTabStripRegionView::Horizontal
new_tab_button_->SetTriggerableEventFlags(
new_tab_button_->GetTriggerableEventFlags() |
ui::EF_MIDDLE_MOUSE_BUTTON);
@@ -57,7 +57,7 @@
}
reserved_grab_handle_space_ =
@@ -420,6 +437,15 @@ void HorizontalTabStripRegionView::Layou
@@ -429,6 +446,15 @@ void HorizontalTabStripRegionView::Layou
return;
}
@@ -72,9 +72,9 @@
+
const bool tab_search_container_before_tab_strip =
tab_search_container_ && render_tab_search_before_tab_strip_;
if (tab_search_container_before_tab_strip) {
@@ -432,7 +458,7 @@ void HorizontalTabStripRegionView::Layou
AdjustViewBoundsRect(tab_search_container_, 0);
if (tab_search_container_before_tab_strip ||
@@ -455,7 +481,7 @@ void HorizontalTabStripRegionView::Layou
AdjustViewBoundsRect(combo_button_, leading_offset);
}
- views::View* button_to_paint_to_layer = new_tab_button_;
@@ -82,7 +82,7 @@
if (button_to_paint_to_layer) {
// The button needs to be layered on top of the tabstrip to achieve
@@ -691,7 +717,7 @@ void HorizontalTabStripRegionView::Updat
@@ -734,7 +760,7 @@ void HorizontalTabStripRegionView::Updat
// The new tab button overlaps the tabstrip. Render it to a layer and adjust
// the tabstrip right margin to reserve space for it.
std::optional<int> tab_strip_right_margin;
@@ -91,7 +91,7 @@
if (button_to_paint_to_layer) {
button_to_paint_to_layer->SetPaintToLayer();
@@ -731,12 +757,10 @@ void HorizontalTabStripRegionView::Updat
@@ -788,12 +814,10 @@ void HorizontalTabStripRegionView::Updat
UpdateButtonBorders();
@@ -152,7 +152,7 @@
class TabStyleViewsImpl : public TabStyleViews {
public:
explicit TabStyleViewsImpl(Tab* tab);
@@ -726,6 +747,10 @@ float TabStyleViewsImpl::GetSeparatorOpa
@@ -735,6 +756,10 @@ float TabStyleViewsImpl::GetSeparatorOpa
// combo button with a non-transparent background in place of the new tab
// button, we should not show the trailing separator.
if (!adjacent_tab) {
@@ -1,6 +1,6 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1334,6 +1334,10 @@ inline constexpr char kHeliumVerticalUnc
@@ -1255,6 +1255,10 @@ inline constexpr char kHeliumVerticalUnc
inline constexpr char kHeliumCenteredLocationBar[] =
"helium.browser.centered_location_bar";
@@ -13,7 +13,7 @@
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -119,6 +119,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -122,6 +122,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kHeliumCenteredLocationBar, false);
@@ -32,7 +32,7 @@
#include "chrome/browser/ui/omnibox/omnibox_next_features.h"
#include "chrome/browser/ui/omnibox/omnibox_tab_helper.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
@@ -167,6 +168,14 @@ ChromeOmniboxClient::~ChromeOmniboxClien
@@ -172,6 +173,14 @@ ChromeOmniboxClient::~ChromeOmniboxClien
}
}
@@ -47,7 +47,7 @@
std::unique_ptr<AutocompleteProviderClient>
ChromeOmniboxClient::CreateAutocompleteProviderClient() {
// base::Unretained(location_bar_) is safe because `location_bar_` outlives
@@ -329,6 +338,15 @@ std::u16string ChromeOmniboxClient::GetF
@@ -376,6 +385,15 @@ std::u16string ChromeOmniboxClient::GetF
}
std::u16string ChromeOmniboxClient::GetURLForDisplay() const {
@@ -63,7 +63,7 @@
return location_bar_->GetLocationBarModel()->GetURLForDisplay();
}
@@ -405,6 +423,9 @@ void ChromeOmniboxClient::OnFocusChanged
@@ -452,6 +470,9 @@ void ChromeOmniboxClient::OnFocusChanged
if (!location_bar_->GetWebContents()) {
return;
}
@@ -73,7 +73,7 @@
if (auto* helper =
OmniboxTabHelper::FromWebContents(location_bar_->GetWebContents())) {
helper->OnFocusChanged(state, reason);
@@ -856,7 +877,9 @@ void ChromeOmniboxClient::OnAutocomplete
@@ -911,7 +932,9 @@ void ChromeOmniboxClient::OnAutocomplete
}
void ChromeOmniboxClient::OnInputInProgress(bool in_progress) {
@@ -86,7 +86,7 @@
auto* const helper =
--- a/chrome/browser/ui/omnibox/chrome_omnibox_client.h
+++ b/chrome/browser/ui/omnibox/chrome_omnibox_client.h
@@ -144,6 +144,8 @@ class ChromeOmniboxClient final : public
@@ -148,6 +148,8 @@ class ChromeOmniboxClient final : public
const AutocompleteMatch& match);
private:
@@ -140,7 +140,7 @@
}
std::u16string OmniboxViewViews::GetText() const {
@@ -890,6 +898,20 @@ void OmniboxViewViews::UpdateAccessibleT
@@ -916,6 +924,20 @@ void OmniboxViewViews::UpdateAccessibleT
friendly_suggestion_text_prefix_length_);
}
@@ -159,9 +159,9 @@
+}
+
void OmniboxViewViews::OnOmniboxPaste() {
const std::u16string text(GetClipboardText(/*notify_if_restricted=*/true));
@@ -1026,6 +1048,7 @@ void OmniboxViewViews::ApplyCaretVisibil
GetClipboardText(
/*notify_if_restricted=*/true,
@@ -1057,6 +1079,7 @@ void OmniboxViewViews::ApplyCaretVisibil
location_bar_view_->OnOmniboxFocused();
}
}
@@ -169,7 +169,7 @@
InstallPlaceholderText();
}
@@ -1670,6 +1693,7 @@ void OmniboxViewViews::OnFocus() {
@@ -1700,6 +1723,7 @@ void OmniboxViewViews::OnFocus() {
// TODO(oshima): Get control key state.
controller()->edit_model()->OnSetFocus(false);
@@ -177,7 +177,7 @@
// Don't call WebLocationBar::OnSetFocus(), this view has already acquired
// focus.
@@ -1742,6 +1766,7 @@ void OmniboxViewViews::OnBlur() {
@@ -1772,6 +1796,7 @@ void OmniboxViewViews::OnBlur() {
// Tell the model to reset itself.
controller()->edit_model()->OnKillFocus();
@@ -187,7 +187,7 @@
SetSelectedRange(gfx::Range(GetCursorPosition()));
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.h
@@ -211,6 +211,7 @@ class OmniboxViewViews
@@ -219,6 +219,7 @@ class OmniboxViewViews
// Returns the selected text.
std::u16string_view GetSelectedText() const;
void UpdateAccessibleTextSelection() override;
@@ -255,17 +255,17 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -514,6 +514,7 @@ void AddAppearanceStrings(content::WebUI
@@ -512,6 +512,7 @@ void AddAppearanceStrings(content::WebUI
{"tabStripRightAlign", IDS_SETTINGS_TAB_STRIP_RIGHT_ALIGN},
{"centeredLocationBar", IDS_SETTINGS_CENTERED_LOCATION_BAR},
{"verticalCollapseShortcut", IDS_SETTINGS_VERTICAL_COLLAPSE_SHORTCUT},
+ {"minimalLocationBar", IDS_SETTINGS_MINIMAL_LOCATION_BAR},
{"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
{"tabStripPosition", IDS_SETTINGS_TAB_STRIP_POSITION},
{"showTabSearchButton", IDS_SETTINGS_SHOW_TAB_SEARCH_BUTTON},
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -204,6 +204,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -209,6 +209,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumCenteredLocationBar] =
settings_api::PrefType::kBoolean;
@@ -276,7 +276,7 @@
(*s_allowlist)[::embedder_support::kAlternateErrorPagesEnabled] =
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
@@ -120,6 +120,10 @@
@@ -116,6 +116,10 @@
pref="{{prefs.helium.browser.centered_location_bar}}"
label="$i18n{centeredLocationBar}">
</settings-toggle-button>
+37 -21
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -198,6 +198,11 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -203,6 +203,11 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
}
s_allowlist = new PrefsUtil::TypedPrefMap();
@@ -12,15 +12,6 @@
// Miscellaneous
(*s_allowlist)[::embedder_support::kAlternateErrorPagesEnabled] =
settings_api::PrefType::kBoolean;
@@ -235,8 +240,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kSidePanelHorizontalAlignment] =
settings_api::PrefType::kBoolean;
- (*s_allowlist)[::prefs::kVerticalTabsEnabled] =
- settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kTabSearchRightAligned] =
settings_api::PrefType::kBoolean;
(*s_allowlist)[tab_groups::prefs::kAutoPinNewTabGroups] =
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -276,6 +276,24 @@
@@ -50,7 +41,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -506,6 +506,12 @@ void AddAppearanceStrings(content::WebUI
@@ -504,6 +504,12 @@ void AddAppearanceStrings(content::WebUI
{"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},
@@ -62,10 +53,10 @@
+ {"tabStripRightAlign", IDS_SETTINGS_TAB_STRIP_RIGHT_ALIGN},
{"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
{"tabStripPosition", IDS_SETTINGS_TAB_STRIP_POSITION},
{"showTabSearchButton", IDS_SETTINGS_SHOW_TAB_SEARCH_BUTTON},
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.ts
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.ts
@@ -82,6 +82,15 @@ export enum SystemTheme {
@@ -83,6 +83,15 @@ export enum SystemTheme {
// </if>
}
@@ -81,7 +72,7 @@
const SettingsAppearancePageElementBase =
SettingsViewMixin(RelaunchMixin(I18nMixin(PrefsMixin(PolymerElement))));
@@ -209,18 +218,26 @@ export class SettingsAppearancePageEleme
@@ -210,18 +219,26 @@ export class SettingsAppearancePageEleme
},
},
@@ -114,15 +105,15 @@
];
},
@@ -301,7 +318,7 @@ export class SettingsAppearancePageEleme
declare private showTabSearchPositionRestartButton_: boolean;
declare private showEverythingMenuEnabled_: boolean;
declare private showManagedThemeDialog_: boolean;
declare private sidePanelOptions_: DropdownMenuOptionList;
- declare private tabStripOptions_: DropdownMenuOptionList;
+ declare private browserLayoutOptions_: DropdownMenuOptionList;
declare private tabSearchOptions_: DropdownMenuOptionList;
private appearanceBrowserProxy_: AppearanceBrowserProxy =
AppearanceBrowserProxyImpl.getInstance();
@@ -458,6 +475,10 @@ export class SettingsAppearancePageEleme
private colorSchemeModeHandler_: CustomizeColorSchemeModeHandlerInterface =
@@ -459,6 +476,10 @@ export class SettingsAppearancePageEleme
}
// </if>
@@ -135,7 +126,7 @@
return;
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
@@ -96,6 +96,26 @@
@@ -92,6 +92,26 @@
</cr-button>
</template>
</div>
@@ -162,7 +153,7 @@
<div
class="hr"
hidden="[[!showHr_(
@@ -151,19 +171,6 @@
@@ -147,44 +167,6 @@
label="$i18n{showBookmarksBar}">
</settings-toggle-button>
@@ -174,11 +165,36 @@
- <settings-dropdown-menu id="tabStripPosition"
- label="$i18n{tabStripPosition}"
- pref="{{prefs.vertical_tabs.enabled}}"
- menu-options="[[tabStripOptions_]]">
- menu-options="[[tabStripOptions_]]"
- on-settings-control-change="onTabStripPositionChanged_">
- </settings-dropdown-menu>
- </div>
- </template>
-
- <template is="dom-if" if="[[showTabStripComboButtonEnabled_]]">
- <settings-toggle-button id="showTabSearchButton" class="hr"
- pref="{{prefs.tab_search.pinned_to_tabstrip}}"
- label="$i18n{showTabSearchButton}"
- on-change="onShowTabSearchButtonChange_">
- </settings-toggle-button>
- <template is="dom-if" if="[[showProjectsPanelEnabled_]]">
- <settings-toggle-button id="showProjectsPanelButton" class="hr"
- pref="{{prefs.projects_panel.pinned_to_tabstrip}}"
- label="$i18n{showProjectsPanelButton}"
- on-change="onShowProjectsPanelButtonChange_">
- </settings-toggle-button>
- </template>
- <template is="dom-if"
- if="[[showEverythingMenuToggle_(
- showProjectsPanelEnabled_, showEverythingMenuEnabled_)]]">
- <settings-toggle-button id="showEverythingMenuButton" class="hr"
- pref="{{prefs.everything_menu.pinned_to_tabstrip}}"
- label="$i18n{showEverythingMenuButton}"
- on-change="onShowEverythingMenuButtonChange_">
- </settings-toggle-button>
- </template>
- </template>
-
<settings-toggle-button class="hr" id="showSavedTabGroups"
pref="{{prefs.bookmark_bar.show_tab_groups}}"
label="$i18n{showTabGroupsInBookmarksBar}">
label="$i18n{showTabGroupsInBookmarksBar}"

Some files were not shown because too many files have changed in this diff Show More