mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e13b31f0e | |||
| 025564d6d7 | |||
| 4010387eab | |||
| 3a977845f0 | |||
| a126f65782 |
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2015-2023, The ungoogled-chromium Authors
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -186,4 +186,4 @@ repositories is licensed under GPL-3.0. See [LICENSE](LICENSE).
|
||||
|
||||
Any content imported from other projects retains its original license (for
|
||||
example, any original unmodified code imported from ungoogled-chromium remains
|
||||
licensed under their [BSD 3-Clause license](https://github.com/ungoogled-software/ungoogled-chromium/blob/464e163fb067ad1134ffb7da5b6d2da478d8939e/LICENSE)).
|
||||
licensed under their [BSD 3-Clause license](LICENSE.ungoogled_chromium)).
|
||||
|
||||
@@ -1 +1 @@
|
||||
137.0.7151.55
|
||||
137.0.7151.69
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run sanity checking algorithms over downloads.ini files
|
||||
|
||||
It checks the following:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""
|
||||
Checks if files in a list exist.
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run sanity checking algorithms over GN flags
|
||||
|
||||
It checks the following:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run sanity checking algorithms over ungoogled-chromium's patch files
|
||||
|
||||
It checks the following:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run Pylint over devutils"""
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run Pylint over any module"""
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run Pylint over utils"""
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Test check_patch_files.py"""
|
||||
|
||||
import logging
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Test validate_patches.py"""
|
||||
|
||||
import logging
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
|
||||
"""
|
||||
Update binary pruning and domain substitution lists automatically.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
|
||||
"""
|
||||
Utility to ease the updating of platform patches against ungoogled-chromium's patches
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run sanity checking algorithms over ungoogled-chromium's config files
|
||||
|
||||
NOTE: This script is hardcoded to run over ungoogled-chromium's config files only.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""
|
||||
Validates that all patches apply cleanly against the source tree.
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
@@ -0,0 +1,25 @@
|
||||
+// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#include "net/url_request/trk_protocol_handler.h"
|
||||
+
|
||||
@@ -112,7 +112,7 @@
|
||||
@@ -0,0 +1,30 @@
|
||||
+// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
|
||||
+#define NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
|
||||
|
||||
@@ -2861,7 +2861,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#endif // BRAVE_UTILITY_IMPORTER_CHROME_IMPORTER_H_
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -10830,6 +10830,9 @@ Check your passwords anytime in <ph name
|
||||
@@ -10879,6 +10879,9 @@ Check your passwords anytime in <ph name
|
||||
Microsoft Edge
|
||||
</message>
|
||||
</if>
|
||||
|
||||
@@ -175,7 +175,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
} // namespace importer
|
||||
--- a/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
+++ b/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
@@ -38,6 +38,7 @@ chromium-metrics-reviews@google.com.
|
||||
@@ -39,6 +39,7 @@ chromium-metrics-reviews@google.com.
|
||||
<variant name="DataSharingGroupStorage" summary="DataSharingGroupStorage"/>
|
||||
<variant name="DBSCSessions" summary="DBSCSessions"/>
|
||||
<variant name="DIPS" summary="DIPS"/>
|
||||
@@ -242,7 +242,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
|
||||
@@ -4231,6 +4231,10 @@ inline constexpr char kServiceWorkerToCo
|
||||
@@ -4271,6 +4271,10 @@ inline constexpr char kServiceWorkerToCo
|
||||
// is set as a SharedWorker script URL.
|
||||
inline constexpr char kSharedWorkerBlobURLFixEnabled[] =
|
||||
"worker.shared_worker_blob_url_fix_enabled";
|
||||
@@ -255,7 +255,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#endif // CHROME_COMMON_PREF_NAMES_H_
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -1148,6 +1148,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -1150,6 +1150,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -266,7 +266,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
|
||||
@@ -62,6 +62,7 @@
|
||||
@@ -63,6 +63,7 @@
|
||||
#include "chrome/browser/ui/webui/settings/font_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/hats_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/import_data_handler.h"
|
||||
@@ -274,7 +274,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "chrome/browser/ui/webui/settings/metrics_reporting_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/on_startup_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/password_manager_handler.h"
|
||||
@@ -207,6 +208,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);
|
||||
@@ -282,7 +282,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
SettingsUI::SettingsUI(content::WebUI* web_ui)
|
||||
@@ -251,7 +253,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
@@ -259,7 +261,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
AddSettingsPageUIHandler(std::make_unique<DownloadsHandler>(profile));
|
||||
AddSettingsPageUIHandler(std::make_unique<ExtensionControlHandler>());
|
||||
AddSettingsPageUIHandler(std::make_unique<FontHandler>(profile));
|
||||
@@ -293,7 +293,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
|
||||
@@ -849,6 +849,8 @@ void AddImportDataStrings(content::WebUI
|
||||
@@ -880,6 +880,8 @@ void AddImportDataStrings(content::WebUI
|
||||
{"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX},
|
||||
{"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX},
|
||||
{"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX},
|
||||
@@ -318,7 +318,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
|
||||
@@ -1524,6 +1524,10 @@ static_library("ui") {
|
||||
@@ -1528,6 +1528,10 @@ static_library("ui") {
|
||||
"webui/settings/accessibility_main_handler.h",
|
||||
"webui/settings/appearance_handler.cc",
|
||||
"webui/settings/appearance_handler.h",
|
||||
@@ -329,7 +329,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",
|
||||
@@ -1679,6 +1683,13 @@ static_library("ui") {
|
||||
@@ -1683,6 +1687,13 @@ static_library("ui") {
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
@@ -0,0 +1,18 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#include "components/ungoogled/ungoogled_switches.h"
|
||||
+
|
||||
@@ -43,7 +43,7 @@
|
||||
@@ -0,0 +1,20 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+// Defines all the fingerprinting command-line switches.
|
||||
+
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
@@ -0,0 +1,21 @@
|
||||
+// Copyright (c) 2023 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
|
||||
@@ -42,7 +42,7 @@
|
||||
@@ -0,0 +1,43 @@
|
||||
+// Copyright (c) 2023 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_EXISTING_SWITCH_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_EXISTING_SWITCH_FLAG_ENTRIES_H_
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
@@ -0,0 +1,49 @@
|
||||
+// Copyright 2023 The ungoogled-chromium Authors
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#include "services/network/public/cpp/referrer_sanitizer.h"
|
||||
+
|
||||
@@ -196,7 +196,7 @@
|
||||
@@ -0,0 +1,32 @@
|
||||
+// Copyright 2023 The ungoogled-chromium Authors
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef SERVICES_NETWORK_PUBLIC_CPP_REFERRER_SANITIZER_H_
|
||||
+#define SERVICES_NETWORK_PUBLIC_CPP_REFERRER_SANITIZER_H_
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
|
||||
@@ -29,7 +29,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
@@ -39,7 +39,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
|
||||
@@ -49,7 +49,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
@@ -59,7 +59,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_CHOICES_H_
|
||||
@@ -69,7 +69,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_ENTRIES_H_
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
Learn more about fixing update errors
|
||||
--- a/components/webui/version/resources/about_version.html
|
||||
+++ b/components/webui/version/resources/about_version.html
|
||||
@@ -53,11 +53,21 @@ about:version template page
|
||||
@@ -54,11 +54,21 @@ about:version template page
|
||||
<table id="inner" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr><td class="label">$i18n{application_label}</td>
|
||||
<td class="version" id="version">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
+++ b/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
@@ -9,7 +9,8 @@
|
||||
@@ -10,7 +10,8 @@
|
||||
"&ecosia",
|
||||
"&bing",
|
||||
"&break_stuff_google",
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_UTIL_H_
|
||||
--- a/components/search_engines/BUILD.gn
|
||||
+++ b/components/search_engines/BUILD.gn
|
||||
@@ -36,6 +36,8 @@ static_library("search_engines") {
|
||||
@@ -35,6 +35,8 @@ static_library("search_engines") {
|
||||
"search_terms_data.h",
|
||||
"template_url.cc",
|
||||
"template_url.h",
|
||||
@@ -43,7 +43,7 @@
|
||||
"template_url_data.cc",
|
||||
"template_url_data.h",
|
||||
"template_url_data_util.cc",
|
||||
@@ -80,6 +82,7 @@ static_library("search_engines") {
|
||||
@@ -79,6 +81,7 @@ static_library("search_engines") {
|
||||
"//components/country_codes",
|
||||
"//components/crash/core/common:crash_key",
|
||||
"//components/database_utils",
|
||||
@@ -142,7 +142,7 @@
|
||||
search_engine_choice_service,
|
||||
prepopulate_data_resolver,
|
||||
/*search_terms_data=*/std::make_unique<SearchTermsData>(),
|
||||
@@ -622,6 +632,10 @@ bool TemplateURLService::ShowInActivesLi
|
||||
@@ -624,6 +634,10 @@ bool TemplateURLService::ShowInActivesLi
|
||||
}
|
||||
|
||||
bool TemplateURLService::HiddenFromLists(const TemplateURL* t_url) const {
|
||||
@@ -152,7 +152,7 @@
|
||||
+
|
||||
switch (t_url->policy_origin()) {
|
||||
case TemplateURLData::PolicyOrigin::kNoPolicy:
|
||||
// Hide if the preferred search engine for the keyword is created by
|
||||
// Hide if another engine (e.g., one set by policy) takes precedence for
|
||||
@@ -1481,11 +1495,37 @@ void TemplateURLService::Load() {
|
||||
|
||||
if (web_data_service_) {
|
||||
@@ -191,7 +191,7 @@
|
||||
base::CallbackListSubscription TemplateURLService::RegisterOnLoadedCallback(
|
||||
base::OnceClosure callback) {
|
||||
return loaded_ ? base::CallbackListSubscription()
|
||||
@@ -2356,6 +2396,13 @@ void TemplateURLService::Init() {
|
||||
@@ -2478,6 +2518,13 @@ void TemplateURLService::Init() {
|
||||
base::Unretained(this)));
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
#include "base/android/scoped_java_ref.h"
|
||||
#endif
|
||||
@@ -146,6 +148,7 @@ class TemplateURLService final : public
|
||||
@@ -150,6 +152,7 @@ class TemplateURLService final : public
|
||||
|
||||
TemplateURLService(
|
||||
PrefService& prefs,
|
||||
@@ -228,7 +228,7 @@
|
||||
search_engines::SearchEngineChoiceService& search_engine_choice_service,
|
||||
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
|
||||
std::unique_ptr<SearchTermsData> search_terms_data,
|
||||
@@ -157,6 +160,7 @@ class TemplateURLService final : public
|
||||
@@ -161,6 +164,7 @@ class TemplateURLService final : public
|
||||
// some template URL data.
|
||||
explicit TemplateURLService(
|
||||
PrefService& prefs,
|
||||
@@ -236,7 +236,7 @@
|
||||
search_engines::SearchEngineChoiceService& search_engine_choice_service,
|
||||
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
|
||||
base::span<const TemplateURLService::Initializer> initializers = {});
|
||||
@@ -476,6 +480,8 @@ class TemplateURLService final : public
|
||||
@@ -480,6 +484,8 @@ class TemplateURLService final : public
|
||||
// OnTemplateURLServiceChanged.
|
||||
void Load();
|
||||
|
||||
@@ -245,7 +245,7 @@
|
||||
// Registers a callback to be called when the service has loaded.
|
||||
//
|
||||
// If the service has already loaded, this function does nothing.
|
||||
@@ -704,6 +710,8 @@ class TemplateURLService final : public
|
||||
@@ -708,6 +714,8 @@ class TemplateURLService final : public
|
||||
|
||||
void Init();
|
||||
|
||||
@@ -254,7 +254,7 @@
|
||||
// Simulate a loaded `TemplateURLService`.
|
||||
void ApplyInitializersForTesting(
|
||||
base::span<const TemplateURLService::Initializer> initializers);
|
||||
@@ -905,6 +913,10 @@ class TemplateURLService final : public
|
||||
@@ -911,6 +919,10 @@ class TemplateURLService final : public
|
||||
// Service used to store entries.
|
||||
scoped_refptr<KeywordWebDataService> web_data_service_;
|
||||
|
||||
@@ -646,7 +646,7 @@
|
||||
size_t TemplateURLData::EstimateMemoryUsage() const {
|
||||
--- a/components/search_engines/template_url_data.h
|
||||
+++ b/components/search_engines/template_url_data.h
|
||||
@@ -253,6 +253,9 @@ struct TemplateURLData {
|
||||
@@ -256,6 +256,9 @@ struct TemplateURLData {
|
||||
// starter_pack_id > 0.
|
||||
int starter_pack_id{0};
|
||||
|
||||
@@ -704,7 +704,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
|
||||
@@ -1841,6 +1841,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1876,6 +1876,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
{"heliumServicesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
@@ -716,7 +716,7 @@
|
||||
{"heliumExtProxyToggleDescription",
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -2113,6 +2113,12 @@
|
||||
@@ -2112,6 +2112,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>
|
||||
@@ -755,7 +755,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
|
||||
@@ -347,6 +347,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -349,6 +349,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumExtProxyEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -778,7 +778,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/components/omnibox/browser/omnibox_edit_model.cc
|
||||
+++ b/components/omnibox/browser/omnibox_edit_model.cc
|
||||
@@ -1711,7 +1711,10 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
@@ -1722,7 +1722,10 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
|
||||
std::u16string OmniboxEditModel::MaybeStripKeyword(
|
||||
const std::u16string& text) const {
|
||||
@@ -790,7 +790,7 @@
|
||||
? AutocompleteInput::SplitReplacementStringFromInput(text, false)
|
||||
: text;
|
||||
}
|
||||
@@ -2928,9 +2931,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
|
||||
@@ -2976,9 +2979,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
|
||||
return false;
|
||||
|
||||
size_t keyword_length = new_text.length() - 1;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"G", IDC_FIND_NEXT, VIRTKEY, CONTROL
|
||||
--- a/chrome/browser/global_keyboard_shortcuts_mac.mm
|
||||
+++ b/chrome/browser/global_keyboard_shortcuts_mac.mm
|
||||
@@ -144,7 +144,7 @@ const std::vector<KeyboardShortcutData>&
|
||||
@@ -145,7 +145,7 @@ const std::vector<KeyboardShortcutData>&
|
||||
|
||||
{true, true, false, false, kVK_ANSI_M, IDC_SHOW_AVATAR_MENU},
|
||||
{true, false, false, true, kVK_ANSI_L, IDC_SHOW_DOWNLOADS},
|
||||
@@ -33,7 +33,7 @@
|
||||
ui::VKEY_N},
|
||||
--- a/chrome/browser/ui/views/accelerator_table.cc
|
||||
+++ b/chrome/browser/ui/views/accelerator_table.cc
|
||||
@@ -257,7 +257,7 @@ const AcceleratorMapping kDevToolsAccele
|
||||
@@ -265,7 +265,7 @@ const AcceleratorMapping kDevToolsAccele
|
||||
{ui::VKEY_J, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
|
||||
IDC_DEV_TOOLS_CONSOLE},
|
||||
{ui::VKEY_C, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/bookmarks/browser/bookmark_utils.cc
|
||||
+++ b/components/bookmarks/browser/bookmark_utils.cc
|
||||
@@ -456,14 +456,14 @@ bool DoesBookmarkContainWords(const std:
|
||||
@@ -457,14 +457,14 @@ bool DoesBookmarkContainWords(const std:
|
||||
|
||||
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterBooleanPref(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/live_caption/caption_util.cc
|
||||
+++ b/components/live_caption/caption_util.cc
|
||||
@@ -126,6 +126,7 @@ std::optional<ui::CaptionStyle> GetCapti
|
||||
@@ -127,6 +127,7 @@ std::optional<ui::CaptionStyle> GetCapti
|
||||
}
|
||||
|
||||
bool IsLiveCaptionFeatureSupported() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -155,12 +155,7 @@ BASE_FEATURE(kTabGroupsCollapseFreezing,
|
||||
@@ -157,12 +157,7 @@ BASE_FEATURE(kTabGroupsCollapseFreezing,
|
||||
// https://crbug.com/928954
|
||||
BASE_FEATURE(kTabHoverCardImages,
|
||||
"TabHoverCardImages",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
@@ -244,8 +244,7 @@ void PinnedToolbarActionsModel::MaybeMig
|
||||
@@ -240,8 +240,7 @@ void PinnedToolbarActionsModel::MaybeMig
|
||||
UpdatePinnedState(kActionShowChromeLabs, true);
|
||||
pref_service_->SetBoolean(prefs::kPinnedChromeLabsMigrationComplete, true);
|
||||
}
|
||||
@@ -23,7 +23,7 @@
|
||||
if (tab_search_action.has_value()) {
|
||||
--- a/chrome/common/chrome_features.cc
|
||||
+++ b/chrome/common/chrome_features.cc
|
||||
@@ -433,7 +433,7 @@ BASE_FEATURE(kGlicWarmMultiple,
|
||||
@@ -535,7 +535,7 @@ BASE_FEATURE(kGlicUnloadOnClose,
|
||||
|
||||
BASE_FEATURE(kTabstripComboButton,
|
||||
"TabstripComboButton",
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
bool IsTabSearchMoving() {
|
||||
return base::FeatureList::IsEnabled(features::kTabstripComboButton) &&
|
||||
@@ -447,7 +447,7 @@ const base::FeatureParam<bool> kTabstrip
|
||||
@@ -549,7 +549,7 @@ const base::FeatureParam<bool> kTabstrip
|
||||
&kTabstripComboButton, "reverse_button_order", false};
|
||||
|
||||
const base::FeatureParam<bool> kTabSearchToolbarButton{
|
||||
|
||||
@@ -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
|
||||
@@ -32,7 +32,6 @@
|
||||
@@ -31,7 +31,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"
|
||||
@@ -85,7 +84,6 @@
|
||||
@@ -84,7 +83,6 @@
|
||||
#include "components/plus_addresses/grit/plus_addresses_strings.h"
|
||||
#include "components/plus_addresses/plus_address_service.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"
|
||||
@@ -2382,14 +2380,9 @@ void AddSearchStrings(content::WebUIData
|
||||
@@ -2414,14 +2412,9 @@ void AddSearchStrings(content::WebUIData
|
||||
html_source->AddString("searchExplanationLearnMoreURL",
|
||||
chrome::kOmniboxLearnMoreURL);
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
"saveGuestChoiceText", IDS_SEARCH_ENGINE_CHOICE_GUEST_SESSION_CHECKBOX);
|
||||
--- a/components/regional_capabilities/regional_capabilities_utils.cc
|
||||
+++ b/components/regional_capabilities/regional_capabilities_utils.cc
|
||||
@@ -16,6 +16,9 @@
|
||||
namespace regional_capabilities {
|
||||
@@ -54,6 +54,9 @@ void ShufflePrepopulatedEngines(std::vec
|
||||
} // namespace
|
||||
|
||||
bool IsEeaCountry(country_codes::CountryId country_id) {
|
||||
+ if ((true))
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -221,6 +221,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
(*s_allowlist)[::prefs::kShowForwardButton] =
|
||||
@@ -223,6 +223,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
(*s_allowlist)[::prefs::kPinSplitTabButton] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
|
||||
+ // Custom toolbar button settings.
|
||||
@@ -13,7 +13,7 @@
|
||||
(*s_allowlist)[::prefs::kPinnedActions] = settings_api::PrefType::kList;
|
||||
--- a/chrome/browser/ui/actions/chrome_action_id.h
|
||||
+++ b/chrome/browser/ui/actions/chrome_action_id.h
|
||||
@@ -540,6 +540,7 @@
|
||||
@@ -544,6 +544,7 @@
|
||||
#define TOOLBAR_PINNABLE_ACTION_IDS \
|
||||
E(kActionHome, IDC_HOME) \
|
||||
E(kActionForward, IDC_FORWARD) \
|
||||
@@ -24,8 +24,8 @@
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -93,6 +93,9 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
prefs::kShowForwardButton, true,
|
||||
GetHomeAndForwardButtonAndHomePageIsNewTabPageFlags());
|
||||
registry->RegisterBooleanPref(prefs::kPinSplitTabButton, false,
|
||||
pref_registration_flags);
|
||||
|
||||
+ registry->RegisterBooleanPref(
|
||||
+ prefs::kShowAvatarButton, true);
|
||||
@@ -35,7 +35,7 @@
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
|
||||
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
@@ -220,6 +220,7 @@ void PinnedToolbarActionsModel::UpdatePi
|
||||
@@ -216,6 +216,7 @@ void PinnedToolbarActionsModel::UpdatePi
|
||||
void PinnedToolbarActionsModel::ResetToDefault() {
|
||||
pref_service_->ClearPref(prefs::kShowHomeButton);
|
||||
pref_service_->ClearPref(prefs::kShowForwardButton);
|
||||
@@ -43,7 +43,7 @@
|
||||
pref_service_->ClearPref(prefs::kPinnedActions);
|
||||
}
|
||||
|
||||
@@ -233,7 +234,10 @@ bool PinnedToolbarActionsModel::IsDefaul
|
||||
@@ -229,7 +230,10 @@ bool PinnedToolbarActionsModel::IsDefaul
|
||||
const bool forward_is_default =
|
||||
pref_service_->GetDefaultPrefValue(prefs::kShowForwardButton)
|
||||
->GetBool() == pref_service_->GetBoolean(prefs::kShowForwardButton);
|
||||
@@ -57,7 +57,7 @@
|
||||
void PinnedToolbarActionsModel::MaybeMigrateExistingPinnedStates() {
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -459,8 +459,7 @@ void ToolbarView::Init() {
|
||||
@@ -461,8 +461,7 @@ void ToolbarView::Init() {
|
||||
#else
|
||||
// DevTools profiles are OffTheRecord, so hide it there.
|
||||
show_avatar_toolbar_button = browser_->profile()->IsIncognitoProfile() ||
|
||||
@@ -67,7 +67,7 @@
|
||||
#endif
|
||||
|
||||
const std::string sab_value = base::CommandLine::ForCurrentProcess()->
|
||||
@@ -529,6 +528,17 @@ void ToolbarView::Init() {
|
||||
@@ -531,6 +530,17 @@ void ToolbarView::Init() {
|
||||
|
||||
home_->SetVisible(show_home_button_.GetValue());
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
InitLayout();
|
||||
|
||||
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
|
||||
@@ -1238,6 +1248,10 @@ void ToolbarView::OnShowHomeButtonChange
|
||||
@@ -1241,6 +1251,10 @@ void ToolbarView::OnShowHomeButtonChange
|
||||
home_->SetVisible(show_home_button_.GetValue());
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
kShowPaymentMethods,
|
||||
--- 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
|
||||
@@ -49,6 +49,8 @@ MojoActionForChromeAction(actions::Actio
|
||||
@@ -50,6 +50,8 @@ MojoActionForChromeAction(actions::Actio
|
||||
return side_panel::customize_chrome::mojom::ActionId::kHome;
|
||||
case kActionForward:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kForward;
|
||||
@@ -137,7 +137,7 @@
|
||||
case kActionNewIncognitoWindow:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow;
|
||||
case kActionShowPasswordsBubbleOrPage:
|
||||
@@ -106,6 +108,8 @@ std::optional<actions::ActionId> ChromeA
|
||||
@@ -109,6 +111,8 @@ std::optional<actions::ActionId> ChromeA
|
||||
return kActionHome;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kForward:
|
||||
return kActionForward;
|
||||
@@ -146,9 +146,9 @@
|
||||
case side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow:
|
||||
return kActionNewIncognitoWindow;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kShowPasswordManager:
|
||||
@@ -165,6 +169,10 @@ CustomizeToolbarHandler::CustomizeToolba
|
||||
prefs::kShowForwardButton,
|
||||
base::BindRepeating(&CustomizeToolbarHandler::OnShowForwardButtonChanged,
|
||||
@@ -174,6 +178,10 @@ CustomizeToolbarHandler::CustomizeToolba
|
||||
prefs::kPinSplitTabButton,
|
||||
base::BindRepeating(&CustomizeToolbarHandler::OnPinSplitTabButtonChanged,
|
||||
base::Unretained(this)));
|
||||
+ pref_change_registrar_.Add(
|
||||
+ prefs::kShowAvatarButton,
|
||||
@@ -157,9 +157,9 @@
|
||||
}
|
||||
|
||||
CustomizeToolbarHandler::~CustomizeToolbarHandler() = default;
|
||||
@@ -200,6 +208,17 @@ void CustomizeToolbarHandler::ListAction
|
||||
.Rasterize(&provider),
|
||||
scale_factor)));
|
||||
@@ -219,6 +227,19 @@ void CustomizeToolbarHandler::ListAction
|
||||
actions.push_back(std::move(home_action));
|
||||
actions.push_back(std::move(forward_action));
|
||||
|
||||
+ auto avatar_action = side_panel::customize_chrome::mojom::Action::New(
|
||||
+ MojoActionForChromeAction(kActionAvatar).value(),
|
||||
@@ -172,20 +172,14 @@
|
||||
+ .Rasterize(&provider),
|
||||
+ scale_factor)));
|
||||
+
|
||||
const raw_ptr<BrowserWindowInterface> bwi =
|
||||
webui::GetBrowserWindowInterface(web_contents_);
|
||||
CHECK(bwi);
|
||||
@@ -249,6 +268,7 @@ void CustomizeToolbarHandler::ListAction
|
||||
|
||||
actions.push_back(std::move(home_action));
|
||||
actions.push_back(std::move(forward_action));
|
||||
+ actions.push_back(std::move(avatar_action));
|
||||
add_action(kActionNewIncognitoWindow,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kNavigation);
|
||||
|
||||
@@ -338,6 +358,9 @@ void CustomizeToolbarHandler::PinAction(
|
||||
case kActionForward:
|
||||
prefs()->SetBoolean(prefs::kShowForwardButton, pin);
|
||||
+
|
||||
if (base::FeatureList::IsEnabled(features::kSideBySide)) {
|
||||
auto split_tab_action = side_panel::customize_chrome::mojom::Action::New(
|
||||
MojoActionForChromeAction(kActionSplitTab).value(),
|
||||
@@ -369,6 +390,9 @@ void CustomizeToolbarHandler::PinAction(
|
||||
case kActionSplitTab:
|
||||
prefs()->SetBoolean(prefs::kPinSplitTabButton, pin);
|
||||
break;
|
||||
+ case kActionAvatar:
|
||||
+ prefs()->SetBoolean(prefs::kShowAvatarButton, pin);
|
||||
@@ -193,8 +187,8 @@
|
||||
default:
|
||||
model_->UpdatePinnedState(chrome_action.value(), pin);
|
||||
const std::optional<std::string> metrics_name =
|
||||
@@ -386,6 +409,11 @@ void CustomizeToolbarHandler::OnShowForw
|
||||
prefs()->GetBoolean(prefs::kShowForwardButton));
|
||||
@@ -422,6 +446,11 @@ void CustomizeToolbarHandler::OnPinSplit
|
||||
prefs()->GetBoolean(prefs::kPinSplitTabButton));
|
||||
}
|
||||
|
||||
+void CustomizeToolbarHandler::OnShowAvatarButtonChanged() {
|
||||
@@ -207,19 +201,19 @@
|
||||
}
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
|
||||
@@ -44,6 +44,7 @@ class CustomizeToolbarHandler
|
||||
void OnActionPinnedChanged(actions::ActionId id, bool pinned);
|
||||
@@ -54,6 +54,7 @@ class CustomizeToolbarHandler
|
||||
void OnShowHomeButtonChanged();
|
||||
void OnShowForwardButtonChanged();
|
||||
void OnPinSplitTabButtonChanged();
|
||||
+ void OnShowAvatarButtonChanged();
|
||||
void OnActionItemChanged();
|
||||
|
||||
PrefService* prefs() const;
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1315,6 +1315,10 @@ inline constexpr char kShowHomeButton[]
|
||||
@@ -1324,6 +1324,10 @@ inline constexpr char kShowForwardButton
|
||||
// toolbar.
|
||||
inline constexpr char kShowForwardButton[] = "browser.show_forward_button";
|
||||
inline constexpr char kPinSplitTabButton[] = "browser.pin_split_tab_button";
|
||||
|
||||
+// A boolean pref set to true if the Avatar button should be visible on the
|
||||
+// toolbar.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -224,6 +224,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -226,6 +226,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
// Custom toolbar button settings.
|
||||
(*s_allowlist)[::prefs::kShowAvatarButton] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -11,7 +11,7 @@
|
||||
(*s_allowlist)[::prefs::kCurrentThemeID] = settings_api::PrefType::kString;
|
||||
--- a/chrome/browser/ui/actions/chrome_action_id.h
|
||||
+++ b/chrome/browser/ui/actions/chrome_action_id.h
|
||||
@@ -541,6 +541,7 @@
|
||||
@@ -545,6 +545,7 @@
|
||||
E(kActionHome, IDC_HOME) \
|
||||
E(kActionForward, IDC_FORWARD) \
|
||||
E(kActionAvatar, IDC_SHOW_AVATAR_MENU) \
|
||||
@@ -32,7 +32,7 @@
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true);
|
||||
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
@@ -221,6 +221,7 @@ void PinnedToolbarActionsModel::ResetToD
|
||||
@@ -217,6 +217,7 @@ void PinnedToolbarActionsModel::ResetToD
|
||||
pref_service_->ClearPref(prefs::kShowHomeButton);
|
||||
pref_service_->ClearPref(prefs::kShowForwardButton);
|
||||
pref_service_->ClearPref(prefs::kShowAvatarButton);
|
||||
@@ -40,7 +40,7 @@
|
||||
pref_service_->ClearPref(prefs::kPinnedActions);
|
||||
}
|
||||
|
||||
@@ -237,7 +238,12 @@ bool PinnedToolbarActionsModel::IsDefaul
|
||||
@@ -233,7 +234,12 @@ bool PinnedToolbarActionsModel::IsDefaul
|
||||
const bool avatar_is_default =
|
||||
pref_service_->GetDefaultPrefValue(prefs::kShowAvatarButton)
|
||||
->GetBool() == pref_service_->GetBoolean(prefs::kShowAvatarButton);
|
||||
@@ -56,7 +56,7 @@
|
||||
void PinnedToolbarActionsModel::MaybeMigrateExistingPinnedStates() {
|
||||
--- a/chrome/browser/ui/views/extensions/extensions_toolbar_container.cc
|
||||
+++ b/chrome/browser/ui/views/extensions/extensions_toolbar_container.cc
|
||||
@@ -548,7 +548,9 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
@@ -550,7 +550,9 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
|
||||
// Fix the position of widgets. Without this fix, extension-installed-bubble
|
||||
// and extension-uninstall-dialog may be out of the window border on Linux.
|
||||
@@ -67,7 +67,7 @@
|
||||
{
|
||||
views::View* anchor_view = BrowserView::GetBrowserViewForBrowser(browser_)
|
||||
->toolbar_button_provider()->GetAppMenuButton();
|
||||
@@ -955,7 +957,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
@@ -957,7 +959,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
}
|
||||
|
||||
bool ExtensionsToolbarContainer::ShouldContainerBeVisible() const {
|
||||
@@ -80,7 +80,7 @@
|
||||
// The container (and extensions-menu button) should not be visible if we have
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -539,6 +539,14 @@ void ToolbarView::Init() {
|
||||
@@ -541,6 +541,14 @@ void ToolbarView::Init() {
|
||||
avatar_->SetVisible(show_avatar_button_.GetValue());
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
InitLayout();
|
||||
|
||||
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
|
||||
@@ -1252,6 +1260,10 @@ void ToolbarView::OnShowAvatarButtonChan
|
||||
@@ -1255,6 +1263,10 @@ void ToolbarView::OnShowAvatarButtonChan
|
||||
avatar_->SetVisible(show_avatar_button_.GetValue());
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
kShowPaymentMethods,
|
||||
--- 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
|
||||
@@ -51,6 +51,8 @@ MojoActionForChromeAction(actions::Actio
|
||||
@@ -52,6 +52,8 @@ MojoActionForChromeAction(actions::Actio
|
||||
return side_panel::customize_chrome::mojom::ActionId::kForward;
|
||||
case kActionAvatar:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kAvatar;
|
||||
@@ -147,7 +147,7 @@
|
||||
case kActionNewIncognitoWindow:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow;
|
||||
case kActionShowPasswordsBubbleOrPage:
|
||||
@@ -110,6 +112,8 @@ std::optional<actions::ActionId> ChromeA
|
||||
@@ -113,6 +115,8 @@ std::optional<actions::ActionId> ChromeA
|
||||
return kActionForward;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kAvatar:
|
||||
return kActionAvatar;
|
||||
@@ -156,7 +156,7 @@
|
||||
case side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow:
|
||||
return kActionNewIncognitoWindow;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kShowPasswordManager:
|
||||
@@ -173,6 +177,10 @@ CustomizeToolbarHandler::CustomizeToolba
|
||||
@@ -182,6 +186,10 @@ CustomizeToolbarHandler::CustomizeToolba
|
||||
prefs::kShowAvatarButton,
|
||||
base::BindRepeating(&CustomizeToolbarHandler::OnShowAvatarButtonChanged,
|
||||
base::Unretained(this)));
|
||||
@@ -167,9 +167,9 @@
|
||||
}
|
||||
|
||||
CustomizeToolbarHandler::~CustomizeToolbarHandler() = default;
|
||||
@@ -219,6 +227,17 @@ void CustomizeToolbarHandler::ListAction
|
||||
.Rasterize(&provider),
|
||||
scale_factor)));
|
||||
@@ -240,6 +248,19 @@ void CustomizeToolbarHandler::ListAction
|
||||
|
||||
actions.push_back(std::move(avatar_action));
|
||||
|
||||
+ auto extensions_action = side_panel::customize_chrome::mojom::Action::New(
|
||||
+ MojoActionForChromeAction(kActionExtensions).value(),
|
||||
@@ -182,18 +182,12 @@
|
||||
+ .Rasterize(&provider),
|
||||
+ scale_factor)));
|
||||
+
|
||||
const raw_ptr<BrowserWindowInterface> bwi =
|
||||
webui::GetBrowserWindowInterface(web_contents_);
|
||||
CHECK(bwi);
|
||||
@@ -269,6 +288,7 @@ void CustomizeToolbarHandler::ListAction
|
||||
actions.push_back(std::move(home_action));
|
||||
actions.push_back(std::move(forward_action));
|
||||
actions.push_back(std::move(avatar_action));
|
||||
+ actions.push_back(std::move(extensions_action));
|
||||
add_action(kActionNewIncognitoWindow,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kNavigation);
|
||||
|
||||
@@ -361,6 +381,9 @@ void CustomizeToolbarHandler::PinAction(
|
||||
+
|
||||
if (base::FeatureList::IsEnabled(features::kSideBySide)) {
|
||||
auto split_tab_action = side_panel::customize_chrome::mojom::Action::New(
|
||||
MojoActionForChromeAction(kActionSplitTab).value(),
|
||||
@@ -393,6 +414,9 @@ void CustomizeToolbarHandler::PinAction(
|
||||
case kActionAvatar:
|
||||
prefs()->SetBoolean(prefs::kShowAvatarButton, pin);
|
||||
break;
|
||||
@@ -203,7 +197,7 @@
|
||||
default:
|
||||
model_->UpdatePinnedState(chrome_action.value(), pin);
|
||||
const std::optional<std::string> metrics_name =
|
||||
@@ -414,6 +437,11 @@ void CustomizeToolbarHandler::OnShowAvat
|
||||
@@ -451,6 +475,11 @@ void CustomizeToolbarHandler::OnShowAvat
|
||||
prefs()->GetBoolean(prefs::kShowAvatarButton));
|
||||
}
|
||||
|
||||
@@ -217,9 +211,9 @@
|
||||
}
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
|
||||
@@ -45,6 +45,7 @@ class CustomizeToolbarHandler
|
||||
void OnShowHomeButtonChanged();
|
||||
@@ -55,6 +55,7 @@ class CustomizeToolbarHandler
|
||||
void OnShowForwardButtonChanged();
|
||||
void OnPinSplitTabButtonChanged();
|
||||
void OnShowAvatarButtonChanged();
|
||||
+ void OnShowExtensionsButtonChanged();
|
||||
void OnActionItemChanged();
|
||||
@@ -227,7 +221,7 @@
|
||||
PrefService* prefs() const;
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1319,6 +1319,10 @@ inline constexpr char kShowForwardButton
|
||||
@@ -1328,6 +1328,10 @@ inline constexpr char kPinSplitTabButton
|
||||
// toolbar.
|
||||
inline constexpr char kShowAvatarButton[] = "helium.browser.show_avatar_button";
|
||||
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
|
||||
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
|
||||
@@ -179,29 +179,13 @@
|
||||
// *** *** *** *** WARNING *** *** *** ***
|
||||
// TODO(crbug.com/343792225): Identify a way to resolve this problem and implement
|
||||
// necessary changes.
|
||||
@@ -177,30 +177,14 @@
|
||||
"id": 114
|
||||
},
|
||||
|
||||
- "google": {
|
||||
+ "break_stuff_google": {
|
||||
"name": "Google",
|
||||
"keyword": "google.com",
|
||||
"favicon_url": "https://www.google.com/images/branding/product/ico/googleg_alldp.ico",
|
||||
"base_builtin_resource_id": "IDR_SEARCH_ENGINE_GOOGLE",
|
||||
- "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:language}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}",
|
||||
- "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTerms}&{google:inputType}{google:omniboxFocusType}{google:cursorPosition}{google:currentPageUrl}{google:pageClassification}{google:clientCacheTimeToLive}{google:searchVersion}{google:sessionToken}{google:prefetchQuery}sugkey={google:suggestAPIKeyParameter}",
|
||||
- "image_url": "{google:baseSearchByImageURL}upload",
|
||||
@@ -36,12 +37,12 @@
|
||||
|
||||
--- a/components/search_engines/template_url_prepopulate_data.cc
|
||||
+++ b/components/search_engines/template_url_prepopulate_data.cc
|
||||
@@ -296,7 +296,7 @@ void ClearPrepopulatedEnginesInPrefs(Pre
|
||||
std::unique_ptr<TemplateURLData> GetPrepopulatedFallbackSearch(
|
||||
PrefService& prefs,
|
||||
CountryId country_id) {
|
||||
- return FindPrepopulatedEngineInternal(prefs, country_id, google.id,
|
||||
+ return FindPrepopulatedEngineInternal(prefs, country_id, duckduckgo.id,
|
||||
@@ -222,7 +222,7 @@ std::unique_ptr<TemplateURLData> GetPrep
|
||||
std::vector<const TemplateURLPrepopulateData::PrepopulatedEngine*>
|
||||
regional_prepopulated_engines) {
|
||||
return FindPrepopulatedEngineInternal(prefs, regional_prepopulated_engines,
|
||||
- google.id,
|
||||
+ duckduckgo.id,
|
||||
/*use_first_as_fallback=*/true);
|
||||
}
|
||||
|
||||
@@ -114,11 +115,12 @@
|
||||
|
||||
--- a/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
+++ b/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
@@ -3,6 +3,17 @@
|
||||
@@ -3,6 +3,18 @@
|
||||
// found in the LICENSE file.
|
||||
{
|
||||
"elements": {
|
||||
+ "ZZ": { // Default
|
||||
+ "ZZ": {
|
||||
+ // Default
|
||||
+ "search_engines": [
|
||||
+ "&duckduckgo",
|
||||
+ "&ecosia",
|
||||
@@ -129,16 +131,16 @@
|
||||
+ }
|
||||
+ },
|
||||
+ "elements_ignored": {
|
||||
"AE": { // United Arab Emirates
|
||||
"AE": {
|
||||
// United Arab Emirates
|
||||
"search_engines": [
|
||||
"&google",
|
||||
@@ -1335,7 +1346,8 @@
|
||||
@@ -1183,7 +1195,8 @@
|
||||
"name": "kRegionalSettings",
|
||||
"export_items": false,
|
||||
"map_key_type": "country_codes::CountryId",
|
||||
- "map_aliases": {
|
||||
+ "map_aliases": {},
|
||||
+ "map_aliases_ignored": {
|
||||
"AD": "ES", // Andorra
|
||||
"AF": "ZZ", // Afghanistan
|
||||
"AG": "ZZ", // Antigua and Barbuda
|
||||
"AD": "ES", // Andorra
|
||||
"AF": "ZZ", // Afghanistan
|
||||
"AG": "ZZ", // Antigua and Barbuda
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
whats_new::LogStartupType(whats_new::StartupType::kIneligible);
|
||||
--- a/tools/gritsettings/resource_ids.spec
|
||||
+++ b/tools/gritsettings/resource_ids.spec
|
||||
@@ -1131,6 +1131,10 @@
|
||||
@@ -1135,6 +1135,10 @@
|
||||
"META": {"sizes": {"includes": [30],}},
|
||||
"includes": [7480],
|
||||
},
|
||||
@@ -74,7 +74,7 @@
|
||||
# START ios/ section.
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8449,6 +8449,7 @@ static_library("browser_generated_files"
|
||||
@@ -8496,6 +8496,7 @@ static_library("browser_generated_files"
|
||||
"//chrome/browser/ui/webui/user_education_internals:mojo_bindings",
|
||||
"//chrome/browser/v8_compile_hints/proto",
|
||||
"//chrome/browser/web_applications/mojom:mojom_web_apps_enum",
|
||||
@@ -84,7 +84,7 @@
|
||||
if (is_android) {
|
||||
--- a/chrome/chrome_paks.gni
|
||||
+++ b/chrome/chrome_paks.gni
|
||||
@@ -432,11 +432,13 @@ template("chrome_extra_paks") {
|
||||
@@ -434,11 +434,13 @@ template("chrome_extra_paks") {
|
||||
if (!is_android && !is_chromeos) {
|
||||
sources += [
|
||||
"$root_gen_dir/chrome/intro_resources.pak",
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
--- a/chrome/common/webui_url_constants.cc
|
||||
+++ b/chrome/common/webui_url_constants.cc
|
||||
@@ -116,6 +116,7 @@ base::span<const base::cstring_view> Chr
|
||||
@@ -117,6 +117,7 @@ base::span<const base::cstring_view> Chr
|
||||
kChromeUIPrefsInternalsHost,
|
||||
kChromeUIProfileInternalsHost,
|
||||
content::kChromeUIQuotaInternalsHost,
|
||||
@@ -110,7 +110,7 @@
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
--- a/chrome/common/webui_url_constants.h
|
||||
+++ b/chrome/common/webui_url_constants.h
|
||||
@@ -560,6 +560,8 @@ inline constexpr char kChromeUIProfilePi
|
||||
@@ -571,6 +571,8 @@ inline constexpr char kChromeUIProfilePi
|
||||
inline constexpr char kChromeUIProfilePickerStartupQuery[] = "startup";
|
||||
inline constexpr char kChromeUIProfilePickerGlicQuery[] = "glic";
|
||||
inline constexpr char kChromeUIProfilePickerUrl[] = "chrome://profile-picker/";
|
||||
@@ -121,7 +121,7 @@
|
||||
"chrome://history-sync-optin/";
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -231,6 +231,10 @@ static_library("ui") {
|
||||
@@ -232,6 +232,10 @@ static_library("ui") {
|
||||
"webui/net_internals/net_internals_ui.h",
|
||||
"webui/ntp_tiles_internals_ui.cc",
|
||||
"webui/ntp_tiles_internals_ui.h",
|
||||
@@ -134,7 +134,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
|
||||
@@ -34,6 +34,7 @@
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "chrome/browser/ui/webui/net_export_ui.h"
|
||||
#include "chrome/browser/ui/webui/net_internals/net_internals_ui.h"
|
||||
#include "chrome/browser/ui/webui/ntp_tiles_internals_ui.h"
|
||||
@@ -142,7 +142,7 @@
|
||||
#include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
|
||||
#include "chrome/browser/ui/webui/policy/policy_ui.h"
|
||||
#include "chrome/browser/ui/webui/predictors/predictors_ui.h"
|
||||
@@ -387,6 +388,7 @@ void RegisterChromeWebUIConfigs() {
|
||||
@@ -398,6 +399,7 @@ void RegisterChromeWebUIConfigs() {
|
||||
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID)
|
||||
map.AddWebUIConfig(std::make_unique<ManagedUserProfileNoticeUIConfig>());
|
||||
map.AddWebUIConfig(std::make_unique<IntroUIConfig>());
|
||||
@@ -499,7 +499,7 @@
|
||||
}
|
||||
--- a/chrome/browser/ui/browser_navigator.cc
|
||||
+++ b/chrome/browser/ui/browser_navigator.cc
|
||||
@@ -583,7 +583,8 @@ bool IsHostAllowedInIncognito(const GURL
|
||||
@@ -579,7 +579,8 @@ bool IsHostAllowedInIncognito(const GURL
|
||||
host != chrome::kChromeUIHistoryHost &&
|
||||
host != chrome::kChromeUIExtensionsHost &&
|
||||
host != chrome::kChromeUIBookmarksHost &&
|
||||
@@ -511,7 +511,7 @@
|
||||
} // namespace
|
||||
--- a/chrome/browser/ui/webui/settings/search_engines_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/search_engines_handler.cc
|
||||
@@ -313,7 +313,9 @@ void SearchEnginesHandler::HandleSetDefa
|
||||
@@ -340,7 +340,9 @@ void SearchEnginesHandler::HandleSetDefa
|
||||
CHECK(choice_made_location ==
|
||||
search_engines::ChoiceMadeLocation::kSearchSettings ||
|
||||
choice_made_location ==
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
url.SchemeIs(url::kTraceScheme) ||
|
||||
--- a/chrome/browser/ui/browser_navigator.cc
|
||||
+++ b/chrome/browser/ui/browser_navigator.cc
|
||||
@@ -553,7 +553,8 @@ std::unique_ptr<content::WebContents> Cr
|
||||
@@ -549,7 +549,8 @@ std::unique_ptr<content::WebContents> Cr
|
||||
bool IsHostAllowedInIncognito(const GURL& url) {
|
||||
std::string scheme = url.scheme();
|
||||
std::string_view host = url.host_piece();
|
||||
@@ -103,7 +103,7 @@
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -638,6 +639,12 @@ base::WeakPtr<content::NavigationHandle>
|
||||
@@ -634,6 +635,12 @@ base::WeakPtr<content::NavigationHandle>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
// handling.
|
||||
--- a/chrome/browser/extensions/extension_tab_util.cc
|
||||
+++ b/chrome/browser/extensions/extension_tab_util.cc
|
||||
@@ -1032,7 +1032,8 @@ bool ExtensionTabUtil::IsKillURL(const G
|
||||
@@ -1062,7 +1062,8 @@ bool ExtensionTabUtil::IsKillURL(const G
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser.cc
|
||||
+++ b/chrome/browser/ui/browser.cc
|
||||
@@ -2182,6 +2182,13 @@ void Browser::SetContentsBounds(WebConte
|
||||
@@ -2212,6 +2212,13 @@ void Browser::SetContentsBounds(WebConte
|
||||
}
|
||||
|
||||
void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
|
||||
@@ -144,7 +144,7 @@
|
||||
std::vector<StatusBubble*> status_bubbles = GetStatusBubbles();
|
||||
for (StatusBubble* status_bubble : status_bubbles) {
|
||||
StatusBubbleViews* status_bubble_views =
|
||||
@@ -2189,7 +2196,7 @@ void Browser::UpdateTargetURL(WebContent
|
||||
@@ -2219,7 +2226,7 @@ void Browser::UpdateTargetURL(WebContent
|
||||
ContentsWebView* anchor =
|
||||
static_cast<ContentsWebView*>(status_bubble_views->base_view());
|
||||
if (source == anchor->GetWebContents()) {
|
||||
@@ -163,7 +163,7 @@
|
||||
#include "net/cookies/cookie_util.h"
|
||||
#include "third_party/icu/source/common/unicode/ubidi.h"
|
||||
#include "third_party/metrics_proto/omnibox_event.pb.h"
|
||||
@@ -594,6 +595,12 @@ void OmniboxEditModel::AdjustTextForCopy
|
||||
@@ -597,6 +598,12 @@ void OmniboxEditModel::AdjustTextForCopy
|
||||
*url_from_text = controller_->client()->GetNavigationEntryURL();
|
||||
*write_url = true;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/common/chrome_features.cc
|
||||
+++ b/chrome/common/chrome_features.cc
|
||||
@@ -725,7 +725,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode,
|
||||
@@ -827,7 +827,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode,
|
||||
// possible.
|
||||
BASE_FEATURE(kHttpsFirstBalancedModeAutoEnable,
|
||||
"HttpsFirstBalancedModeAutoEnable",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/extensions/common/extension_urls.cc
|
||||
+++ b/extensions/common/extension_urls.cc
|
||||
@@ -38,10 +38,10 @@ const GURL* g_item_snippet_url_for_test_
|
||||
@@ -38,12 +38,12 @@ const GURL* g_item_snippet_url_for_test_
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -8,13 +8,15 @@
|
||||
-const char kNewChromeWebstoreBaseURL[] = "trk:08:https://chromewebstore.google.com/";
|
||||
+const char kChromeWebstoreBaseURL[] = "https://chrome.google.com/webstore";
|
||||
+const char kNewChromeWebstoreBaseURL[] = "https://chromewebstore.google.com/";
|
||||
const char kExtensionsDocsWhatsNewURL[] =
|
||||
"trk:06:https://developer.chrome.com/docs/extensions/whats-new";
|
||||
const char kChromeWebstoreUpdateURL[] =
|
||||
- "trk:05:https://clients2.google.com/service/update2/crx";
|
||||
+ "https://update-url-to-be-replaced.qjz9zk";
|
||||
const char kChromeWebstoreApiURL[] = "trk:07:https://chromewebstore.googleapis.com/";
|
||||
|
||||
const char kAppMenuUtmSource[] = "ext_app_menu";
|
||||
@@ -63,6 +63,7 @@ GURL GetNewWebstoreLaunchURL() {
|
||||
@@ -69,6 +69,7 @@ GURL GetNewWebstoreLaunchURL() {
|
||||
}
|
||||
|
||||
GURL AppendUtmSource(const GURL& url, std::string_view utm_source_value) {
|
||||
@@ -22,7 +24,7 @@
|
||||
return net::AppendQueryParameter(url, "utm_source", utm_source_value);
|
||||
}
|
||||
|
||||
@@ -76,6 +77,8 @@ std::string GetWebstoreItemDetailURLPref
|
||||
@@ -82,6 +83,8 @@ std::string GetWebstoreItemDetailURLPref
|
||||
}
|
||||
|
||||
GURL GetWebstoreItemSnippetURL(const extensions::ExtensionId& extension_id) {
|
||||
@@ -31,7 +33,7 @@
|
||||
if (g_item_snippet_url_for_test_) {
|
||||
// Return `<base URL><extension_id>`. There is no suffix if the URL is
|
||||
// overridden by a test.
|
||||
@@ -99,9 +102,6 @@ GURL GetDefaultWebstoreUpdateUrl() {
|
||||
@@ -105,9 +108,6 @@ GURL GetDefaultWebstoreUpdateUrl() {
|
||||
}
|
||||
|
||||
GURL GetWebstoreUpdateUrl() {
|
||||
@@ -131,7 +133,7 @@
|
||||
+#endif // EXTENSIONS_COMMON_MANIFEST_URL_PATCHER_H_
|
||||
--- a/extensions/common/BUILD.gn
|
||||
+++ b/extensions/common/BUILD.gn
|
||||
@@ -446,6 +446,8 @@ static_library("common") {
|
||||
@@ -449,6 +449,8 @@ static_library("common") {
|
||||
"manifest_handlers/webview_info.h",
|
||||
"manifest_url_handlers.cc",
|
||||
"manifest_url_handlers.h",
|
||||
@@ -164,7 +166,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -345,6 +345,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -347,6 +347,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
// Helium services page
|
||||
(*s_allowlist)[::prefs::kHeliumServicesEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -199,7 +201,7 @@
|
||||
</div>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1841,6 +1841,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1876,6 +1876,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
{"heliumServicesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
@@ -212,7 +214,7 @@
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -2107,6 +2107,12 @@
|
||||
@@ -2106,6 +2106,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 services for providing additional functionality, such as native !bangs or extension downloads.
|
||||
</message>
|
||||
@@ -274,31 +276,33 @@
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
--- a/chrome/browser/extensions/BUILD.gn
|
||||
+++ b/chrome/browser/extensions/BUILD.gn
|
||||
@@ -330,6 +330,7 @@ source_set("extensions") {
|
||||
"//components/cookie_config",
|
||||
"//components/crx_file",
|
||||
@@ -441,6 +441,7 @@ source_set("extensions") {
|
||||
"//components/data_sharing/public:features",
|
||||
"//components/embedder_support",
|
||||
"//components/enterprise",
|
||||
+ "//components/helium_services",
|
||||
"//components/infobars/content",
|
||||
"//components/infobars/core",
|
||||
"//components/no_state_prefetch/browser",
|
||||
--- a/chrome/browser/extensions/pending_extension_manager.cc
|
||||
+++ b/chrome/browser/extensions/pending_extension_manager.cc
|
||||
@@ -18,10 +18,12 @@
|
||||
#include "chrome/common/chrome_features.h"
|
||||
#include "chrome/common/extensions/extension_constants.h"
|
||||
--- a/extensions/browser/pending_extension_manager.cc
|
||||
+++ b/extensions/browser/pending_extension_manager.cc
|
||||
@@ -14,11 +14,14 @@
|
||||
#include "base/version.h"
|
||||
#include "build/build_config.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
+#include "components/helium_services/helium_services_helpers.h"
|
||||
+#include "chrome/browser/profiles/profile.h"
|
||||
#include "extensions/browser/extension_prefs.h"
|
||||
#include "extensions/browser/extension_registry.h"
|
||||
#include "extensions/browser/pending_extension_manager_factory.h"
|
||||
#include "extensions/common/constants.h"
|
||||
#include "extensions/common/extension.h"
|
||||
+#include "extensions/common/extension_urls.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
@@ -248,11 +250,11 @@ bool PendingExtensionManager::AddFromExt
|
||||
kRemoteInstall);
|
||||
namespace {
|
||||
@@ -214,11 +217,11 @@ bool PendingExtensionManager::AddFromExt
|
||||
creation_flags, mark_acknowledged, kRemoteInstall);
|
||||
}
|
||||
|
||||
-std::list<std::string> PendingExtensionManager::GetPendingIdsForUpdateCheck()
|
||||
@@ -312,7 +316,7 @@
|
||||
ManifestLocation install_source = it.second.install_source();
|
||||
|
||||
// Some install sources read a CRX from the filesystem. They can
|
||||
@@ -264,6 +266,17 @@ std::list<std::string> PendingExtensionM
|
||||
@@ -230,6 +233,17 @@ std::list<std::string> PendingExtensionM
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -332,7 +336,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/updater/extension_updater.cc
|
||||
+++ b/chrome/browser/extensions/updater/extension_updater.cc
|
||||
@@ -37,7 +37,10 @@
|
||||
@@ -36,7 +36,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"
|
||||
@@ -341,9 +345,9 @@
|
||||
#include "components/prefs/pref_service.h"
|
||||
+#include "components/prefs/pref_change_registrar.h"
|
||||
#include "components/update_client/update_query_params.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/browser_task_traits.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
@@ -207,9 +210,6 @@ void ExtensionUpdater::EnsureDownloaderC
|
||||
@@ -213,9 +216,6 @@ void ExtensionUpdater::EnsureDownloaderC
|
||||
if (!downloader_.get()) {
|
||||
downloader_ = downloader_factory_.Run(this);
|
||||
}
|
||||
@@ -353,7 +357,7 @@
|
||||
}
|
||||
|
||||
void ExtensionUpdater::Start() {
|
||||
@@ -231,6 +231,15 @@ void ExtensionUpdater::Start() {
|
||||
@@ -237,6 +237,15 @@ void ExtensionUpdater::Start() {
|
||||
CheckSoon();
|
||||
ScheduleNextCheck();
|
||||
}
|
||||
@@ -369,7 +373,7 @@
|
||||
}
|
||||
|
||||
void ExtensionUpdater::Stop() {
|
||||
@@ -339,7 +348,6 @@ void ExtensionUpdater::AddToDownloader(
|
||||
@@ -366,7 +375,6 @@ void ExtensionUpdater::AddToDownloader(
|
||||
int request_id,
|
||||
DownloadFetchPriority fetch_priority,
|
||||
ExtensionUpdateCheckParams* update_check_params) {
|
||||
@@ -377,16 +381,16 @@
|
||||
|
||||
// In Kiosk mode extensions are downloaded and updated by the ExternalCache.
|
||||
// Therefore we skip updates here to avoid conflicts.
|
||||
@@ -439,7 +447,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
@@ -464,7 +472,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
// Add fetch records for extensions that should be fetched by an update URL.
|
||||
// These extensions are not yet installed. They come from group policy
|
||||
// and external install sources.
|
||||
- const PendingExtensionManager* pending_extension_manager =
|
||||
+ PendingExtensionManager* pending_extension_manager =
|
||||
PendingExtensionManager::Get(profile_);
|
||||
const CorruptedExtensionReinstaller* corrupted_extension_reinstaller =
|
||||
CorruptedExtensionReinstaller::Get(profile_);
|
||||
@@ -577,7 +585,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
|
||||
ExtensionUpdateCheckParams update_check_params;
|
||||
@@ -597,7 +605,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
// OnExtensionDownloadFinished for each extension that was checked.
|
||||
downloader_->StartAllPending(extension_cache_);
|
||||
|
||||
@@ -395,7 +399,7 @@
|
||||
update_check_params.priority =
|
||||
params.fetch_priority == DownloadFetchPriority::kBackground
|
||||
? ExtensionUpdateCheckParams::UpdateCheckPriority::BACKGROUND
|
||||
@@ -795,6 +803,9 @@ void ExtensionUpdater::CleanUpCrxFileIfN
|
||||
@@ -815,6 +823,9 @@ void ExtensionUpdater::CleanUpCrxFileIfN
|
||||
|
||||
bool ExtensionUpdater::CanUseUpdateService(
|
||||
const ExtensionId& extension_id) const {
|
||||
@@ -407,7 +411,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/webstore_installer.cc
|
||||
+++ b/chrome/browser/extensions/webstore_installer.cc
|
||||
@@ -47,6 +47,7 @@
|
||||
@@ -46,6 +46,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"
|
||||
@@ -415,7 +419,7 @@
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
#include "content/public/browser/download_manager.h"
|
||||
#include "content/public/browser/navigation_controller.h"
|
||||
@@ -204,7 +205,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
|
||||
@@ -203,7 +204,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
|
||||
if (!install_source.empty())
|
||||
params.push_back(installsource_param);
|
||||
params.push_back("uc");
|
||||
@@ -426,7 +430,7 @@
|
||||
url_string + "?response=redirect&" +
|
||||
--- a/chrome/browser/extensions/webstore_installer.h
|
||||
+++ b/chrome/browser/extensions/webstore_installer.h
|
||||
@@ -110,7 +110,7 @@ class WebstoreInstaller : public Extensi
|
||||
@@ -113,7 +113,7 @@ class WebstoreInstaller : public Extensi
|
||||
friend class base::DeleteHelper<WebstoreInstaller>;
|
||||
|
||||
// Helper to get install URL.
|
||||
@@ -437,7 +441,7 @@
|
||||
// DownloadManager::DownloadUrl callback.
|
||||
--- a/chrome/browser/extensions/extension_management.cc
|
||||
+++ b/chrome/browser/extensions/extension_management.cc
|
||||
@@ -48,6 +48,8 @@
|
||||
@@ -46,6 +46,8 @@
|
||||
#include "chrome/common/extensions/extension_constants.h"
|
||||
#include "chrome/common/pref_names.h"
|
||||
#include "components/crx_file/id_util.h"
|
||||
@@ -446,7 +450,7 @@
|
||||
#include "components/pref_registry/pref_registry_syncable.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "content/public/common/content_switches.h"
|
||||
@@ -113,6 +115,12 @@ ExtensionManagement::ExtensionManagement
|
||||
@@ -116,6 +118,12 @@ ExtensionManagement::ExtensionManagement
|
||||
pref_change_callback);
|
||||
pref_change_registrar_.Add(pref_names::kExtensionUnpublishedAvailability,
|
||||
pref_change_callback);
|
||||
@@ -459,7 +463,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.
|
||||
@@ -241,12 +249,20 @@ GURL ExtensionManagement::GetEffectiveUp
|
||||
@@ -244,12 +252,20 @@ GURL ExtensionManagement::GetEffectiveUp
|
||||
<< "Update URL cannot be overridden to be the webstore URL!";
|
||||
return update_url;
|
||||
}
|
||||
@@ -484,15 +488,15 @@
|
||||
<< "An extension's update URL cannot be overridden to the webstore.";
|
||||
--- a/chrome/browser/extensions/updater/extension_updater.h
|
||||
+++ b/chrome/browser/extensions/updater/extension_updater.h
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "base/memory/weak_ptr.h"
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "base/observer_list.h"
|
||||
#include "base/time/time.h"
|
||||
#include "base/unguessable_token.h"
|
||||
+#include "components/prefs/pref_change_registrar.h"
|
||||
#include "components/keyed_service/core/keyed_service.h"
|
||||
#include "extensions/browser/extension_registry_observer.h"
|
||||
#include "extensions/browser/extension_system.h"
|
||||
@@ -375,6 +376,8 @@ class ExtensionUpdater : public KeyedSer
|
||||
@@ -406,6 +407,8 @@ class ExtensionUpdater : public KeyedSer
|
||||
raw_ptr<PrefService> prefs_ = nullptr;
|
||||
raw_ptr<Profile> profile_ = nullptr;
|
||||
|
||||
@@ -512,9 +516,9 @@
|
||||
// ShouldAllowInstall() returns the result of running constructor argument
|
||||
// |should_allow_install| on an extension. After an extension is unpacked,
|
||||
// this function is run. If it returns true, the extension is installed.
|
||||
--- a/chrome/browser/extensions/pending_extension_manager.h
|
||||
+++ b/chrome/browser/extensions/pending_extension_manager.h
|
||||
@@ -144,7 +144,7 @@ class PendingExtensionManager : public K
|
||||
--- a/extensions/browser/pending_extension_manager.h
|
||||
+++ b/extensions/browser/pending_extension_manager.h
|
||||
@@ -145,7 +145,7 @@ class PendingExtensionManager : public K
|
||||
// Get the list of pending IDs that should be installed from an update URL.
|
||||
// Pending extensions that will be installed from local files will not be
|
||||
// included in the set.
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8025,6 +8025,8 @@ static_library("browser") {
|
||||
@@ -8068,6 +8068,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
|
||||
@@ -349,6 +349,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -351,6 +351,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumBangsEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -144,7 +144,7 @@
|
||||
</div>
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -2119,6 +2119,12 @@
|
||||
@@ -2118,6 +2118,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
|
||||
When enabled, Helium will fetch our list of bangs that help you browse the Internet faster, such as !w or !gh.
|
||||
</message>
|
||||
@@ -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
|
||||
@@ -1842,6 +1842,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1877,6 +1877,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
|
||||
{"heliumBangsToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -2338,8 +2338,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
@@ -2344,8 +2344,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
|
||||
void RenderViewContextMenu::AppendReadingModeItem() {
|
||||
// Show Read Anything option if it's not already open in the side panel.
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
// DIR_ROAMING_USER_DATA has been overridden by a command-line option.
|
||||
--- a/chrome/common/chrome_paths_linux.cc
|
||||
+++ b/chrome/common/chrome_paths_linux.cc
|
||||
@@ -99,6 +99,23 @@ bool GetDefaultUserDataDirectory(base::F
|
||||
@@ -101,6 +101,23 @@ bool GetDefaultUserDataDirectory(base::F
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -2095,6 +2095,31 @@
|
||||
@@ -2094,6 +2094,31 @@
|
||||
<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>
|
||||
@@ -34,7 +34,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
|
||||
@@ -1836,6 +1836,18 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1871,6 +1871,18 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"permissionsPageDescription", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
|
||||
{"securityPageTitle", IDS_SETTINGS_SECURITY},
|
||||
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
|
||||
@@ -55,7 +55,7 @@
|
||||
{"advancedProtectionProgramDesc",
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
|
||||
@@ -88,6 +88,11 @@
|
||||
@@ -97,6 +97,11 @@
|
||||
sub-label="$i18n{permissionsPageDescription}"
|
||||
on-click="onPermissionsPageClick_"
|
||||
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
|
||||
@@ -67,7 +67,7 @@
|
||||
</div>
|
||||
|
||||
<if expr="use_nss_certs">
|
||||
@@ -182,6 +187,13 @@
|
||||
@@ -191,6 +196,13 @@
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
associated-control="[[$$('#securityLinkRow')]]"
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
@@ -527,6 +527,12 @@ export class SettingsPrivacyPageElement
|
||||
@@ -526,6 +526,12 @@ export class SettingsPrivacyPageElement
|
||||
Router.getInstance().navigateTo(routes.SITE_SETTINGS);
|
||||
}
|
||||
|
||||
@@ -104,8 +104,8 @@
|
||||
GLIC_SECTION: Route;
|
||||
+ HELIUM_SERVICES: Route;
|
||||
HISTORY_SEARCH: Route;
|
||||
INCOGNITO_TRACKING_PROTECTIONS: Route;
|
||||
INCOMPATIBLE_APPLICATIONS: Route;
|
||||
LANGUAGES: Route;
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -18,6 +18,8 @@ function addPrivacyChildRoutes(r: Partia
|
||||
@@ -119,7 +119,7 @@
|
||||
if (visibility.safetyHub !== false) {
|
||||
--- a/chrome/browser/resources/settings/BUILD.gn
|
||||
+++ b/chrome/browser/resources/settings/BUILD.gn
|
||||
@@ -146,6 +146,7 @@ build_webui("build") {
|
||||
@@ -147,6 +147,7 @@ build_webui("build") {
|
||||
"privacy_page/security_keys_set_pin_dialog.ts",
|
||||
"privacy_page/security_keys_subpage.ts",
|
||||
"privacy_page/security_page.ts",
|
||||
@@ -246,7 +246,7 @@
|
||||
+customElements.define(SettingsHeliumServicesPageElement.is, SettingsHeliumServicesPageElement);
|
||||
--- a/chrome/browser/resources/settings/lazy_load.ts
|
||||
+++ b/chrome/browser/resources/settings/lazy_load.ts
|
||||
@@ -35,6 +35,7 @@ import './privacy_page/security_keys_pho
|
||||
@@ -36,6 +36,7 @@ import './privacy_page/security_keys_pho
|
||||
import './privacy_page/security_keys_phones_list.js';
|
||||
import './privacy_page/security_keys_phones_dialog.js';
|
||||
import './privacy_page/security_page.js';
|
||||
@@ -254,7 +254,7 @@
|
||||
import './safety_hub/safety_hub_page.js';
|
||||
import './safety_hub/safety_hub_entry_point.js';
|
||||
import './site_settings/all_sites.js';
|
||||
@@ -217,6 +218,7 @@ export {ResetDialogPage, SettingsSecurit
|
||||
@@ -218,6 +219,7 @@ export {ResetDialogPage, SettingsSecurit
|
||||
export {SetPinDialogPage, SettingsSecurityKeysSetPinDialogElement} from './privacy_page/security_keys_set_pin_dialog.js';
|
||||
export {SecurityKeysSubpageElement} from './privacy_page/security_keys_subpage.js';
|
||||
export {HttpsFirstModeSetting, SafeBrowsingSetting, SettingsSecurityPageElement} from './privacy_page/security_page.js';
|
||||
@@ -294,7 +294,7 @@
|
||||
#include "components/language/core/browser/pref_names.h"
|
||||
#include "components/live_caption/pref_names.h"
|
||||
#include "components/media_router/common/pref_names.h"
|
||||
@@ -341,6 +342,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -343,6 +344,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kString;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
if (command_line->HasSwitch(extensions::kSwitchTestRequestParam)) {
|
||||
--- a/chrome/browser/extensions/webstore_installer.cc
|
||||
+++ b/chrome/browser/extensions/webstore_installer.cc
|
||||
@@ -210,7 +210,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
|
||||
@@ -209,7 +209,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
|
||||
GURL url(
|
||||
url_string + "?response=redirect&" +
|
||||
update_client::UpdateQueryParams::Get(
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
--- a/tools/licenses/licenses.py
|
||||
+++ b/tools/licenses/licenses.py
|
||||
@@ -1014,6 +1014,16 @@ def GenerateCredits(file_template_file,
|
||||
@@ -1015,6 +1015,16 @@ def GenerateCredits(file_template_file,
|
||||
entries.append(
|
||||
MetadataToTemplateEntry(chromium_license_metadata, entry_template))
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
entries_by_name = {}
|
||||
for path in third_party_dirs:
|
||||
try:
|
||||
@@ -1058,8 +1068,8 @@ def GenerateCredits(file_template_file,
|
||||
@@ -1059,8 +1069,8 @@ def GenerateCredits(file_template_file,
|
||||
reciprocal_template = codecs.open(reciprocal_template_file,
|
||||
encoding='utf-8').read()
|
||||
reciprocal_contents = EvaluateTemplate(reciprocal_template, {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -62,7 +62,7 @@ void RegisterBrowserPrefs(PrefRegistrySi
|
||||
@@ -50,7 +50,7 @@ void RegisterBrowserPrefs(PrefRegistrySi
|
||||
|
||||
registry->RegisterBooleanPref(prefs::kHoverCardImagesEnabled, true);
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
local_test_policy_provider_ = connector->local_test_policy_provider();
|
||||
--- a/components/policy/core/common/BUILD.gn
|
||||
+++ b/components/policy/core/common/BUILD.gn
|
||||
@@ -153,6 +153,8 @@ source_set("internal") {
|
||||
@@ -156,6 +156,8 @@ source_set("internal") {
|
||||
"external_data_manager.h",
|
||||
"features.cc",
|
||||
"features.h",
|
||||
@@ -219,7 +219,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/extensions/extension_management.cc
|
||||
+++ b/chrome/browser/extensions/extension_management.cc
|
||||
@@ -602,7 +602,7 @@ void ExtensionManagement::Refresh() {
|
||||
@@ -607,7 +607,7 @@ void ExtensionManagement::Refresh() {
|
||||
const base::Value::List* denied_list_pref =
|
||||
LoadListPreference(pref_names::kInstallDenyList, false);
|
||||
const base::Value::Dict* forced_list_pref =
|
||||
@@ -228,7 +228,7 @@
|
||||
const base::Value::List* install_sources_pref =
|
||||
LoadListPreference(pref_names::kAllowedInstallSites, true);
|
||||
const base::Value::List* allowed_types_pref =
|
||||
@@ -619,6 +619,8 @@ void ExtensionManagement::Refresh() {
|
||||
@@ -624,6 +624,8 @@ void ExtensionManagement::Refresh() {
|
||||
LoadPreference(pref_names::kExtensionUnpublishedAvailability,
|
||||
/*force_managed=*/true, base::Value::Type::INTEGER);
|
||||
|
||||
@@ -237,7 +237,7 @@
|
||||
// Reset all settings.
|
||||
global_settings_ = std::make_unique<internal::GlobalSettings>();
|
||||
settings_by_id_.clear();
|
||||
@@ -669,7 +671,7 @@ void ExtensionManagement::Refresh() {
|
||||
@@ -674,7 +676,7 @@ void ExtensionManagement::Refresh() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
|
||||
if (install_sources_pref) {
|
||||
global_settings_->install_sources = URLPatternSet();
|
||||
@@ -864,6 +866,16 @@ void ExtensionManagement::LoadDeferredEx
|
||||
@@ -869,6 +871,16 @@ void ExtensionManagement::LoadDeferredEx
|
||||
DCHECK(found) << "Couldn't find dictionary for extension in deferred_ids_.";
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@
|
||||
const base::Value* ExtensionManagement::LoadPreference(
|
||||
const char* pref_name,
|
||||
bool force_managed,
|
||||
@@ -945,7 +957,7 @@ base::Value::Dict ExtensionManagement::G
|
||||
@@ -950,7 +962,7 @@ base::Value::Dict ExtensionManagement::G
|
||||
}
|
||||
|
||||
void ExtensionManagement::UpdateForcedExtensions(
|
||||
@@ -272,7 +272,7 @@
|
||||
if (!extension_dict)
|
||||
return;
|
||||
|
||||
@@ -971,7 +983,7 @@ void ExtensionManagement::UpdateForcedEx
|
||||
@@ -976,7 +988,7 @@ void ExtensionManagement::UpdateForcedEx
|
||||
continue;
|
||||
}
|
||||
internal::IndividualSettings* by_id = AccessById(it.first);
|
||||
@@ -283,7 +283,7 @@
|
||||
it.first, InstallStageTracker::Stage::CREATED);
|
||||
--- a/chrome/browser/extensions/extension_management.h
|
||||
+++ b/chrome/browser/extensions/extension_management.h
|
||||
@@ -252,6 +252,9 @@ class ExtensionManagement : public Keyed
|
||||
@@ -255,6 +255,9 @@ class ExtensionManagement : public Keyed
|
||||
// Loads the deferred settings information for |extension_id|.
|
||||
void LoadDeferredExtensionSetting(const std::string& extension_id);
|
||||
|
||||
@@ -293,7 +293,7 @@
|
||||
// Loads preference with name |pref_name| and expected type |expected_type|.
|
||||
// If |force_managed| is true, only loading from the managed preference store
|
||||
// is allowed. Returns NULL if the preference is not present, not allowed to
|
||||
@@ -287,7 +290,9 @@ class ExtensionManagement : public Keyed
|
||||
@@ -290,7 +293,9 @@ class ExtensionManagement : public Keyed
|
||||
ManagedInstallationMode installation_mode) const;
|
||||
|
||||
// Helper to update `extension_dict` for forced installs.
|
||||
|
||||
@@ -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
|
||||
@@ -1702,7 +1702,7 @@ void AddPeopleStrings(content::WebUIData
|
||||
@@ -1737,7 +1737,7 @@ void AddPeopleStrings(content::WebUIData
|
||||
// Top level people strings:
|
||||
{"peopleSignInPromptSecondaryWithAccount",
|
||||
IDS_SETTINGS_PEOPLE_SIGN_IN_PROMPT_SECONDARY_WITH_ACCOUNT},
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<settings-toggle-button id="priceEmailNotificationsToggle"
|
||||
--- a/chrome/browser/resources/settings/privacy_page/personalization_options.ts
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/personalization_options.ts
|
||||
@@ -252,14 +252,6 @@ export class SettingsPersonalizationOpti
|
||||
@@ -253,14 +253,6 @@ export class SettingsPersonalizationOpti
|
||||
}
|
||||
// </if>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
}
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -196,13 +196,6 @@ function createRoutes(): SettingsRoutes
|
||||
@@ -198,13 +198,6 @@ function createRoutes(): SettingsRoutes
|
||||
r.IMPORT_DATA = r.PEOPLE.createChild('/importData');
|
||||
r.IMPORT_DATA.isNavigableDialog = true;
|
||||
// </if>
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
class="cr-nav-menu-item">
|
||||
--- a/chrome/browser/resources/settings/basic_page/basic_page.html
|
||||
+++ b/chrome/browser/resources/settings/basic_page/basic_page.html
|
||||
@@ -55,7 +55,7 @@
|
||||
<settings-ai-page prefs="{{prefs}}"></settings-ai-page>
|
||||
</settings-section>
|
||||
@@ -57,7 +57,7 @@
|
||||
</settings-section>
|
||||
</template>
|
||||
</template>
|
||||
- <template is="dom-if" if="[[showPage_(pageVisibility.autofill)]]"
|
||||
+ <template is="dom-if" if="[[false]]"
|
||||
@@ -27,7 +27,7 @@
|
||||
section="autofill">
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -242,7 +242,7 @@ function createRoutes(): SettingsRoutes
|
||||
@@ -244,7 +244,7 @@ function createRoutes(): SettingsRoutes
|
||||
r.FONTS = r.APPEARANCE.createChild('/fonts');
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/frame/immersive_mode_controller_mac.mm
|
||||
+++ b/chrome/browser/ui/views/frame/immersive_mode_controller_mac.mm
|
||||
@@ -45,7 +45,7 @@ namespace {
|
||||
@@ -44,7 +44,7 @@ namespace {
|
||||
// values in BrowserNonClientFrameViewMac::GetCaptionButtonInsets don't account
|
||||
// for a window with an NSToolbar.
|
||||
constexpr int kTrafficLightsWidth = 62;
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
class ImmersiveModeFocusSearchMac : public views::FocusSearch {
|
||||
public:
|
||||
@@ -236,11 +236,9 @@ void ImmersiveModeControllerMac::SetEnab
|
||||
@@ -235,11 +235,9 @@ void ImmersiveModeControllerMac::SetEnab
|
||||
gfx::Insets ImmersiveModeControllerMac::GetTabStripRegionViewInsets() {
|
||||
int right_left_inset = kTabAlignmentInset + kTrafficLightsWidth;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
@@ -744,9 +744,6 @@ SaveAndShareSubMenuModel::SaveAndShareSu
|
||||
@@ -730,9 +730,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);
|
||||
@@ -884,23 +881,8 @@ void ToolsMenuModel::Build(Browser* brow
|
||||
@@ -870,23 +867,8 @@ void ToolsMenuModel::Build(Browser* brow
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_NAME_WINDOW, IDS_NAME_WINDOW,
|
||||
kNameWindowIcon);
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
- kReadingModeMenuItem);
|
||||
-
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
if (!features::IsExtensionMenuInRootAppMenu()) {
|
||||
AddItemWithStringId(IDC_MANAGE_EXTENSIONS, IDS_SHOW_EXTENSIONS);
|
||||
@@ -1786,32 +1768,6 @@ void AppMenuModel::Build() {
|
||||
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_PERFORMANCE, IDS_SHOW_PERFORMANCE,
|
||||
@@ -1774,32 +1756,6 @@ void AppMenuModel::Build() {
|
||||
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
if (!browser_->profile()->IsOffTheRecord()) {
|
||||
auto recent_tabs_sub_menu =
|
||||
std::make_unique<RecentTabsSubMenuModel>(provider_, browser_);
|
||||
@@ -1833,7 +1789,7 @@ void AppMenuModel::Build() {
|
||||
@@ -1821,7 +1777,7 @@ void AppMenuModel::Build() {
|
||||
std::make_unique<BookmarkSubMenuModel>(this, browser_);
|
||||
|
||||
AddSubMenuWithStringIdAndVectorIcon(
|
||||
@@ -76,12 +76,19 @@
|
||||
bookmark_sub_menu_model_.get(), kBookmarksListsMenuIcon);
|
||||
SetElementIdentifierAt(GetIndexOfCommandId(IDC_BOOKMARKS_MENU).value(),
|
||||
kBookmarksMenuItem);
|
||||
@@ -1850,15 +1806,11 @@ void AppMenuModel::Build() {
|
||||
@@ -1838,22 +1794,10 @@ void AppMenuModel::Build() {
|
||||
kTabGroupsMenuItem);
|
||||
}
|
||||
|
||||
- if (features::IsExtensionMenuInRootAppMenu()) {
|
||||
- // Extensions sub menu.
|
||||
- // Extensions sub menu.
|
||||
- if (base::FeatureList::IsEnabled(features::kExtensionsCollapseMainMenu) &&
|
||||
- !extensions::ui_util::HasManageableExtensions(browser_->profile())) {
|
||||
- AddItemWithStringIdAndVectorIcon(this, IDC_FIND_EXTENSIONS,
|
||||
- IDS_FIND_EXTENSIONS,
|
||||
- vector_icons::kExtensionChromeRefreshIcon);
|
||||
- SetElementIdentifierAt(GetIndexOfCommandId(IDC_FIND_EXTENSIONS).value(),
|
||||
- ExtensionsMenuModel::kVisitChromeWebStoreMenuItem);
|
||||
- } else {
|
||||
- sub_menus_.push_back(std::make_unique<ExtensionsMenuModel>(this, browser_));
|
||||
- AddSubMenuWithStringIdAndVectorIcon(
|
||||
- this, IDC_EXTENSIONS_SUBMENU, IDS_EXTENSIONS_SUBMENU,
|
||||
@@ -93,11 +100,10 @@
|
||||
+ this, IDC_EXTENSIONS_SUBMENU_MANAGE_EXTENSIONS,
|
||||
+ IDS_EXTENSIONS_SUBMENU,
|
||||
+ vector_icons::kExtensionChromeRefreshIcon);
|
||||
+
|
||||
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_CLEAR_BROWSING_DATA,
|
||||
IDS_CLEAR_BROWSING_DATA,
|
||||
kTrashCanRefreshIcon);
|
||||
@@ -1898,9 +1850,6 @@ void AppMenuModel::Build() {
|
||||
@@ -1897,9 +1841,6 @@ void AppMenuModel::Build() {
|
||||
lens::features::kLensOverlay));
|
||||
}
|
||||
|
||||
@@ -107,7 +113,7 @@
|
||||
CreateFindAndEditSubMenu();
|
||||
|
||||
sub_menus_.push_back(
|
||||
@@ -1949,6 +1898,12 @@ void AppMenuModel::Build() {
|
||||
@@ -1948,6 +1889,12 @@ void AppMenuModel::Build() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -120,7 +126,7 @@
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_OPTIONS, IDS_SETTINGS,
|
||||
kSettingsMenuIcon);
|
||||
|
||||
@@ -2048,6 +2003,7 @@ bool AppMenuModel::AddDefaultBrowserMenu
|
||||
@@ -2047,6 +1994,7 @@ bool AppMenuModel::AddDefaultBrowserMenu
|
||||
}
|
||||
|
||||
bool AppMenuModel::AddSafetyHubMenuItem() {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
}
|
||||
const auto* const color_provider = view->GetColorProvider();
|
||||
cc::PaintFlags flags;
|
||||
@@ -1424,7 +1424,7 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1430,7 +1430,7 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
// Helper method that adds a background to a menu item.
|
||||
auto add_menu_row_background = [item](int vertical_margin,
|
||||
ui::ColorId background_color_id) {
|
||||
@@ -18,7 +18,7 @@
|
||||
item->set_vertical_margin(vertical_margin);
|
||||
item->SetMenuItemBackground(MenuItemView::MenuItemBackground(
|
||||
background_color_id, kBackgroundCornerRadius));
|
||||
@@ -1471,7 +1471,7 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1477,7 +1477,7 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
case IDC_SET_BROWSER_AS_DEFAULT: {
|
||||
// Only highlight the default browser item when it is first in the
|
||||
// AppMenu.
|
||||
|
||||
@@ -32,15 +32,15 @@
|
||||
"//printing/buildflags",
|
||||
--- a/components/omnibox/browser/autocomplete_controller.h
|
||||
+++ b/components/omnibox/browser/autocomplete_controller.h
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "components/omnibox/browser/omnibox_log.h"
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "components/omnibox/browser/open_tab_provider.h"
|
||||
#include "components/omnibox/browser/tab_group_provider.h"
|
||||
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
|
||||
+#include "components/search_engines/template_url_bang_manager.h"
|
||||
#include "third_party/omnibox_proto/types.pb.h"
|
||||
|
||||
class ClipboardProvider;
|
||||
@@ -529,6 +530,8 @@ class AutocompleteController : public Au
|
||||
@@ -538,6 +539,8 @@ class AutocompleteController : public Au
|
||||
// A list of all providers.
|
||||
Providers providers_;
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
raw_ptr<HistoryQuickProvider> history_quick_provider_;
|
||||
--- a/components/omnibox/browser/autocomplete_controller.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_controller.cc
|
||||
@@ -87,6 +87,7 @@
|
||||
@@ -89,6 +89,7 @@
|
||||
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
|
||||
#include "components/search_engines/search_engine_type.h"
|
||||
#include "components/search_engines/template_url.h"
|
||||
@@ -59,11 +59,11 @@
|
||||
#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"
|
||||
@@ -1766,7 +1767,21 @@ void AutocompleteController::UpdateKeywo
|
||||
// name -- don't assume that the normal search keyword description
|
||||
// is applicable.
|
||||
@@ -1803,7 +1804,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();
|
||||
- if (template_url->type() != TemplateURL::OMNIBOX_API_EXTENSION) {
|
||||
- if (is_contextual) {
|
||||
+ if (template_url->bang_id() > 0) {
|
||||
+ int description_template = -1;
|
||||
+
|
||||
@@ -78,10 +78,10 @@
|
||||
+
|
||||
+ i->description = l10n_util::GetStringFUTF16(
|
||||
+ description_template, i->description);
|
||||
+ } else if (template_url->type() != TemplateURL::OMNIBOX_API_EXTENSION) {
|
||||
i->description = l10n_util::GetStringFUTF16(
|
||||
IDS_AUTOCOMPLETE_SEARCH_DESCRIPTION, i->description);
|
||||
}
|
||||
+ } else if (is_contextual) {
|
||||
i->description = l10n_util::GetStringUTF16(
|
||||
IDS_AUTOCOMPLETE_SEARCH_IN_SIDE_PANEL_DESCRIPTION);
|
||||
} else if (template_url->type() !=
|
||||
--- a/components/omnibox/browser/keyword_provider.h
|
||||
+++ b/components/omnibox/browser/keyword_provider.h
|
||||
@@ -22,6 +22,7 @@
|
||||
@@ -188,7 +188,7 @@
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
#include "components/vector_icons/vector_icons.h"
|
||||
#include "third_party/metrics_proto/omnibox_event.pb.h"
|
||||
@@ -345,6 +346,27 @@ void OmniboxSuggestionButtonRowView::Upd
|
||||
@@ -361,6 +362,27 @@ void OmniboxSuggestionButtonRowView::Upd
|
||||
const auto names = SelectedKeywordView::GetKeywordLabelNames(
|
||||
keyword,
|
||||
popup_view_->controller()->client()->GetTemplateURLService());
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
:host([modules-shown-to-user]) .customize-text {
|
||||
--- a/chrome/browser/resources/new_tab_page/app.html
|
||||
+++ b/chrome/browser/resources/new_tab_page/app.html
|
||||
@@ -1,95 +1,19 @@
|
||||
@@ -1,106 +1,16 @@
|
||||
<div id="content">
|
||||
- ${this.lazyRender_ && this.microsoftModuleEnabled_ ? html`
|
||||
- <iframe id="microsoftAuth" src="${this.microsoftAuthIframePath_}"></iframe>
|
||||
@@ -103,9 +103,20 @@
|
||||
- </ntp-modules-v2>
|
||||
- `}
|
||||
- ` : ''}
|
||||
<ntp-footer .theme="${this.theme_}"></ntp-footer>
|
||||
<!-- TODO(crbug.com/394906782): Move customize buttons and
|
||||
theme attribution into the ntp footer. -->
|
||||
- <a id="backgroundImageAttribution"
|
||||
- href="${this.backgroundImageAttributionUrl_}"
|
||||
- ?hidden="${!this.backgroundImageAttribution1_}">
|
||||
- <div id="backgroundImageAttribution1Container">
|
||||
- <div id="linkIcon" ?hidden="${!this.backgroundImageAttributionUrl_}"></div>
|
||||
- <div id="backgroundImageAttribution1">
|
||||
- ${this.backgroundImageAttribution1_}
|
||||
- </div>
|
||||
- </div>
|
||||
- <div id="backgroundImageAttribution2"
|
||||
- ?hidden="${!this.backgroundImageAttribution2_}">
|
||||
- ${this.backgroundImageAttribution2_}
|
||||
- </div>
|
||||
- </a>
|
||||
<div id="customizeButtons">
|
||||
- ${this.showWallpaperSearchButton_ ? html`
|
||||
- <cr-button id="wallpaperSearchButton"
|
||||
@@ -132,7 +143,7 @@
|
||||
</cr-button>
|
||||
</div>
|
||||
${this.showThemeAttribution_() ? html`
|
||||
@@ -101,19 +25,3 @@
|
||||
@@ -112,19 +22,3 @@
|
||||
` : ''}
|
||||
<div id="contentBottomSpacer"></div>
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
@@ -754,6 +754,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
|
||||
@@ -747,6 +747,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
|
||||
}
|
||||
|
||||
bool TabGroupEditorBubbleView::ShouldShowSavedFooter() const {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/side_panel/customize_chrome/app.ts
|
||||
+++ b/chrome/browser/resources/side_panel/customize_chrome/app.ts
|
||||
@@ -138,24 +138,6 @@ export class AppElement extends AppEleme
|
||||
@@ -139,24 +139,6 @@ export class AppElement extends AppEleme
|
||||
element.scrollIntoView({behavior: 'auto'});
|
||||
});
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
this.pageHandler_.updateAttachedTabState();
|
||||
|
||||
this.setThemeEditableId_ = CustomizeChromeApiProxy.getInstance()
|
||||
@@ -290,10 +272,6 @@ export class AppElement extends AppEleme
|
||||
@@ -291,10 +273,6 @@ export class AppElement extends AppEleme
|
||||
await this.updateComplete;
|
||||
page.focusOnBackButton();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/omnibox/browser/autocomplete_match.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_match.cc
|
||||
@@ -63,6 +63,7 @@
|
||||
@@ -64,6 +64,7 @@
|
||||
#include "components/omnibox/browser/suggestion_answer.h"
|
||||
#include "components/omnibox/browser/vector_icons.h" // nogncheck
|
||||
#include "components/vector_icons/vector_icons.h" // nogncheck
|
||||
@@ -8,7 +8,7 @@
|
||||
#endif
|
||||
|
||||
constexpr bool kIsDesktop = !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS);
|
||||
@@ -643,7 +644,7 @@ const gfx::VectorIcon& AutocompleteMatch
|
||||
@@ -650,7 +651,7 @@ const gfx::VectorIcon& AutocompleteMatch
|
||||
case KEYWORD_MODE_STARTER_PACK_HISTORY:
|
||||
return vector_icons::kHistoryChromeRefreshIcon;
|
||||
case KEYWORD_MODE_STARTER_PACK_TABS:
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
SetProperty(views::kElementIdentifierKey, kToastElementId);
|
||||
set_close_on_deactivate(false);
|
||||
SetProperty(views::kElementIdentifierKey, kToastViewId);
|
||||
@@ -328,7 +326,7 @@ void ToastView::AnimateIn() {
|
||||
@@ -329,7 +327,7 @@ void ToastView::AnimateIn() {
|
||||
|
||||
target_widget_bounds_ = GetWidget()->GetWindowBoundsInScreen();
|
||||
starting_widget_bounds_ =
|
||||
@@ -31,7 +31,7 @@
|
||||
height_animation_tween_ = gfx::Tween::ACCEL_5_70_DECEL_90;
|
||||
height_animation_.SetDuration(base::Milliseconds(kAnimationEntryDuration));
|
||||
height_animation_.Start();
|
||||
@@ -410,13 +408,11 @@ gfx::Rect ToastView::GetBubbleBounds() {
|
||||
@@ -411,13 +409,11 @@ gfx::Rect ToastView::GetBubbleBounds() {
|
||||
const int width =
|
||||
std::min(preferred_size.width(),
|
||||
std::max(anchor_bounds.width() - 2 * minimum_margin, 0));
|
||||
@@ -47,7 +47,7 @@
|
||||
return gfx::Rect(x, y, width, preferred_size.height());
|
||||
}
|
||||
|
||||
@@ -448,7 +444,7 @@ void ToastView::AnimateOut(base::OnceClo
|
||||
@@ -449,7 +445,7 @@ void ToastView::AnimateOut(base::OnceClo
|
||||
if (show_height_animation) {
|
||||
starting_widget_bounds_ = GetWidget()->GetWindowBoundsInScreen();
|
||||
target_widget_bounds_ =
|
||||
@@ -58,7 +58,7 @@
|
||||
height_animation_.Start();
|
||||
--- a/chrome/browser/ui/views/chrome_layout_provider.cc
|
||||
+++ b/chrome/browser/ui/views/chrome_layout_provider.cc
|
||||
@@ -186,7 +186,7 @@ int ChromeLayoutProvider::GetDistanceMet
|
||||
@@ -182,7 +182,7 @@ int ChromeLayoutProvider::GetDistanceMet
|
||||
case DISTANCE_TOAST_BUBBLE_BETWEEN_LABEL_MENU_BUTTON_SPACING:
|
||||
return 16;
|
||||
case DISTANCE_TOAST_BUBBLE_HEIGHT:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
|
||||
@@ -48,7 +48,7 @@ constexpr int kIconLabelBubbleSeparatorW
|
||||
@@ -49,7 +49,7 @@ constexpr int kIconLabelBubbleSeparatorW
|
||||
|
||||
// Amount of space on either side of the separator that appears after the icon
|
||||
// or label.
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
// The length of the separator's fade animation. These values are empirical.
|
||||
constexpr int kIconLabelBubbleFadeInDurationMs = 250;
|
||||
@@ -84,9 +84,7 @@ void IconLabelBubbleView::SeparatorView:
|
||||
@@ -85,9 +85,7 @@ void IconLabelBubbleView::SeparatorView:
|
||||
const SkColor separator_color = SkColorSetA(
|
||||
owner_->delegate_->GetIconLabelBubbleSurroundingForegroundColor(),
|
||||
owner_->delegate_->GetIconLabelBubbleSeparatorAlpha());
|
||||
@@ -20,32 +20,30 @@
|
||||
canvas->DrawLine(gfx::PointF(x, GetLocalBounds().y()),
|
||||
gfx::PointF(x, GetLocalBounds().bottom()), separator_color);
|
||||
}
|
||||
@@ -239,8 +237,7 @@ void IconLabelBubbleView::Layout(PassKey
|
||||
@@ -278,8 +276,7 @@ views::ProposedLayout IconLabelBubbleVie
|
||||
// value to be, since it won't be visible.
|
||||
const int label_x =
|
||||
image_container_view()->bounds().right() + GetInternalSpacing();
|
||||
- int label_width = std::max(0, width() - label_x - bubble_trailing_padding -
|
||||
- GetWidthBetweenIconAndSeparator());
|
||||
+ int label_width = std::max(0, width() - label_x - bubble_trailing_padding);
|
||||
label()->SetBounds(label_x, 0, label_width, height());
|
||||
|
||||
// The separator should be the same height as the icons.
|
||||
@@ -249,11 +246,10 @@ void IconLabelBubbleView::Layout(PassKey
|
||||
const int label_x = image_bounds_with_label.right() + GetInternalSpacing();
|
||||
const int available_label_width =
|
||||
- std::max(0, layout.host_size.width() - label_x - bubble_trailing_padding -
|
||||
- GetWidthBetweenIconAndSeparator());
|
||||
+ std::max(0, layout.host_size.width() - label_x - bubble_trailing_padding);
|
||||
gfx::Rect label_bounds(label_x, 0, available_label_width, height);
|
||||
layout.child_layouts.emplace_back(
|
||||
label(),
|
||||
@@ -302,10 +299,9 @@ views::ProposedLayout IconLabelBubbleVie
|
||||
gfx::Rect separator_bounds(label_bounds);
|
||||
separator_bounds.Inset(
|
||||
gfx::Insets::VH((separator_bounds.height() - separator_height) / 2, 0));
|
||||
|
||||
- float separator_width =
|
||||
- GetWidthBetweenIconAndSeparator() + GetEndPaddingWithSeparator();
|
||||
- int separator_x = label()->GetText().empty()
|
||||
+ float separator_width = 2;
|
||||
+ int separator_x = (label()->GetText().empty()
|
||||
? image_container_view()->bounds().right()
|
||||
- : label()->bounds().right();
|
||||
+ : label()->bounds().right()) + 2;
|
||||
separator_view_->SetBounds(separator_x, separator_bounds.y(), separator_width,
|
||||
separator_height);
|
||||
int separator_x =
|
||||
- label()->GetText().empty() ? image_bounds.right() : label_bounds.right();
|
||||
+ (label()->GetText().empty() ? image_bounds.right() : label_bounds.right()) + 2;
|
||||
|
||||
@@ -552,7 +548,9 @@ gfx::RoundedCornersF IconLabelBubbleView
|
||||
layout.child_layouts.emplace_back(
|
||||
const_cast<views::View*>(this->separator_view()), ShouldShowSeparator(),
|
||||
@@ -617,7 +613,9 @@ gfx::RoundedCornersF IconLabelBubbleView
|
||||
if (radii_.has_value()) {
|
||||
return radii_.value();
|
||||
}
|
||||
@@ -56,7 +54,7 @@
|
||||
}
|
||||
|
||||
void IconLabelBubbleView::SetCornerRadii(const gfx::RoundedCornersF& radii) {
|
||||
@@ -599,7 +597,7 @@ int IconLabelBubbleView::GetInternalSpac
|
||||
@@ -665,7 +663,7 @@ int IconLabelBubbleView::GetInternalSpac
|
||||
}
|
||||
|
||||
constexpr int kDefaultInternalSpacingTouchUI = 10;
|
||||
@@ -65,7 +63,7 @@
|
||||
|
||||
return (ui::TouchUiController::Get()->touch_ui()
|
||||
? kDefaultInternalSpacingTouchUI
|
||||
@@ -750,6 +748,10 @@ SkPath IconLabelBubbleView::GetHighlight
|
||||
@@ -816,6 +814,10 @@ SkPath IconLabelBubbleView::GetHighlight
|
||||
SkIntToScalar(radii.lower_right()), SkIntToScalar(radii.lower_right()),
|
||||
SkIntToScalar(radii.lower_left()), SkIntToScalar(radii.lower_left())};
|
||||
|
||||
@@ -78,7 +76,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
||||
@@ -215,7 +215,10 @@ LocationBarView::LocationBarView(Browser
|
||||
@@ -216,7 +216,10 @@ LocationBarView::LocationBarView(Browser
|
||||
!v->GetOmniboxPopupView()->IsOpen();
|
||||
}));
|
||||
views::FocusRing::Get(this)->SetOutsetFocusRingDisabled(true);
|
||||
@@ -90,7 +88,7 @@
|
||||
|
||||
#if BUILDFLAG(OS_LEVEL_GEOLOCATION_PERMISSION_SUPPORTED)
|
||||
if (features::IsOsLevelGeolocationPermissionSupportEnabled()) {
|
||||
@@ -264,9 +267,9 @@ void LocationBarView::Init() {
|
||||
@@ -265,9 +268,9 @@ void LocationBarView::Init() {
|
||||
CONTEXT_OMNIBOX_PRIMARY, views::style::STYLE_PRIMARY);
|
||||
|
||||
const gfx::FontList& omnibox_chip_font_list = typography_provider.GetFont(
|
||||
@@ -102,7 +100,7 @@
|
||||
|
||||
auto location_icon_view =
|
||||
std::make_unique<LocationIconView>(omnibox_chip_font_list, this, this);
|
||||
@@ -478,7 +481,7 @@ bool LocationBarView::IsInitialized() co
|
||||
@@ -477,7 +480,7 @@ bool LocationBarView::IsInitialized() co
|
||||
|
||||
int LocationBarView::GetBorderRadius() const {
|
||||
return ChromeLayoutProvider::Get()->GetCornerRadiusMetric(
|
||||
@@ -111,7 +109,7 @@
|
||||
}
|
||||
|
||||
std::unique_ptr<views::Background> LocationBarView::CreateRoundRectBackground(
|
||||
@@ -722,15 +725,15 @@ void LocationBarView::Layout(PassKey) {
|
||||
@@ -721,15 +724,15 @@ void LocationBarView::Layout(PassKey) {
|
||||
// The padding between the left edges of the location bar and the LHS icon
|
||||
// (e.g. the page info icon, the google G icon, the selected suggestion icon,
|
||||
// etc)
|
||||
@@ -133,7 +131,7 @@
|
||||
// Indentation add padding when the permission chip is visible and replacing
|
||||
// the LHS icon.
|
||||
int text_overriding_permission_chip_indent = 0;
|
||||
@@ -1198,7 +1201,7 @@ int LocationBarView::GetMinimumTrailingW
|
||||
@@ -1197,7 +1200,7 @@ int LocationBarView::GetMinimumTrailingW
|
||||
}
|
||||
|
||||
gfx::Rect LocationBarView::GetLocalBoundsWithoutEndcaps() const {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/ui/views/layout/layout_provider.cc
|
||||
+++ b/ui/views/layout/layout_provider.cc
|
||||
@@ -86,7 +86,7 @@ int LayoutProvider::GetDistanceMetric(in
|
||||
@@ -88,7 +88,7 @@ int LayoutProvider::GetDistanceMetric(in
|
||||
case DISTANCE_BUBBLE_PREFERRED_WIDTH:
|
||||
return kSmallDialogWidth;
|
||||
case DISTANCE_BUTTON_HORIZONTAL_PADDING:
|
||||
@@ -9,7 +9,7 @@
|
||||
case DISTANCE_BUTTON_MAX_LINKABLE_WIDTH:
|
||||
return 112;
|
||||
case DISTANCE_CLOSE_BUTTON_MARGIN:
|
||||
@@ -201,19 +201,19 @@ ShapeSysTokens GetShapeSysToken(ShapeCon
|
||||
@@ -205,19 +205,19 @@ ShapeSysTokens GetShapeSysToken(ShapeCon
|
||||
static constexpr auto shape_token_map =
|
||||
base::MakeFixedFlatMap<ShapeContextTokens, ShapeSysTokens>({
|
||||
{ShapeContextTokens::kBadgeRadius, ShapeSysTokens::kXSmall},
|
||||
@@ -35,7 +35,7 @@
|
||||
{ShapeContextTokens::kSidePanelPageContentRadius,
|
||||
ShapeSysTokens::kSmall},
|
||||
});
|
||||
@@ -229,6 +229,8 @@ int LayoutProvider::GetCornerRadiusMetri
|
||||
@@ -233,6 +233,8 @@ int LayoutProvider::GetCornerRadiusMetri
|
||||
switch (token) {
|
||||
case ShapeSysTokens::kXSmall:
|
||||
return 4;
|
||||
@@ -46,7 +46,7 @@
|
||||
case ShapeSysTokens::kMediumSmall:
|
||||
--- a/ui/views/layout/layout_provider.h
|
||||
+++ b/ui/views/layout/layout_provider.h
|
||||
@@ -183,6 +183,7 @@ enum class ShapeSysTokens {
|
||||
@@ -188,6 +188,7 @@ enum class ShapeSysTokens {
|
||||
// mapping.
|
||||
kDefault,
|
||||
kXSmall,
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
BEGIN_METADATA(OmniboxRowView)
|
||||
--- a/chrome/browser/ui/views/omnibox/omnibox_match_cell_view.cc
|
||||
+++ b/chrome/browser/ui/views/omnibox/omnibox_match_cell_view.cc
|
||||
@@ -369,8 +369,7 @@ void OmniboxMatchCellView::SetIcon(const
|
||||
@@ -366,8 +366,7 @@ void OmniboxMatchCellView::SetIcon(const
|
||||
match.type == AutocompleteMatchType::HISTORY_CLUSTER;
|
||||
const bool is_instant_keyword_row =
|
||||
AutocompleteMatch::IsFeaturedSearchType(match.type);
|
||||
@@ -118,7 +118,7 @@
|
||||
// When a PEDAL suggestion has been split out to its own row, apply a square
|
||||
// background with a distinctive color to the respective icon. Journeys
|
||||
// suggestion rows should also receive the same treatment.
|
||||
@@ -588,7 +587,7 @@ int OmniboxMatchCellView::GetImageIndent
|
||||
@@ -585,7 +584,7 @@ int OmniboxMatchCellView::GetImageIndent
|
||||
// align with any other UI; it's just arbitrarily chosen by UX. Hence, it's
|
||||
// not derived from other matches' `indent` below.
|
||||
if (layout_style_ == LayoutStyle::IPH_SUGGESTION) {
|
||||
@@ -127,7 +127,7 @@
|
||||
}
|
||||
|
||||
// The entity, answer, and icon images are horizontally centered within their
|
||||
@@ -599,12 +598,13 @@ int OmniboxMatchCellView::GetImageIndent
|
||||
@@ -596,12 +595,13 @@ int OmniboxMatchCellView::GetImageIndent
|
||||
// b) Entities, answers, and icons continue to be center-aligned.
|
||||
// c) Regardless of the state of those other features and their widths.
|
||||
// This applies to both touch-UI and non-touch-UI.
|
||||
@@ -155,7 +155,7 @@
|
||||
// smaller than this bounds; they'll be centered within the bounds.
|
||||
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_view_views.cc
|
||||
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_view_views.cc
|
||||
@@ -572,7 +572,7 @@ gfx::Rect OmniboxPopupViewViews::GetTarg
|
||||
@@ -573,7 +573,7 @@ gfx::Rect OmniboxPopupViewViews::GetTarg
|
||||
// This extra padding is not added if the results section has no height
|
||||
// (result set is empty or all results are hidden).
|
||||
if (popup_height != 0) {
|
||||
@@ -175,7 +175,7 @@
|
||||
SetCornerRadius(100); // Large number to ensure 100% rounded.
|
||||
|
||||
views::InkDrop::Get(this)->GetInkDrop()->SetShowHighlightOnHover(false);
|
||||
@@ -137,9 +137,8 @@ class OmniboxSuggestionRowButton : publi
|
||||
@@ -139,9 +139,8 @@ class OmniboxSuggestionRowButton : publi
|
||||
ui::EF_MIDDLE_MOUSE_BUTTON);
|
||||
views::InstallPillHighlightPathGenerator(this);
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
SetCornerRadius(GetLayoutConstant(TOOLBAR_CORNER_RADIUS));
|
||||
|
||||
auto* const ink_drop = views::InkDrop::Get(this);
|
||||
@@ -152,6 +151,7 @@ class OmniboxSuggestionRowButton : publi
|
||||
@@ -154,6 +153,7 @@ class OmniboxSuggestionRowButton : publi
|
||||
CHECK(v);
|
||||
return v->GetVisible() && v->popup_view_->GetSelection() == v->selection_;
|
||||
}));
|
||||
@@ -195,7 +195,7 @@
|
||||
focus_ring->SetColorId(kColorOmniboxResultsFocusIndicator);
|
||||
|
||||
GetViewAccessibility().SetRole(ax::mojom::Role::kListBoxOption);
|
||||
@@ -235,7 +235,7 @@ OmniboxSuggestionButtonRowView::OmniboxS
|
||||
@@ -250,7 +250,7 @@ OmniboxSuggestionButtonRowView::OmniboxS
|
||||
OmniboxPopupViewViews* popup_view,
|
||||
int model_index)
|
||||
: popup_view_(popup_view), model_index_(model_index) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<profile-picker-main-view id="mainView" slot="view">
|
||||
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.css
|
||||
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.css
|
||||
@@ -146,11 +146,6 @@ cr-icon[icon='profiles:add'] {
|
||||
@@ -137,11 +137,6 @@ cr-icon[icon='profiles:add'] {
|
||||
--iron-icon-stroke-color: var(--google-grey-700);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#browseAsGuestButton > cr-icon {
|
||||
margin-inline-end: 0;
|
||||
--iron-icon-height: 24px;
|
||||
@@ -161,10 +156,10 @@ cr-checkbox {
|
||||
@@ -152,10 +147,10 @@ cr-checkbox {
|
||||
--cr-checkbox-label-color: var(--cr-secondary-text-color);
|
||||
--cr-checkbox-label-padding-start: 8px;
|
||||
justify-content: flex-end;
|
||||
@@ -40,12 +40,12 @@
|
||||
#button-sign-in {
|
||||
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.html.ts
|
||||
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.html.ts
|
||||
@@ -20,7 +20,7 @@ ${function() {
|
||||
@@ -19,7 +19,7 @@ ${function() {
|
||||
}()}
|
||||
<div class="flex-container">
|
||||
<div class="title-container">
|
||||
<div id="images-container">
|
||||
- <img id="product-logo" @click="${this.onProductLogoClick_}"
|
||||
+ <img id="product-logo"
|
||||
src="product_logo.svg" role="presentation">
|
||||
<img id="glic-logo" ?hidden="${!isGlicVersion()}" role="presentation">
|
||||
</div>
|
||||
- <img id="picker-logo" @click="${this.onProductLogoClick_}"
|
||||
+ <img id="picker-logo"
|
||||
src="picker_logo.svg" role="presentation">
|
||||
<h1 class="title" .innerHTML="${this.getTitle_()}"></h1>
|
||||
<div class="subtitle" .innerHTML="${this.getSubtitle_()}"></div>
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/profiles/profile_menu_view.cc
|
||||
+++ b/chrome/browser/ui/views/profiles/profile_menu_view.cc
|
||||
@@ -186,7 +186,7 @@ void ProfileMenuView::BuildMenu() {
|
||||
BuildIdentity();
|
||||
|
||||
// Users should not be able to open chrome settings from WebApps.
|
||||
- if (!is_web_app) {
|
||||
+ if ((false)) {
|
||||
BuildSyncInfo();
|
||||
BuildAutofillButtons();
|
||||
}
|
||||
@@ -901,6 +901,7 @@ void ProfileMenuView::BuildIdentityWithC
|
||||
@@ -719,6 +719,7 @@ void ProfileMenuView::BuildIdentityWithC
|
||||
}
|
||||
|
||||
void ProfileMenuView::BuildAutofillSettingsButton() {
|
||||
@@ -17,14 +8,11 @@
|
||||
CHECK(!browser()->profile()->IsGuestSession());
|
||||
AddFeatureButton(
|
||||
l10n_util::GetStringUTF16(IDS_PROFILE_MENU_AUTOFILL_SETTINGS_BUTTON),
|
||||
--- a/chrome/browser/ui/views/profiles/profile_menu_view_base.cc
|
||||
+++ b/chrome/browser/ui/views/profiles/profile_menu_view_base.cc
|
||||
@@ -690,8 +690,6 @@ void ProfileMenuViewBase::SetProfileIden
|
||||
BuildProfileBackgroundContainer(
|
||||
std::move(heading_label), profile_background_color,
|
||||
std::move(avatar_image_view), std::move(edit_button), avatar_header_art);
|
||||
- BuildProfileTitleAndSubtitle(browser_, /*parent=*/identity_info_container_,
|
||||
- title, subtitle, management_label);
|
||||
@@ -772,6 +773,7 @@ void ProfileMenuView::MaybeBuildChromeAc
|
||||
}
|
||||
|
||||
void ProfileMenuViewBase::SetProfileIdentityWithCallToAction(
|
||||
void ProfileMenuView::MaybeBuildManageGoogleAccountButton() {
|
||||
+ return;
|
||||
Profile* profile = browser()->profile();
|
||||
CHECK(!profile->IsGuestSession());
|
||||
signin::IdentityManager* identity_manager =
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_actions.cc
|
||||
+++ b/chrome/browser/ui/browser_actions.cc
|
||||
@@ -36,8 +36,6 @@
|
||||
@@ -37,8 +37,6 @@
|
||||
#include "chrome/browser/ui/passwords/passwords_model_delegate.h"
|
||||
#include "chrome/browser/ui/performance_controls/memory_saver_bubble_controller.h"
|
||||
#include "chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.h"
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "chrome/browser/ui/tabs/public/tab_features.h"
|
||||
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_utils.h"
|
||||
#include "chrome/browser/ui/toolbar/cast/cast_toolbar_button_util.h"
|
||||
@@ -48,7 +46,6 @@
|
||||
@@ -50,7 +48,6 @@
|
||||
#include "chrome/browser/ui/views/frame/toolbar_button_provider.h"
|
||||
#include "chrome/browser/ui/views/media_router/cast_browser_controller.h"
|
||||
#include "chrome/browser/ui/views/page_info/page_info_view_factory.h"
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "chrome/browser/ui/views/side_panel/history/history_side_panel_coordinator.h"
|
||||
#include "chrome/browser/ui/views/side_panel/history_clusters/history_clusters_side_panel_utils.h"
|
||||
#include "chrome/browser/ui/views/side_panel/side_panel_action_callback.h"
|
||||
@@ -187,10 +184,6 @@ void BrowserActions::InitializeBrowserAc
|
||||
@@ -189,10 +186,6 @@ void BrowserActions::InitializeBrowserAc
|
||||
SidePanelEntryId::kBookmarks, IDS_BOOKMARK_MANAGER_TITLE,
|
||||
IDS_BOOKMARK_MANAGER_TITLE, kBookmarksSidePanelRefreshIcon,
|
||||
kActionSidePanelShowBookmarks, browser, true),
|
||||
@@ -28,7 +28,7 @@
|
||||
SidePanelAction(SidePanelEntryId::kAboutThisSite,
|
||||
IDS_PAGE_INFO_ABOUT_THIS_PAGE_TITLE,
|
||||
IDS_PAGE_INFO_ABOUT_THIS_PAGE_TITLE,
|
||||
@@ -202,25 +195,11 @@ void BrowserActions::InitializeBrowserAc
|
||||
@@ -204,25 +197,11 @@ void BrowserActions::InitializeBrowserAc
|
||||
IDS_SIDE_PANEL_CUSTOMIZE_CHROME_TITLE,
|
||||
vector_icons::kEditChromeRefreshIcon,
|
||||
kActionSidePanelShowCustomizeChrome, browser,
|
||||
@@ -55,7 +55,7 @@
|
||||
root_action_item_->AddChild(
|
||||
SidePanelAction(SidePanelEntryId::kHistoryClusters, IDS_HISTORY_TITLE,
|
||||
IDS_HISTORY_CLUSTERS_SHOW_SIDE_PANEL,
|
||||
@@ -238,13 +217,7 @@ void BrowserActions::InitializeBrowserAc
|
||||
@@ -240,13 +219,7 @@ void BrowserActions::InitializeBrowserAc
|
||||
.Build());
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
actions::ActionItem::InvokeActionCallback callback = base::BindRepeating(
|
||||
[](base::WeakPtr<Browser> browser, actions::ActionItem* item,
|
||||
actions::ActionInvocationContext context) {
|
||||
@@ -428,43 +401,6 @@ void BrowserActions::InitializeBrowserAc
|
||||
@@ -453,43 +426,6 @@ void BrowserActions::InitializeBrowserAc
|
||||
kDeveloperToolsIcon)
|
||||
.Build());
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
root_action_item_->AddChild(
|
||||
ChromeMenuAction(base::BindRepeating(
|
||||
[](Browser* browser, actions::ActionItem* item,
|
||||
@@ -479,55 +415,6 @@ void BrowserActions::InitializeBrowserAc
|
||||
@@ -504,55 +440,6 @@ void BrowserActions::InitializeBrowserAc
|
||||
!sharing_hub::SharingIsDisabledByPolicy(browser->profile()))
|
||||
.Build());
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
if (IsChromeLabsEnabled() &&
|
||||
!web_app::AppBrowserController::IsWebApp(browser)) {
|
||||
// TODO(354758327): Update `ShouldShowChromeLabsUI()` to not require
|
||||
@@ -570,7 +457,8 @@ void BrowserActions::InitializeBrowserAc
|
||||
@@ -595,7 +482,8 @@ void BrowserActions::InitializeBrowserAc
|
||||
base::Unretained(browser)),
|
||||
kActionShowPasswordsBubbleOrPage, IDS_VIEW_PASSWORDS,
|
||||
IDS_VIEW_PASSWORDS, vector_icons::kPasswordManagerIcon)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/third_party/devtools-frontend/src/front_end/panels/recorder/RecorderController.ts
|
||||
+++ b/third_party/devtools-frontend/src/front_end/panels/recorder/RecorderController.ts
|
||||
@@ -1449,9 +1449,11 @@ export class RecorderController extends
|
||||
@@ -1453,9 +1453,11 @@ export class RecorderController extends
|
||||
}
|
||||
></devtools-button>
|
||||
<div class="feedback">
|
||||
@@ -24,7 +24,7 @@
|
||||
import * as Main from '../main/main.js';
|
||||
--- a/third_party/devtools-frontend/src/front_end/entrypoints/main/MainImpl.ts
|
||||
+++ b/third_party/devtools-frontend/src/front_end/entrypoints/main/MainImpl.ts
|
||||
@@ -959,8 +959,10 @@ export class MainMenuItem implements UI.
|
||||
@@ -967,8 +967,10 @@ export class MainMenuItem implements UI.
|
||||
}, {jslogContext: id});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -267,18 +267,6 @@ void ToolbarView::Init() {
|
||||
@@ -269,18 +269,6 @@ void ToolbarView::Init() {
|
||||
aura::WindowOcclusionTracker::ScopedPause pause_occlusion;
|
||||
#endif
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
auto location_bar = std::make_unique<LocationBarView>(
|
||||
browser_, browser_->profile(), browser_->command_controller(), this,
|
||||
display_mode_ != DisplayMode::NORMAL);
|
||||
@@ -831,13 +819,6 @@ void ToolbarView::Layout(PassKey) {
|
||||
@@ -834,13 +822,6 @@ void ToolbarView::Layout(PassKey) {
|
||||
// The container view should be the exact same size/position as ToolbarView.
|
||||
container_view_->SetSize(size());
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
if (display_mode_ == DisplayMode::CUSTOM_TAB) {
|
||||
custom_tab_bar_->SetBounds(0, 0, width(),
|
||||
custom_tab_bar_->GetPreferredSize().height());
|
||||
@@ -847,7 +828,6 @@ void ToolbarView::Layout(PassKey) {
|
||||
@@ -850,7 +831,6 @@ void ToolbarView::Layout(PassKey) {
|
||||
|
||||
if (display_mode_ == DisplayMode::NORMAL) {
|
||||
LayoutCommon();
|
||||
@@ -41,7 +41,7 @@
|
||||
}
|
||||
|
||||
if (toolbar_controller_) {
|
||||
@@ -885,37 +865,6 @@ void ToolbarView::OnThemeChanged() {
|
||||
@@ -888,37 +868,6 @@ void ToolbarView::OnThemeChanged() {
|
||||
SchedulePaint();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/settings/icons.html
|
||||
+++ b/chrome/browser/resources/settings/icons.html
|
||||
@@ -70,7 +70,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
@@ -73,7 +73,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
<g id="reviews"><path d="M7.6875 11.75L10 10.375L12.3125 11.75L11.6875 9.16667L13.7292 7.41667L11.0417 7.1875L10 4.75L8.95833 7.1875L6.27083 7.41667L8.3125 9.16667L7.6875 11.75ZM2 18V3.5C2 3.08333 2.14583 2.72917 2.4375 2.4375C2.72917 2.14583 3.08333 2 3.5 2H16.5C16.9167 2 17.2708 2.14583 17.5625 2.4375C17.8542 2.72917 18 3.08333 18 3.5V13.5C18 13.9167 17.8542 14.2708 17.5625 14.5625C17.2708 14.8542 16.9167 15 16.5 15H5L2 18ZM4.375 13.5H16.5V3.5H3.5V14.375L4.375 13.5ZM3.5 13.5V3.5V13.5Z"></path></g>
|
||||
<g id="rule-folder" viewBox="0 -960 960 960"><path d="m313-305 198-198-57-57-141 142-57-57-56 57 113 113Zm263 0 64-64 64 64 56-56-64-64 64-64-56-56-64 64-64-64-56 56 64 64-64 64 56 56ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Z"></path></g>
|
||||
<g id="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>
|
||||
@@ -9,7 +9,7 @@
|
||||
<g id="select-window"><path d="M17.5 0.833344H6.66671C5.75004 0.833344 5.00004 1.58334 5.00004 2.50001V7.50001H2.50004C1.58337 7.50001 0.833374 8.25001 0.833374 9.16668V17.5C0.833374 18.4167 1.58337 19.1667 2.50004 19.1667H13.3334C14.25 19.1667 15 18.4167 15 17.5V12.5H17.5C18.4167 12.5 19.1667 11.75 19.1667 10.8333V2.50001C19.1667 1.58334 18.4167 0.833344 17.5 0.833344ZM13.3334 17.5H2.50004V10.8333H13.3334V17.5ZM17.5 10.8333H15V9.16668C15 8.25001 14.25 7.50001 13.3334 7.50001H6.66671V4.16668H17.5V10.8333Z"></path></g>
|
||||
<g id="shoppingcart"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.1585 10.8333H12.8502C13.4502 10.8333 14.0002 10.5083 14.3002 9.99167L17.0335 5.20001C17.2502 4.81667 17.2502 4.33334 17.0335 3.95001C16.8168 3.56667 16.3918 3.33334 15.9502 3.33334H4.61683L3.87516 1.66667H0.833496V3.33334H2.79183L5.74183 9.98334L4.85016 11.7583C4.59183 12.275 4.61683 12.8833 4.92516 13.3833C5.2335 13.8833 5.7585 14.175 6.34183 14.175H15.8335V12.5083H6.35016L7.1835 10.8417H12.1585V10.8333ZM7.50016 16.6667C7.50016 17.5871 6.75397 18.3333 5.8335 18.3333C4.91302 18.3333 4.16683 17.5871 4.16683 16.6667C4.16683 15.7462 4.91302 15 5.8335 15C6.75397 15 7.50016 15.7462 7.50016 16.6667ZM15.8335 16.6667C15.8335 17.5871 15.0873 18.3333 14.1668 18.3333C13.2464 18.3333 12.5002 17.5871 12.5002 16.6667C12.5002 15.7462 13.2464 15 14.1668 15C15.0873 15 15.8335 15.7462 15.8335 16.6667ZM12.8502 9.16667L15.2335 5.00001H5.3585L7.2085 9.16667H12.8502Z"></path></g>
|
||||
<g id="spam"><path d="M15.0714 6.66667V3.5H16.5V7.38889H15.0714V6.66667ZM15.0714 9.83333H16.5V8.38889H15.0714V9.83333ZM9.71429 10.9444C11.6214 10.9444 15.4286 11.9122 15.4286 13.8333V16H4V13.8333C4 11.9122 7.80714 10.9444 9.71429 10.9444ZM9.71429 4.44444C10.472 4.44444 11.1988 4.74881 11.7346 5.29058C12.2704 5.83235 12.5714 6.56715 12.5714 7.33333C12.5714 8.09951 12.2704 8.83431 11.7346 9.37609C11.1988 9.91786 10.472 10.2222 9.71429 10.2222C8.95652 10.2222 8.2298 9.91786 7.69398 9.37609C7.15816 8.83431 6.85714 8.09951 6.85714 7.33333C6.85714 6.56715 7.15816 5.83235 7.69398 5.29058C8.2298 4.74881 8.95652 4.44444 9.71429 4.44444ZM9.71429 12.3167C7.59286 12.3167 5.35714 13.3711 5.35714 13.8333V14.6278H14.0714V13.8333C14.0714 13.3711 11.8357 12.3167 9.71429 12.3167ZM9.71429 5.81667C9.31646 5.81667 8.93493 5.97646 8.65363 6.26089C8.37232 6.54532 8.21429 6.93109 8.21429 7.33333C8.21429 7.73558 8.37232 8.12135 8.65363 8.40578C8.93493 8.69021 9.31646 8.85 9.71429 8.85C10.1121 8.85 10.4936 8.69021 10.7749 8.40578C11.0563 8.12135 11.2143 7.73558 11.2143 7.33333C11.2143 6.93109 11.0563 6.54532 10.7749 6.26089C10.4936 5.97646 10.1121 5.81667 9.71429 5.81667Z"></path></g>
|
||||
@@ -181,7 +181,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
@@ -184,7 +184,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
|
||||
<!-- Navigation: Security GM3 icon -->
|
||||
<g id="security" viewBox="0 -960 960 960">
|
||||
|
||||
@@ -1,24 +1,13 @@
|
||||
--- a/chrome/browser/ui/views/tabs/tab_strip_control_button.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_strip_control_button.cc
|
||||
@@ -235,12 +235,18 @@ void TabStripControlButton::UpdateBackgr
|
||||
@@ -234,6 +234,7 @@ void TabStripControlButton::UpdateBackgr
|
||||
}
|
||||
|
||||
int TabStripControlButton::GetCornerRadius() const {
|
||||
+ if ((true))
|
||||
+ return 8;
|
||||
+
|
||||
+ if ((true)) return 8;
|
||||
return features::IsTabSearchMoving() && !features::HasTabSearchToolbarButton()
|
||||
? kTabstripComboButtonCornerRadius
|
||||
: TabStripControlButton::kButtonSize.width() / 2;
|
||||
}
|
||||
|
||||
int TabStripControlButton::GetFlatCornerRadius() const {
|
||||
+ if ((true))
|
||||
+ return 0;
|
||||
+
|
||||
return features::IsTabSearchMoving() && !features::HasTabSearchToolbarButton()
|
||||
? kTabstripComboButtonFlatCornerRadius
|
||||
: 0;
|
||||
--- a/chrome/browser/ui/views/tabs/tab_search_button.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_search_button.cc
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
@@ -15,21 +15,21 @@
|
||||
+constexpr int kChromeRefreshTabVerticalPadding = 7;
|
||||
constexpr int kChromeRefreshTabHorizontalPadding = 8;
|
||||
|
||||
class ChromeRefresh2023TabStyle : public TabStyle {
|
||||
@@ -110,11 +110,11 @@ int ChromeRefresh2023TabStyle::GetMinimu
|
||||
// The standard tab width is 232 DIP, excluding separators and overlap.
|
||||
@@ -97,11 +97,11 @@ int TabStyle::GetMinimumInactiveWidth()
|
||||
}
|
||||
|
||||
int ChromeRefresh2023TabStyle::GetTopCornerRadius() const {
|
||||
int TabStyle::GetTopCornerRadius() const {
|
||||
- return 10;
|
||||
+ return 8;
|
||||
}
|
||||
|
||||
int ChromeRefresh2023TabStyle::GetBottomCornerRadius() const {
|
||||
int TabStyle::GetBottomCornerRadius() const {
|
||||
- return 12;
|
||||
+ return 8;
|
||||
}
|
||||
|
||||
int ChromeRefresh2023TabStyle::GetTabOverlap() const {
|
||||
int TabStyle::GetTabOverlap() const {
|
||||
--- a/chrome/browser/ui/views/tabs/tab_group_highlight.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_group_highlight.cc
|
||||
@@ -47,33 +47,7 @@ void TabGroupHighlight::OnPaint(gfx::Can
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/views/tabs/tab_style_views.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_style_views.cc
|
||||
@@ -201,8 +201,6 @@ SkPath TabStyleViewsImpl::GetPath(TabSty
|
||||
@@ -202,8 +202,6 @@ SkPath TabStyleViewsImpl::GetPath(TabSty
|
||||
CHECK(tab());
|
||||
const int stroke_thickness = GetStrokeThickness(force_active);
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
// We'll do the entire path calculation in aligned pixels.
|
||||
// TODO(dfried): determine if we actually want to use `stroke_thickness` as
|
||||
// the inset in this case.
|
||||
@@ -216,11 +214,7 @@ SkPath TabStyleViewsImpl::GetPath(TabSty
|
||||
@@ -217,11 +215,7 @@ SkPath TabStyleViewsImpl::GetPath(TabSty
|
||||
float extension_corner_radius = tab_style()->GetBottomCornerRadius() * scale;
|
||||
|
||||
// Selected, hover, and inactive tab fills are a detached squarcle tab.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/chrome_layout_provider.cc
|
||||
+++ b/chrome/browser/ui/views/chrome_layout_provider.cc
|
||||
@@ -164,7 +164,7 @@ int ChromeLayoutProvider::GetDistanceMet
|
||||
@@ -160,7 +160,7 @@ int ChromeLayoutProvider::GetDistanceMet
|
||||
case DISTANCE_INFOBAR_HEIGHT:
|
||||
// Spec says height of button should be 36dp, vertical padding on both
|
||||
// top and bottom should be 8dp.
|
||||
|
||||
@@ -73,7 +73,6 @@ extra/ungoogled-chromium/remove-uneeded-ui.patch
|
||||
extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch
|
||||
extra/ungoogled-chromium/add-flag-to-convert-popups-to-tabs.patch
|
||||
extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch
|
||||
|
||||
extra/ungoogled-chromium/prepopulated-search-engines.patch
|
||||
extra/ungoogled-chromium/fix-distilled-icons.patch
|
||||
extra/ungoogled-chromium/add-flag-to-clear-data-on-exit.patch
|
||||
@@ -96,7 +95,6 @@ extra/ungoogled-chromium/add-flag-for-incognito-themes.patch
|
||||
extra/ungoogled-chromium/add-flags-for-referrer-customization.patch
|
||||
extra/ungoogled-chromium/default-webrtc-ip-handling-policy.patch
|
||||
extra/ungoogled-chromium/add-flags-for-existing-switches.patch
|
||||
|
||||
extra/ungoogled-chromium/add-flag-to-reduce-system-info.patch
|
||||
extra/ungoogled-chromium/add-flag-to-remove-client-hints.patch
|
||||
extra/ungoogled-chromium/disable-downloads-page-referrer-url.patch
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
1
|
||||
2
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Common code and constants"""
|
||||
import argparse
|
||||
import enum
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""
|
||||
Archive extraction utilities
|
||||
"""
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2023 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""
|
||||
Module for cloning the source tree.
|
||||
"""
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
|
||||
"""
|
||||
Substitute domain names in the source tree with blockable strings.
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""
|
||||
Module for the downloading, checking, and unpacking of necessary files into the source tree.
|
||||
"""
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""
|
||||
Operations with FILES.cfg (for portable packages)
|
||||
"""
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2023 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""
|
||||
Generate standalone script that performs the domain substitution.
|
||||
"""
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Applies unified diff patches"""
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Prune binaries from the source tree"""
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user