mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c27928ab4a | |||
| 3fa437ef53 | |||
| 13d630288f | |||
| d2021bb3ef | |||
| a5b8806ff9 | |||
| 62467f9b12 | |||
| e8355e7d7c | |||
| 15c3d58053 | |||
| e2f0519286 | |||
| 566f20b5ed | |||
| 2fa5711cea | |||
| c653aeb93b | |||
| eb50fd7139 | |||
| be70b704a2 | |||
| 8f98e3eac5 | |||
| 457da2ea74 | |||
| c471f52d54 | |||
| 8d01b7d62f | |||
| 51aaf38e8d | |||
| d35f39cd85 | |||
| e5f27a9138 | |||
| f7e6d2273d | |||
| 8900b76f0b | |||
| 15ee44b5a9 | |||
| 37da72130f |
@@ -1 +1 @@
|
||||
138.0.7204.49
|
||||
138.0.7204.96
|
||||
|
||||
@@ -119,7 +119,6 @@ DOMAIN_EXCLUDE_PREFIXES = [
|
||||
# Exclusion to allow download of sysroots
|
||||
'build/linux/sysroot_scripts/sysroots.json',
|
||||
# Google Web Store extension stuff
|
||||
'tools/search_engine_choice/generate_search_engine_icons.py',
|
||||
'extensions/common/api/_api_features.json',
|
||||
'chrome/common/extensions/api/_api_features.json',
|
||||
'extensions/common/extension_urls.cc',
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/chrome/browser/ui/views/accelerator_table.cc
|
||||
+++ b/chrome/browser/ui/views/accelerator_table.cc
|
||||
@@ -132,7 +132,6 @@ const AcceleratorMapping kAcceleratorMap
|
||||
{ui::VKEY_OEM_PLUS, ui::EF_PLATFORM_ACCELERATOR, IDC_ZOOM_PLUS},
|
||||
{ui::VKEY_ADD, ui::EF_PLATFORM_ACCELERATOR, IDC_ZOOM_PLUS},
|
||||
|
||||
- {ui::VKEY_F1, ui::EF_NONE, IDC_HELP_PAGE_VIA_KEYBOARD},
|
||||
{ui::VKEY_F3, ui::EF_NONE, IDC_FIND_NEXT},
|
||||
{ui::VKEY_F3, ui::EF_SHIFT_DOWN, IDC_FIND_PREVIOUS},
|
||||
{ui::VKEY_F4, ui::EF_CONTROL_DOWN, IDC_CLOSE_TAB},
|
||||
@@ -39,21 +39,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#include "base/values.h"
|
||||
+#include "chrome/common/importer/chrome_importer_utils.h"
|
||||
+#include "chrome/common/importer/importer_constants.h"
|
||||
+#include "chrome/common/importer/importer_type.h"
|
||||
+#include "components/user_data_importer/common/importer_type.h"
|
||||
+#include "chrome/grit/generated_resources.h"
|
||||
+#include "ui/base/l10n/l10n_util.h"
|
||||
+
|
||||
+namespace {
|
||||
+void AddChromeToProfiles(std::vector<importer::SourceProfile>* profiles,
|
||||
+void AddChromeToProfiles(std::vector<user_data_importer::SourceProfile>* profiles,
|
||||
+ base::Value::List chrome_profiles,
|
||||
+ const base::FilePath& user_data_folder,
|
||||
+ const std::string& brand,
|
||||
+ importer::ImporterType type) {
|
||||
+ user_data_importer::ImporterType type) {
|
||||
+ for (const auto& value : chrome_profiles) {
|
||||
+ const auto* dict = value.GetIfDict();
|
||||
+ if (!dict)
|
||||
+ continue;
|
||||
+ uint16_t items = importer::NONE;
|
||||
+ uint16_t items = user_data_importer::NONE;
|
||||
+ auto* profile = dict->FindString("id");
|
||||
+ auto* name = dict->FindString("name");
|
||||
+ DCHECK(profile);
|
||||
@@ -66,11 +66,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
|
||||
+ // We can import password from Whale only on macOS.
|
||||
+ // Decryption failed on Windows and Linux.
|
||||
+ if (type == importer::TYPE_WHALE && (items & importer::PASSWORDS)) {
|
||||
+ items ^= importer::PASSWORDS;
|
||||
+ if (type == user_data_importer::TYPE_WHALE && (items & user_data_importer::PASSWORDS)) {
|
||||
+ items ^= user_data_importer::PASSWORDS;
|
||||
+ }
|
||||
+#endif
|
||||
+ importer::SourceProfile chrome;
|
||||
+ user_data_importer::SourceProfile chrome;
|
||||
+ chrome.importer_name = base::UTF8ToUTF16(brand);
|
||||
+ chrome.importer_type = type;
|
||||
+ chrome.source_path = user_data_folder.Append(
|
||||
@@ -81,82 +81,82 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+void DetectChromeProfiles(std::vector<importer::SourceProfile>* profiles) {
|
||||
+void DetectChromeProfiles(std::vector<user_data_importer::SourceProfile>* profiles) {
|
||||
+ base::ScopedBlockingCall scoped_blocking_call(FROM_HERE,
|
||||
+ base::BlockingType::WILL_BLOCK);
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetChromeUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetChromeUserDataFolder(), kGoogleChromeBrowser, importer::TYPE_CHROME);
|
||||
+ GetChromeUserDataFolder(), kGoogleChromeBrowser, user_data_importer::TYPE_CHROME);
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetChromeBetaUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetChromeBetaUserDataFolder(), kGoogleChromeBrowserBeta,
|
||||
+ importer::TYPE_CHROME);
|
||||
+ user_data_importer::TYPE_CHROME);
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetChromeDevUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetChromeDevUserDataFolder(), kGoogleChromeBrowserDev,
|
||||
+ importer::TYPE_CHROME);
|
||||
+ user_data_importer::TYPE_CHROME);
|
||||
+#if !BUILDFLAG(IS_LINUX)
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetCanaryUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetCanaryUserDataFolder(), kGoogleChromeBrowserCanary,
|
||||
+ importer::TYPE_CHROME);
|
||||
+ user_data_importer::TYPE_CHROME);
|
||||
+
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetArcUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetArcUserDataFolder(), kArcBrowser, importer::TYPE_ARC);
|
||||
+ GetArcUserDataFolder(), kArcBrowser, user_data_importer::TYPE_ARC);
|
||||
+#endif
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetChromiumUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetChromiumUserDataFolder(), kChromiumBrowser, importer::TYPE_CHROME);
|
||||
+ GetChromiumUserDataFolder(), kChromiumBrowser, user_data_importer::TYPE_CHROME);
|
||||
+
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetEdgeUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetEdgeUserDataFolder(), kMicrosoftEdgeBrowser,
|
||||
+ importer::TYPE_EDGE_CHROMIUM);
|
||||
+ user_data_importer::TYPE_EDGE_CHROMIUM);
|
||||
+
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetVivaldiUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetVivaldiUserDataFolder(), kVivaldiBrowser, importer::TYPE_VIVALDI);
|
||||
+ GetVivaldiUserDataFolder(), kVivaldiBrowser, user_data_importer::TYPE_VIVALDI);
|
||||
+
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetOperaUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetOperaUserDataFolder(), kOperaBrowser, importer::TYPE_OPERA);
|
||||
+ GetOperaUserDataFolder(), kOperaBrowser, user_data_importer::TYPE_OPERA);
|
||||
+
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetYandexUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetYandexUserDataFolder(), kYandexBrowser, importer::TYPE_YANDEX);
|
||||
+ GetYandexUserDataFolder(), kYandexBrowser, user_data_importer::TYPE_YANDEX);
|
||||
+
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetWhaleUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetWhaleUserDataFolder(), kWhaleBrowser, importer::TYPE_WHALE);
|
||||
+ GetWhaleUserDataFolder(), kWhaleBrowser, user_data_importer::TYPE_WHALE);
|
||||
+
|
||||
+ AddChromeToProfiles(
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetBraveUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetBraveUserDataFolder(), kBraveBrowser, importer::TYPE_BRAVE);
|
||||
+ GetBraveUserDataFolder(), kBraveBrowser, user_data_importer::TYPE_BRAVE);
|
||||
+
|
||||
+#if BUILDFLAG(IS_LINUX)
|
||||
+ // Installed via snap Opera has different profile path.
|
||||
@@ -164,7 +164,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ profiles,
|
||||
+ GetChromeSourceProfiles(GetOperaSnapUserDataFolder().Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Local State")))),
|
||||
+ GetOperaSnapUserDataFolder(), kOperaBrowser, importer::TYPE_OPERA);
|
||||
+ GetOperaSnapUserDataFolder(), kOperaBrowser, user_data_importer::TYPE_OPERA);
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
@@ -189,7 +189,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#include "base/values.h"
|
||||
+#include "chrome/common/importer/importer_constants.h"
|
||||
+#include "chrome/common/importer/scoped_copy_file.h"
|
||||
+#include "chrome/common/importer/importer_data_types.h"
|
||||
+#include "components/user_data_importer/common/importer_data_types.h"
|
||||
+#include "components/webdata/common/webdata_constants.h"
|
||||
+#include "sql/database.h"
|
||||
+#include "sql/statement.h"
|
||||
@@ -354,7 +354,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+bool ChromeImporterCanImport(const base::FilePath& profile,
|
||||
+ uint16_t* services_supported) {
|
||||
+ DCHECK(services_supported);
|
||||
+ *services_supported = importer::NONE;
|
||||
+ *services_supported = user_data_importer::NONE;
|
||||
+
|
||||
+ base::FilePath bookmarks =
|
||||
+ profile.Append(base::FilePath::StringType(FILE_PATH_LITERAL("Bookmarks")));
|
||||
@@ -365,18 +365,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ base::FilePath passwords_for_account = profile.Append(
|
||||
+ base::FilePath::StringType(FILE_PATH_LITERAL("Login Data For Account")));
|
||||
+ if (base::PathExists(bookmarks))
|
||||
+ *services_supported |= importer::FAVORITES;
|
||||
+ *services_supported |= user_data_importer::FAVORITES;
|
||||
+ if (base::PathExists(history))
|
||||
+ *services_supported |= importer::HISTORY;
|
||||
+ *services_supported |= user_data_importer::HISTORY;
|
||||
+ if (base::PathExists(passwords) || base::PathExists(passwords_for_account)) {
|
||||
+ *services_supported |= importer::PASSWORDS;
|
||||
+ *services_supported |= user_data_importer::PASSWORDS;
|
||||
+ }
|
||||
+#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
+ if (HasImportableExtensions(profile))
|
||||
+ *services_supported |= importer::EXTENSIONS;
|
||||
+ *services_supported |= user_data_importer::EXTENSIONS;
|
||||
+#endif
|
||||
+
|
||||
+ return *services_supported != importer::NONE;
|
||||
+ return *services_supported != user_data_importer::NONE;
|
||||
+}
|
||||
+
|
||||
+#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
@@ -936,7 +936,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ const base::FilePath& library_dir = base::apple::GetUserLibraryPath();
|
||||
+ const base::FilePath safari_dir = library_dir.Append("Safari");
|
||||
+
|
||||
+ if (imported_items & importer::FAVORITES) {
|
||||
+ if (imported_items & user_data_importer::FAVORITES) {
|
||||
+ const base::FilePath bookmarks_path = safari_dir.Append("Bookmarks.plist");
|
||||
+ if (!PathIsWritable(bookmarks_path)) {
|
||||
+ LOG(ERROR) << __func__ << " " << bookmarks_path << " is not accessible."
|
||||
@@ -945,7 +945,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if (imported_items & importer::HISTORY) {
|
||||
+ if (imported_items & user_data_importer::HISTORY) {
|
||||
+ const base::FilePath history_path = safari_dir.Append("History.plist");
|
||||
+ if (!PathIsWritable(history_path)) {
|
||||
+ LOG(ERROR) << __func__ << " " << history_path << " is not accessible."
|
||||
@@ -967,7 +967,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+BraveImportDataHandler::~BraveImportDataHandler() = default;
|
||||
+
|
||||
+void BraveImportDataHandler::StartImport(
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t imported_items) {
|
||||
+ if (!imported_items)
|
||||
+ return;
|
||||
@@ -984,7 +984,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+}
|
||||
+
|
||||
+void BraveImportDataHandler::StartImportImpl(
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t imported_items,
|
||||
+ Profile* profile) {
|
||||
+ // If another import is already ongoing, let it finish silently.
|
||||
@@ -1004,7 +1004,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+}
|
||||
+
|
||||
+void BraveImportDataHandler::NotifyImportProgress(
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ const base::Value::Dict& info) {
|
||||
+ const std::string* event = info.FindString("event");
|
||||
+ if (!event)
|
||||
@@ -1023,14 +1023,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+}
|
||||
+
|
||||
+void BraveImportDataHandler::OnImportEnded(
|
||||
+ const importer::SourceProfile& source_profile) {
|
||||
+ const user_data_importer::SourceProfile& source_profile) {
|
||||
+ import_observers_.erase(source_profile.source_path);
|
||||
+ FireWebUIListener("import-data-status-changed",
|
||||
+ base::Value(import_did_succeed_ ? kImportStatusSucceeded
|
||||
+ : kImportStatusFailed));
|
||||
+}
|
||||
+
|
||||
+const importer::SourceProfile& BraveImportDataHandler::GetSourceProfileAt(
|
||||
+const user_data_importer::SourceProfile& BraveImportDataHandler::GetSourceProfileAt(
|
||||
+ int browser_index) {
|
||||
+ return importer_list_->GetSourceProfileAt(browser_index);
|
||||
+}
|
||||
@@ -1039,13 +1039,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+void BraveImportDataHandler::CheckDiskAccess(
|
||||
+ uint16_t imported_items,
|
||||
+ base::FilePath source_path,
|
||||
+ importer::ImporterType importer_type,
|
||||
+ user_data_importer::ImporterType importer_type,
|
||||
+ ContinueImportCallback callback) {
|
||||
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
||||
+
|
||||
+ guide_dialog_is_requested_ = false;
|
||||
+
|
||||
+ if (importer_type == importer::TYPE_SAFARI) {
|
||||
+ if (importer_type == user_data_importer::TYPE_SAFARI) {
|
||||
+ // Start import if Brave has full disk access permission.
|
||||
+ // If not, show dialog that has infos about that permission.
|
||||
+ base::ThreadPool::PostTaskAndReplyWithResult(
|
||||
@@ -1143,26 +1143,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ protected:
|
||||
+ using ContinueImportCallback = base::OnceCallback<void()>;
|
||||
+
|
||||
+ const importer::SourceProfile& GetSourceProfileAt(int browser_index);
|
||||
+ const user_data_importer::SourceProfile& GetSourceProfileAt(int browser_index);
|
||||
+ void HandleImportData(const base::Value::List& args);
|
||||
+ // ImportDataHandler overrides:
|
||||
+ void StartImport(const importer::SourceProfile& source_profile,
|
||||
+ void StartImport(const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t imported_items) override;
|
||||
+
|
||||
+ void StartImportImpl(const importer::SourceProfile& source_profile,
|
||||
+ void StartImportImpl(const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t imported_items,
|
||||
+ Profile* profile);
|
||||
+ virtual void NotifyImportProgress(
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ const base::Value::Dict& info);
|
||||
+ virtual void OnImportEnded(const importer::SourceProfile& source_profile);
|
||||
+ virtual void OnImportEnded(const user_data_importer::SourceProfile& source_profile);
|
||||
+
|
||||
+ void OnStartImport(const importer::SourceProfile& source_profile,
|
||||
+ void OnStartImport(const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t imported_items);
|
||||
+#if BUILDFLAG(IS_MAC)
|
||||
+ void CheckDiskAccess(uint16_t imported_items,
|
||||
+ base::FilePath source_path,
|
||||
+ importer::ImporterType importer_type,
|
||||
+ user_data_importer::ImporterType importer_type,
|
||||
+ ContinueImportCallback callback);
|
||||
+ void OnGetDiskAccessPermission(ContinueImportCallback callback,
|
||||
+ base::FilePath source_path,
|
||||
@@ -1199,7 +1199,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+BraveImporterObserver::BraveImporterObserver(
|
||||
+ ExternalProcessImporterHost* importer_host,
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t imported_items,
|
||||
+ ReportProgressCallback callback)
|
||||
+ : source_profile_(source_profile),
|
||||
@@ -1215,7 +1215,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ importer_host_->set_observer(nullptr);
|
||||
+}
|
||||
+
|
||||
+// importer::ImporterProgressObserver:
|
||||
+// user_data_importer::ImporterProgressObserver:
|
||||
+void BraveImporterObserver::ImportStarted() {
|
||||
+ if (import_started_called_)
|
||||
+ return;
|
||||
@@ -1228,7 +1228,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ callback_.Run(source_profile_, data);
|
||||
+}
|
||||
+
|
||||
+void BraveImporterObserver::ImportItemStarted(importer::ImportItem item) {
|
||||
+void BraveImporterObserver::ImportItemStarted(user_data_importer::ImportItem item) {
|
||||
+ base::Value::Dict data;
|
||||
+ data.Set("importer_name", source_profile_.importer_name);
|
||||
+ data.Set("importer_type", source_profile_.importer_type);
|
||||
@@ -1238,7 +1238,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ callback_.Run(source_profile_, data);
|
||||
+}
|
||||
+
|
||||
+void BraveImporterObserver::ImportItemEnded(importer::ImportItem item) {
|
||||
+void BraveImporterObserver::ImportItemEnded(user_data_importer::ImportItem item) {
|
||||
+ base::Value::Dict data;
|
||||
+ data.Set("importer_name", source_profile_.importer_name);
|
||||
+ data.Set("importer_type", source_profile_.importer_type);
|
||||
@@ -1290,18 +1290,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+class BraveImporterObserver : public importer::ImporterProgressObserver {
|
||||
+ public:
|
||||
+ using ReportProgressCallback = base::RepeatingCallback<void(
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ const base::Value::Dict&)>;
|
||||
+
|
||||
+ BraveImporterObserver(ExternalProcessImporterHost* host,
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t imported_items,
|
||||
+ ReportProgressCallback callback);
|
||||
+ ~BraveImporterObserver() override;
|
||||
+
|
||||
+ void ImportStarted() override;
|
||||
+ void ImportItemStarted(importer::ImportItem item) override;
|
||||
+ void ImportItemEnded(importer::ImportItem item) override;
|
||||
+ void ImportItemStarted(user_data_importer::ImportItem item) override;
|
||||
+ void ImportItemEnded(user_data_importer::ImportItem item) override;
|
||||
+ void ImportEnded() override;
|
||||
+
|
||||
+ private:
|
||||
@@ -1309,7 +1309,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+ ExternalProcessImporterHost* GetImporterHostForTesting();
|
||||
+
|
||||
+ importer::SourceProfile source_profile_;
|
||||
+ user_data_importer::SourceProfile source_profile_;
|
||||
+ uint16_t imported_items_ = 0;
|
||||
+ ReportProgressCallback callback_;
|
||||
+ // By some reasons ImportStarted event is called few times from different
|
||||
@@ -1339,16 +1339,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#include "content/public/browser/service_process_host.h"
|
||||
+
|
||||
+namespace {
|
||||
+bool ShouldUseBraveImporter(importer::ImporterType type) {
|
||||
+bool ShouldUseBraveImporter(user_data_importer::ImporterType type) {
|
||||
+ switch (type) {
|
||||
+ case importer::TYPE_CHROME:
|
||||
+ case importer::TYPE_EDGE_CHROMIUM:
|
||||
+ case importer::TYPE_VIVALDI:
|
||||
+ case importer::TYPE_OPERA:
|
||||
+ case importer::TYPE_YANDEX:
|
||||
+ case importer::TYPE_WHALE:
|
||||
+ case importer::TYPE_ARC:
|
||||
+ case importer::TYPE_BRAVE:
|
||||
+ case user_data_importer::TYPE_CHROME:
|
||||
+ case user_data_importer::TYPE_EDGE_CHROMIUM:
|
||||
+ case user_data_importer::TYPE_VIVALDI:
|
||||
+ case user_data_importer::TYPE_OPERA:
|
||||
+ case user_data_importer::TYPE_YANDEX:
|
||||
+ case user_data_importer::TYPE_WHALE:
|
||||
+ case user_data_importer::TYPE_ARC:
|
||||
+ case user_data_importer::TYPE_BRAVE:
|
||||
+ return true;
|
||||
+ default:
|
||||
+ return false;
|
||||
@@ -1364,7 +1364,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+BraveExternalProcessImporterClient::BraveExternalProcessImporterClient(
|
||||
+ base::WeakPtr<ExternalProcessImporterHost> importer_host,
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t items,
|
||||
+ InProcessImporterBridge* bridge)
|
||||
+ : ExternalProcessImporterClient(
|
||||
@@ -1422,7 +1422,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+}
|
||||
+
|
||||
+void BraveExternalProcessImporterClient::OnImportItemFinished(
|
||||
+ importer::ImportItem import_item) {
|
||||
+ user_data_importer::ImportItem import_item) {
|
||||
+ if (!ShouldUseBraveImporter(source_profile_.importer_type)) {
|
||||
+ ExternalProcessImporterClient::OnImportItemFinished(import_item);
|
||||
+ return;
|
||||
@@ -1458,7 +1458,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ public:
|
||||
+ BraveExternalProcessImporterClient(
|
||||
+ base::WeakPtr<ExternalProcessImporterHost> importer_host,
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t items,
|
||||
+ InProcessImporterBridge* bridge);
|
||||
+
|
||||
@@ -1471,7 +1471,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ void Start() override;
|
||||
+ void Cancel() override;
|
||||
+ void CloseMojoHandles() override;
|
||||
+ void OnImportItemFinished(importer::ImportItem import_item) override;
|
||||
+ void OnImportItemFinished(user_data_importer::ImportItem import_item) override;
|
||||
+
|
||||
+ protected:
|
||||
+ ~BraveExternalProcessImporterClient() override;
|
||||
@@ -1607,7 +1607,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ }
|
||||
+
|
||||
+ if (!ids.empty() && observer_)
|
||||
+ observer_->ImportItemEnded(importer::EXTENSIONS);
|
||||
+ observer_->ImportItemEnded(user_data_importer::EXTENSIONS);
|
||||
+
|
||||
+ ExternalProcessImporterHost::NotifyImportEnded();
|
||||
+}
|
||||
@@ -1637,7 +1637,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ // Handling extensions importing after finishing all other properties makes
|
||||
+ // logic simpler.
|
||||
+ // Don't import if cancelled.
|
||||
+ if (!cancelled_ && (items_ & importer::EXTENSIONS)) {
|
||||
+ if (!cancelled_ && (items_ & user_data_importer::EXTENSIONS)) {
|
||||
+ LaunchExtensionsImport();
|
||||
+ return;
|
||||
+ }
|
||||
@@ -1807,9 +1807,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#include "chrome/browser/ui/browser_tabstrip.h"
|
||||
+#include "chrome/browser/ui/tab_modal_confirm_dialog.h"
|
||||
+#include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
|
||||
+#include "chrome/common/importer/importer_data_types.h"
|
||||
+#include "chrome/grit/generated_resources.h"
|
||||
+#include "content/public/browser/web_ui.h"
|
||||
+#include "components/user_data_importer/common/importer_data_types.h"
|
||||
+#include "ui/base/ui_base_types.h"
|
||||
+#include "url/gurl.h"
|
||||
+
|
||||
@@ -2071,33 +2071,33 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#include "chrome/utility/importer/brave_external_process_importer_bridge.h"
|
||||
+#include "chrome/utility/importer/chrome_importer.h"
|
||||
+#include "build/build_config.h"
|
||||
+#include "chrome/common/importer/importer_type.h"
|
||||
+#include "chrome/common/importer/profile_import.mojom.h"
|
||||
+#include "chrome/utility/importer/external_process_importer_bridge.h"
|
||||
+#include "chrome/utility/importer/importer.h"
|
||||
+#include "components/user_data_importer/common/importer_type.h"
|
||||
+#include "content/public/utility/utility_thread.h"
|
||||
+#include "mojo/public/cpp/bindings/remote.h"
|
||||
+#include "mojo/public/cpp/bindings/shared_remote.h"
|
||||
+
|
||||
+namespace {
|
||||
+
|
||||
+scoped_refptr<Importer> CreateImporterByType(importer::ImporterType type) {
|
||||
+scoped_refptr<Importer> CreateImporterByType(user_data_importer::ImporterType type) {
|
||||
+ switch (type) {
|
||||
+ case importer::TYPE_CHROME:
|
||||
+ case user_data_importer::TYPE_CHROME:
|
||||
+ return new ChromeImporter();
|
||||
+ case importer::TYPE_EDGE_CHROMIUM:
|
||||
+ case user_data_importer::TYPE_EDGE_CHROMIUM:
|
||||
+ return new ChromeImporter();
|
||||
+ case importer::TYPE_VIVALDI:
|
||||
+ case user_data_importer::TYPE_VIVALDI:
|
||||
+ return new ChromeImporter();
|
||||
+ case importer::TYPE_OPERA:
|
||||
+ case user_data_importer::TYPE_OPERA:
|
||||
+ return new ChromeImporter();
|
||||
+ case importer::TYPE_YANDEX:
|
||||
+ case user_data_importer::TYPE_YANDEX:
|
||||
+ return new ChromeImporter();
|
||||
+ case importer::TYPE_WHALE:
|
||||
+ case user_data_importer::TYPE_WHALE:
|
||||
+ return new ChromeImporter();
|
||||
+ case importer::TYPE_ARC:
|
||||
+ case user_data_importer::TYPE_ARC:
|
||||
+ return new ChromeImporter();
|
||||
+ case importer::TYPE_BRAVE:
|
||||
+ case user_data_importer::TYPE_BRAVE:
|
||||
+ return new ChromeImporter();
|
||||
+ default:
|
||||
+ break;
|
||||
@@ -2114,7 +2114,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+BraveProfileImportImpl::~BraveProfileImportImpl() = default;
|
||||
+
|
||||
+void BraveProfileImportImpl::StartImport(
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t items,
|
||||
+ const base::flat_map<uint32_t, std::string>& localized_strings,
|
||||
+ mojo::PendingRemote<chrome::mojom::ProfileImportObserver> observer) {
|
||||
@@ -2122,21 +2122,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
||||
+ if (source_profile.importer_name.starts_with(u"Chrome")) {
|
||||
+ command_line->AppendSwitch("import-chrome");
|
||||
+ } else if (source_profile.importer_type == importer::TYPE_EDGE_CHROMIUM) {
|
||||
+ } else if (source_profile.importer_type == user_data_importer::TYPE_EDGE_CHROMIUM) {
|
||||
+ command_line->AppendSwitch("import-edge");
|
||||
+ } else if (source_profile.importer_name.starts_with(u"Chromium")) {
|
||||
+ command_line->AppendSwitch("import-chromium");
|
||||
+ } else if (source_profile.importer_type == importer::TYPE_OPERA) {
|
||||
+ } else if (source_profile.importer_type == user_data_importer::TYPE_OPERA) {
|
||||
+ command_line->AppendSwitch("import-opera");
|
||||
+ } else if (source_profile.importer_type == importer::TYPE_YANDEX) {
|
||||
+ } else if (source_profile.importer_type == user_data_importer::TYPE_YANDEX) {
|
||||
+ command_line->AppendSwitch("import-yandex");
|
||||
+ } else if (source_profile.importer_type == importer::TYPE_WHALE) {
|
||||
+ } else if (source_profile.importer_type == user_data_importer::TYPE_WHALE) {
|
||||
+ command_line->AppendSwitch("import-whale");
|
||||
+ } else if (source_profile.importer_type == importer::TYPE_ARC) {
|
||||
+ } else if (source_profile.importer_type == user_data_importer::TYPE_ARC) {
|
||||
+ command_line->AppendSwitch("import-arc");
|
||||
+ } else if (source_profile.importer_type == importer::TYPE_BRAVE) {
|
||||
+ } else if (source_profile.importer_type == user_data_importer::TYPE_BRAVE) {
|
||||
+ command_line->AppendSwitch("import-brave");
|
||||
+ } else if (source_profile.importer_type == importer::TYPE_VIVALDI) {
|
||||
+ } else if (source_profile.importer_type == user_data_importer::TYPE_VIVALDI) {
|
||||
+ command_line->AppendSwitch("import-vivaldi");
|
||||
+ }
|
||||
+
|
||||
@@ -2171,7 +2171,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+}
|
||||
+
|
||||
+void BraveProfileImportImpl::ReportImportItemFinished(
|
||||
+ importer::ImportItem item) {
|
||||
+ user_data_importer::ImportItem item) {
|
||||
+ items_to_import_ ^= item; // Remove finished item from mask.
|
||||
+ if (items_to_import_ == 0) {
|
||||
+ ImporterCleanup();
|
||||
@@ -2226,13 +2226,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ private:
|
||||
+ // chrome::mojom::ChromeProfileImport overrides:
|
||||
+ void StartImport(
|
||||
+ const importer::SourceProfile& source_profile,
|
||||
+ const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t items,
|
||||
+ const base::flat_map<uint32_t, std::string>& localized_strings,
|
||||
+ mojo::PendingRemote<chrome::mojom::ProfileImportObserver> observer)
|
||||
+ override;
|
||||
+ void CancelImport() override;
|
||||
+ void ReportImportItemFinished(importer::ImportItem item) override;
|
||||
+ void ReportImportItemFinished(user_data_importer::ImportItem item) override;
|
||||
+
|
||||
+ void ImporterCleanup();
|
||||
+
|
||||
@@ -2243,7 +2243,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ // directly back to the ProfileImportProcessHost.
|
||||
+ scoped_refptr<BraveExternalProcessImporterBridge> bridge_;
|
||||
+
|
||||
+ // A bitmask of importer::ImportItem.
|
||||
+ // A bitmask of user_data_importer::ImportItem.
|
||||
+ uint16_t items_to_import_ = 0;
|
||||
+
|
||||
+ // Importer of the appropriate type (Firefox, Safari, IE, etc.)
|
||||
@@ -2324,10 +2324,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#include "base/strings/string_util.h"
|
||||
+#include "base/strings/utf_string_conversions.h"
|
||||
+#include "build/build_config.h"
|
||||
+#include "chrome/common/importer/imported_bookmark_entry.h"
|
||||
+#include "chrome/common/importer/importer_bridge.h"
|
||||
+#include "chrome/common/importer/importer_data_types.h"
|
||||
+#include "chrome/common/importer/importer_url_row.h"
|
||||
+#include "chrome/common/importer/scoped_copy_file.h"
|
||||
+#include "chrome/grit/generated_resources.h"
|
||||
+#include "chrome/utility/importer/brave_external_process_importer_bridge.h"
|
||||
@@ -2338,6 +2335,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#include "components/password_manager/core/common/password_manager_pref_names.h"
|
||||
+#include "components/prefs/json_pref_store.h"
|
||||
+#include "components/prefs/pref_filter.h"
|
||||
+#include "components/user_data_importer/common/imported_bookmark_entry.h"
|
||||
+#include "components/user_data_importer/common/importer_data_types.h"
|
||||
+#include "components/user_data_importer/common/importer_url_row.h"
|
||||
+#include "components/webdata/common/webdata_constants.h"
|
||||
+#include "sql/database.h"
|
||||
+#include "sql/statement.h"
|
||||
@@ -2446,16 +2446,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+bool PasswordFormToImportedPasswordForm(
|
||||
+ const password_manager::PasswordForm& form,
|
||||
+ importer::ImportedPasswordForm& imported_form) {
|
||||
+ user_data_importer::ImportedPasswordForm& imported_form) {
|
||||
+ if (form.scheme != password_manager::PasswordForm::Scheme::kHtml &&
|
||||
+ form.scheme != password_manager::PasswordForm::Scheme::kBasic) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ if (form.scheme == password_manager::PasswordForm::Scheme::kHtml) {
|
||||
+ imported_form.scheme = importer::ImportedPasswordForm::Scheme::kHtml;
|
||||
+ imported_form.scheme = user_data_importer::ImportedPasswordForm::Scheme::kHtml;
|
||||
+ } else {
|
||||
+ imported_form.scheme = importer::ImportedPasswordForm::Scheme::kBasic;
|
||||
+ imported_form.scheme = user_data_importer::ImportedPasswordForm::Scheme::kBasic;
|
||||
+ }
|
||||
+
|
||||
+ imported_form.signon_realm = form.signon_realm;
|
||||
@@ -2475,7 +2475,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+ChromeImporter::~ChromeImporter() = default;
|
||||
+
|
||||
+void ChromeImporter::StartImport(const importer::SourceProfile& source_profile,
|
||||
+void ChromeImporter::StartImport(const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t items,
|
||||
+ ImporterBridge* bridge) {
|
||||
+ bridge_ = bridge;
|
||||
@@ -2484,32 +2484,32 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ // The order here is important!
|
||||
+ bridge_->NotifyStarted();
|
||||
+
|
||||
+ if ((items & importer::HISTORY) && !cancelled()) {
|
||||
+ bridge_->NotifyItemStarted(importer::HISTORY);
|
||||
+ if ((items & user_data_importer::HISTORY) && !cancelled()) {
|
||||
+ bridge_->NotifyItemStarted(user_data_importer::HISTORY);
|
||||
+ ImportHistory();
|
||||
+ bridge_->NotifyItemEnded(importer::HISTORY);
|
||||
+ bridge_->NotifyItemEnded(user_data_importer::HISTORY);
|
||||
+ }
|
||||
+
|
||||
+ if ((items & importer::FAVORITES) && !cancelled()) {
|
||||
+ bridge_->NotifyItemStarted(importer::FAVORITES);
|
||||
+ if ((items & user_data_importer::FAVORITES) && !cancelled()) {
|
||||
+ bridge_->NotifyItemStarted(user_data_importer::FAVORITES);
|
||||
+ ImportBookmarks();
|
||||
+ bridge_->NotifyItemEnded(importer::FAVORITES);
|
||||
+ bridge_->NotifyItemEnded(user_data_importer::FAVORITES);
|
||||
+ }
|
||||
+
|
||||
+#if BUILDFLAG(IS_WIN)
|
||||
+ auto source_path = source_profile.importer_type == importer::TYPE_OPERA
|
||||
+ auto source_path = source_profile.importer_type == user_data_importer::TYPE_OPERA
|
||||
+ ? source_path_
|
||||
+ : source_path_.DirName();
|
||||
+#else
|
||||
+ auto source_path = source_path_;
|
||||
+#endif
|
||||
+ const bool set_encryption_key = SetEncryptionKey(source_path);
|
||||
+ if ((items & importer::PASSWORDS) && !cancelled() && set_encryption_key) {
|
||||
+ bridge_->NotifyItemStarted(importer::PASSWORDS);
|
||||
+ if ((items & user_data_importer::PASSWORDS) && !cancelled() && set_encryption_key) {
|
||||
+ bridge_->NotifyItemStarted(user_data_importer::PASSWORDS);
|
||||
+ ImportPasswords(base::FilePath(FILE_PATH_LITERAL("Login Data")));
|
||||
+ ImportPasswords(
|
||||
+ base::FilePath(FILE_PATH_LITERAL("Login Data For Account")));
|
||||
+ bridge_->NotifyItemEnded(importer::PASSWORDS);
|
||||
+ bridge_->NotifyItemEnded(user_data_importer::PASSWORDS);
|
||||
+ }
|
||||
+
|
||||
+ bridge_->NotifyEnded();
|
||||
@@ -2545,11 +2545,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ s.BindInt64(3, ui::PAGE_TRANSITION_MANUAL_SUBFRAME);
|
||||
+ s.BindInt64(4, ui::PAGE_TRANSITION_KEYWORD_GENERATED);
|
||||
+
|
||||
+ std::vector<ImporterURLRow> rows;
|
||||
+ std::vector<user_data_importer::ImporterURLRow> rows;
|
||||
+ while (s.Step() && !cancelled()) {
|
||||
+ GURL url(s.ColumnString(0));
|
||||
+
|
||||
+ ImporterURLRow row(url);
|
||||
+ user_data_importer::ImporterURLRow row(url);
|
||||
+ row.title = s.ColumnString16(1);
|
||||
+ row.last_visit = base::Time::FromSecondsSinceUnixEpoch(
|
||||
+ chromeTimeToDouble((s.ColumnInt64(2))));
|
||||
@@ -2561,7 +2561,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ }
|
||||
+
|
||||
+ if (!rows.empty() && !cancelled())
|
||||
+ bridge_->SetHistoryItems(rows, importer::VISIT_SOURCE_CHROME_IMPORTED);
|
||||
+ bridge_->SetHistoryItems(rows, user_data_importer::VISIT_SOURCE_CHROME_IMPORTED);
|
||||
+}
|
||||
+
|
||||
+void ChromeImporter::ImportBookmarks() {
|
||||
@@ -2579,7 +2579,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ if (!bookmark_dict)
|
||||
+ return;
|
||||
+
|
||||
+ std::vector<ImportedBookmarkEntry> bookmarks;
|
||||
+ std::vector<user_data_importer::ImportedBookmarkEntry> bookmarks;
|
||||
+ const base::Value::Dict* roots = bookmark_dict->FindDict("roots");
|
||||
+ if (roots) {
|
||||
+ // Importing bookmark bar items
|
||||
@@ -2690,7 +2690,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ const base::Value::Dict* folder,
|
||||
+ const std::vector<std::u16string>& parent_path,
|
||||
+ bool is_in_toolbar,
|
||||
+ std::vector<ImportedBookmarkEntry>* bookmarks) {
|
||||
+ std::vector<user_data_importer::ImportedBookmarkEntry>* bookmarks) {
|
||||
+ const base::Value::List* children = folder->FindList("children");
|
||||
+ if (children) {
|
||||
+ for (const auto& value : *children) {
|
||||
@@ -2702,7 +2702,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ auto name = base::UTF8ToUTF16(name_found ? *name_found : std::string());
|
||||
+ const auto* type = dict->FindString("type");
|
||||
+ const auto* url = dict->FindString("url");
|
||||
+ ImportedBookmarkEntry entry;
|
||||
+ user_data_importer::ImportedBookmarkEntry entry;
|
||||
+ if (type && *type == "folder") {
|
||||
+ // Folders are added implicitly on adding children, so we only
|
||||
+ // explicitly add empty folders.
|
||||
@@ -2764,7 +2764,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ bool success = database.GetAutofillableLogins(&forms);
|
||||
+ if (success) {
|
||||
+ for (auto& entry : forms) {
|
||||
+ importer::ImportedPasswordForm form;
|
||||
+ user_data_importer::ImportedPasswordForm form;
|
||||
+ if (PasswordFormToImportedPasswordForm(entry, form)) {
|
||||
+ bridge_->SetPasswordForm(form);
|
||||
+ }
|
||||
@@ -2774,7 +2774,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ success = database.GetBlocklistLogins(&blocklist);
|
||||
+ if (success) {
|
||||
+ for (auto& entry : blocklist) {
|
||||
+ importer::ImportedPasswordForm form;
|
||||
+ user_data_importer::ImportedPasswordForm form;
|
||||
+ if (PasswordFormToImportedPasswordForm(entry, form)) {
|
||||
+ bridge_->SetPasswordForm(form);
|
||||
+ }
|
||||
@@ -2783,7 +2783,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+}
|
||||
--- /dev/null
|
||||
+++ b/chrome/utility/importer/chrome_importer.h
|
||||
@@ -0,0 +1,75 @@
|
||||
@@ -0,0 +1,77 @@
|
||||
+/* Copyright (c) 2019 The Brave Authors. All rights reserved.
|
||||
+ * This Source Code Form is subject to the terms of the Mozilla Public
|
||||
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
@@ -2807,7 +2807,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#include "chrome/utility/importer/importer.h"
|
||||
+#include "components/favicon_base/favicon_usage_data.h"
|
||||
+
|
||||
+namespace user_data_importer {
|
||||
+struct ImportedBookmarkEntry;
|
||||
+}
|
||||
+
|
||||
+namespace sql {
|
||||
+class Database;
|
||||
@@ -2820,7 +2822,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ ChromeImporter& operator=(const ChromeImporter&) = delete;
|
||||
+
|
||||
+ // Importer:
|
||||
+ void StartImport(const importer::SourceProfile& source_profile,
|
||||
+ void StartImport(const user_data_importer::SourceProfile& source_profile,
|
||||
+ uint16_t items,
|
||||
+ ImporterBridge* bridge) override;
|
||||
+
|
||||
@@ -2853,7 +2855,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ const base::Value::Dict* folder,
|
||||
+ const std::vector<std::u16string>& parent_path,
|
||||
+ bool is_in_toolbar,
|
||||
+ std::vector<ImportedBookmarkEntry>* bookmarks);
|
||||
+ std::vector<user_data_importer::ImportedBookmarkEntry>* bookmarks);
|
||||
+
|
||||
+ std::u16string importer_name_;
|
||||
+};
|
||||
@@ -2861,7 +2863,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
|
||||
@@ -10879,6 +10879,9 @@ Check your passwords anytime in <ph name
|
||||
@@ -10913,6 +10913,9 @@ Check your passwords anytime in <ph name
|
||||
Microsoft Edge
|
||||
</message>
|
||||
</if>
|
||||
|
||||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
namespace {
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
@@ -164,20 +166,30 @@ std::vector<importer::SourceProfile> Det
|
||||
@@ -171,20 +173,30 @@ std::vector<user_data_importer::SourcePr
|
||||
if (shell_integration::IsFirefoxDefaultBrowser()) {
|
||||
DetectFirefoxProfiles(locale, &profiles);
|
||||
DetectBuiltinWindowsProfiles(&profiles);
|
||||
@@ -65,15 +65,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ }
|
||||
#endif
|
||||
if (include_interactive_profiles) {
|
||||
importer::SourceProfile bookmarks_profile;
|
||||
@@ -227,5 +239,11 @@ void ImporterList::SourceProfilesLoaded(
|
||||
user_data_importer::SourceProfile bookmarks_profile;
|
||||
@@ -234,5 +246,11 @@ void ImporterList::SourceProfilesLoaded(
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
|
||||
source_profiles_.assign(profiles.begin(), profiles.end());
|
||||
+
|
||||
+ for (auto& profile : source_profiles_) {
|
||||
+ if (profile.services_supported & importer::PASSWORDS)
|
||||
+ profile.services_supported ^= importer::PASSWORDS;
|
||||
+ if (profile.services_supported & user_data_importer::PASSWORDS)
|
||||
+ profile.services_supported ^= user_data_importer::PASSWORDS;
|
||||
+ }
|
||||
+
|
||||
std::move(profiles_loaded_callback).Run();
|
||||
@@ -97,19 +97,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
public_deps = [
|
||||
"//mojo/public/mojom/base",
|
||||
@@ -81,6 +85,9 @@ source_set("importer") {
|
||||
@@ -82,19 +86,28 @@ source_set("importer") {
|
||||
sources = [
|
||||
"firefox_importer_utils.cc",
|
||||
"firefox_importer_utils.h",
|
||||
+ "chrome_importer_constants.h",
|
||||
+ "chrome_importer_utils.cc",
|
||||
+ "chrome_importer_utils.h",
|
||||
"imported_bookmark_entry.cc",
|
||||
"imported_bookmark_entry.h",
|
||||
"importer_autofill_form_data_entry.cc",
|
||||
@@ -93,14 +100,20 @@ source_set("importer") {
|
||||
"importer_url_row.cc",
|
||||
"importer_url_row.h",
|
||||
"importer_autofill_form_data_entry.h",
|
||||
"importer_bridge.cc",
|
||||
"importer_bridge.h",
|
||||
"pstore_declarations.h",
|
||||
+ "scoped_copy_file.cc",
|
||||
+ "scoped_copy_file.h",
|
||||
@@ -130,7 +128,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
]
|
||||
} else if (is_win) {
|
||||
sources += [
|
||||
@@ -111,6 +124,7 @@ source_set("importer") {
|
||||
@@ -105,6 +118,7 @@ source_set("importer") {
|
||||
"ie_importer_utils_win.h",
|
||||
"importer_test_registry_overrider_win.cc",
|
||||
"importer_test_registry_overrider_win.h",
|
||||
@@ -138,10 +136,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
]
|
||||
}
|
||||
deps = [
|
||||
@@ -118,8 +132,17 @@ source_set("importer") {
|
||||
"//chrome/app:generated_resources",
|
||||
@@ -113,8 +127,17 @@ source_set("importer") {
|
||||
"//chrome/common:ini_parser",
|
||||
"//components/favicon_base",
|
||||
"//components/user_data_importer/common",
|
||||
+ "//components/webdata/common",
|
||||
"//content/public/common",
|
||||
+ "//extensions/buildflags",
|
||||
@@ -156,8 +154,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ ]
|
||||
+ }
|
||||
}
|
||||
--- a/chrome/common/importer/importer_type.h
|
||||
+++ b/chrome/common/importer/importer_type.h
|
||||
--- a/components/user_data_importer/common/importer_type.h
|
||||
+++ b/components/user_data_importer/common/importer_type.h
|
||||
@@ -28,6 +28,14 @@ enum ImporterType {
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
TYPE_EDGE = 6,
|
||||
@@ -172,7 +170,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ TYPE_BRAVE = 71,
|
||||
};
|
||||
|
||||
} // namespace importer
|
||||
} // namespace user_data_importer
|
||||
--- a/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
+++ b/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
@@ -39,6 +39,7 @@ chromium-metrics-reviews@google.com.
|
||||
@@ -183,15 +181,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<variant name="FileIndexService" summary="FileIndexService"/>
|
||||
<variant name="FirefoxImporter" summary="FirefoxImporter"/>
|
||||
<variant name="FirstPartySets" summary="FirstPartySets"/>
|
||||
--- a/chrome/common/importer/importer_data_types.h
|
||||
+++ b/chrome/common/importer/importer_data_types.h
|
||||
--- a/components/user_data_importer/common/importer_data_types.h
|
||||
+++ b/components/user_data_importer/common/importer_data_types.h
|
||||
@@ -29,7 +29,8 @@ enum ImportItem {
|
||||
SEARCH_ENGINES = 1 << 4,
|
||||
HOME_PAGE = 1 << 5,
|
||||
SEARCH_ENGINES = 1 << 4,
|
||||
HOME_PAGE = 1 << 5,
|
||||
AUTOFILL_FORM_DATA = 1 << 6,
|
||||
- ALL = (1 << 7) - 1 // All the bits should be 1, hence the -1.
|
||||
+ EXTENSIONS = 1 << 7,
|
||||
+ ALL = (1 << 8) - 1 // All the bits should be 1, hence the -1.
|
||||
- ALL = (1 << 7) - 1 // All the bits should be 1, hence the -1.
|
||||
+ EXTENSIONS = 1 << 7,
|
||||
+ ALL = (1 << 8) - 1 // All the bits should be 1, hence the -1.
|
||||
};
|
||||
|
||||
// Information about a profile needed by an importer to do import work.
|
||||
@@ -202,60 +200,59 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ VISIT_SOURCE_CHROME_IMPORTED = 4,
|
||||
};
|
||||
|
||||
} // namespace importer
|
||||
} // namespace user_data_importer
|
||||
--- a/chrome/common/importer/profile_import_process_param_traits_macros.h
|
||||
+++ b/chrome/common/importer/profile_import_process_param_traits_macros.h
|
||||
@@ -20,11 +20,11 @@
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(importer::ImporterType,
|
||||
importer::TYPE_UNKNOWN,
|
||||
- importer::TYPE_EDGE)
|
||||
+ importer::TYPE_BRAVE)
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
|
||||
user_data_importer::TYPE_UNKNOWN,
|
||||
- user_data_importer::TYPE_EDGE)
|
||||
+ user_data_importer::TYPE_BRAVE)
|
||||
#else
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(importer::ImporterType,
|
||||
importer::TYPE_UNKNOWN,
|
||||
- importer::TYPE_BOOKMARKS_FILE)
|
||||
+ importer::TYPE_BRAVE)
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
|
||||
user_data_importer::TYPE_UNKNOWN,
|
||||
- user_data_importer::TYPE_BOOKMARKS_FILE)
|
||||
+ user_data_importer::TYPE_BRAVE)
|
||||
#endif
|
||||
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(importer::ImportItem,
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImportItem,
|
||||
--- a/chrome/browser/ui/webui/settings/import_data_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/import_data_handler.cc
|
||||
@@ -146,6 +146,9 @@ void ImportDataHandler::HandleImportData
|
||||
if (*type_dict.FindBool(prefs::kImportDialogSearchEngine)) {
|
||||
selected_items |= importer::SEARCH_ENGINES;
|
||||
selected_items |= user_data_importer::SEARCH_ENGINES;
|
||||
}
|
||||
+ if (*type_dict.FindBool(prefs::kImportDialogExtensions)) {
|
||||
+ selected_items |= importer::EXTENSIONS;
|
||||
+ selected_items |= user_data_importer::EXTENSIONS;
|
||||
+ }
|
||||
|
||||
const importer::SourceProfile& source_profile =
|
||||
const user_data_importer::SourceProfile& source_profile =
|
||||
importer_list_->GetSourceProfileAt(browser_index);
|
||||
@@ -223,6 +226,8 @@ void ImportDataHandler::SendBrowserProfi
|
||||
(browser_services & importer::SEARCH_ENGINES) != 0);
|
||||
browser_profile.Set("autofillFormData",
|
||||
(browser_services & importer::AUTOFILL_FORM_DATA) != 0);
|
||||
@@ -225,6 +228,8 @@ void ImportDataHandler::SendBrowserProfi
|
||||
browser_profile.Set(
|
||||
"autofillFormData",
|
||||
(browser_services & user_data_importer::AUTOFILL_FORM_DATA) != 0);
|
||||
+ browser_profile.Set("extensions",
|
||||
+ (browser_services & importer::EXTENSIONS) != 0);
|
||||
+ (browser_services & user_data_importer::EXTENSIONS) != 0);
|
||||
|
||||
browser_profiles.Append(std::move(browser_profile));
|
||||
}
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -4271,6 +4271,10 @@ inline constexpr char kServiceWorkerToCo
|
||||
// is set as a SharedWorker script URL.
|
||||
@@ -4270,6 +4270,9 @@ inline constexpr char kServiceWorkerToCo
|
||||
inline constexpr char kSharedWorkerBlobURLFixEnabled[] =
|
||||
"worker.shared_worker_blob_url_fix_enabled";
|
||||
+
|
||||
|
||||
+inline constexpr char kImportDialogExtensions[] =
|
||||
+ "import_dialog_extensions";
|
||||
+
|
||||
} // namespace prefs
|
||||
|
||||
#endif // CHROME_COMMON_PREF_NAMES_H_
|
||||
// Boolean indicating whether clearing window.name when the navigation is
|
||||
// top-level, cross-site and swaps BrowsingContextGroup is allowed or not.
|
||||
inline constexpr char kClearWindowNameForNewBrowsingContextGroup[] =
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -1150,6 +1150,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -1148,6 +1148,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -266,7 +263,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
|
||||
@@ -63,6 +63,7 @@
|
||||
@@ -62,6 +62,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 +271,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"
|
||||
@@ -213,6 +214,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
@@ -206,6 +207,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogHistory, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSavedPasswords, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSearchEngine, true);
|
||||
@@ -282,7 +279,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
SettingsUI::SettingsUI(content::WebUI* web_ui)
|
||||
@@ -259,7 +261,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
@@ -235,7 +237,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 +290,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
|
||||
@@ -880,6 +880,8 @@ void AddImportDataStrings(content::WebUI
|
||||
@@ -862,6 +862,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 +315,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
|
||||
@@ -1528,6 +1528,10 @@ static_library("ui") {
|
||||
@@ -1456,6 +1456,10 @@ static_library("ui") {
|
||||
"webui/settings/accessibility_main_handler.h",
|
||||
"webui/settings/appearance_handler.cc",
|
||||
"webui/settings/appearance_handler.h",
|
||||
@@ -329,7 +326,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",
|
||||
@@ -1683,6 +1687,13 @@ static_library("ui") {
|
||||
@@ -1611,6 +1615,13 @@ static_library("ui") {
|
||||
]
|
||||
}
|
||||
|
||||
@@ -345,14 +342,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"//base",
|
||||
--- a/chrome/browser/ui/webui/settings/import_data_handler.h
|
||||
+++ b/chrome/browser/ui/webui/settings/import_data_handler.h
|
||||
@@ -38,7 +38,9 @@ class ImportDataHandler : public Setting
|
||||
@@ -36,9 +36,9 @@ class ImportDataHandler : public Setting
|
||||
void RegisterMessages() override;
|
||||
void OnJavascriptAllowed() override {}
|
||||
void OnJavascriptDisallowed() override;
|
||||
|
||||
private:
|
||||
- void StartImport(const importer::SourceProfile& source_profile,
|
||||
-
|
||||
+ friend class BraveImportDataHandler;
|
||||
+ private:
|
||||
+ virtual void StartImport(const importer::SourceProfile& source_profile,
|
||||
private:
|
||||
- void StartImport(const user_data_importer::SourceProfile& source_profile,
|
||||
+ virtual void StartImport(const user_data_importer::SourceProfile& source_profile,
|
||||
uint16_t imported_items);
|
||||
|
||||
// Handler for the "importData" message. First argument is the selected
|
||||
@@ -369,7 +367,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"external_process_importer_client.h",
|
||||
"external_process_importer_host.h",
|
||||
"firefox_profile_lock.h",
|
||||
@@ -36,6 +40,10 @@ source_set("impl") {
|
||||
@@ -37,6 +41,10 @@ source_set("impl") {
|
||||
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
|
||||
|
||||
sources = [
|
||||
@@ -382,10 +380,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"firefox_profile_lock.cc",
|
||||
--- a/chrome/browser/importer/external_process_importer_host.h
|
||||
+++ b/chrome/browser/importer/external_process_importer_host.h
|
||||
@@ -78,8 +78,9 @@ class ExternalProcessImporterHost
|
||||
@@ -79,8 +79,9 @@ class ExternalProcessImporterHost
|
||||
void NotifyImportStarted();
|
||||
void NotifyImportItemStarted(importer::ImportItem item);
|
||||
void NotifyImportItemEnded(importer::ImportItem item);
|
||||
void NotifyImportItemStarted(user_data_importer::ImportItem item);
|
||||
void NotifyImportItemEnded(user_data_importer::ImportItem item);
|
||||
- void NotifyImportEnded();
|
||||
+ void virtual NotifyImportEnded();
|
||||
|
||||
@@ -395,7 +393,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
~ExternalProcessImporterHost() override;
|
||||
--- a/components/history/core/browser/history_types.h
|
||||
+++ b/components/history/core/browser/history_types.h
|
||||
@@ -54,6 +54,8 @@ enum VisitSource {
|
||||
@@ -53,6 +53,8 @@ enum VisitSource {
|
||||
SOURCE_FIREFOX_IMPORTED = 3,
|
||||
SOURCE_IE_IMPORTED = 4,
|
||||
SOURCE_SAFARI_IMPORTED = 5,
|
||||
@@ -406,7 +404,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// Corresponds to the "id" column of the "visits" SQL table.
|
||||
--- a/components/history/core/browser/visit_database.cc
|
||||
+++ b/components/history/core/browser/visit_database.cc
|
||||
@@ -118,6 +118,8 @@ VisitSource VisitSourceFromInt(int value
|
||||
@@ -117,6 +117,8 @@ VisitSource VisitSourceFromInt(int value
|
||||
case SOURCE_FIREFOX_IMPORTED:
|
||||
case SOURCE_IE_IMPORTED:
|
||||
case SOURCE_SAFARI_IMPORTED:
|
||||
@@ -419,9 +417,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+++ b/chrome/browser/importer/in_process_importer_bridge.cc
|
||||
@@ -53,6 +53,8 @@ history::VisitSource ConvertImporterVisi
|
||||
return history::SOURCE_IE_IMPORTED;
|
||||
case importer::VISIT_SOURCE_SAFARI_IMPORTED:
|
||||
case user_data_importer::VISIT_SOURCE_SAFARI_IMPORTED:
|
||||
return history::SOURCE_SAFARI_IMPORTED;
|
||||
+ case importer::VISIT_SOURCE_CHROME_IMPORTED:
|
||||
+ case user_data_importer::VISIT_SOURCE_CHROME_IMPORTED:
|
||||
+ return history::SOURCE_CHROME_IMPORTED;
|
||||
}
|
||||
NOTREACHED();
|
||||
@@ -477,7 +475,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
services.Add(RunPassageEmbeddingsService);
|
||||
--- a/chrome/utility/importer/external_process_importer_bridge.h
|
||||
+++ b/chrome/utility/importer/external_process_importer_bridge.h
|
||||
@@ -69,7 +69,7 @@ class ExternalProcessImporterBridge : pu
|
||||
@@ -72,7 +72,7 @@ class ExternalProcessImporterBridge : pu
|
||||
|
||||
std::u16string GetLocalizedString(int message_id) override;
|
||||
// End ImporterBridge implementation.
|
||||
@@ -513,7 +511,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
--- a/chrome/browser/importer/in_process_importer_bridge.h
|
||||
+++ b/chrome/browser/importer/in_process_importer_bridge.h
|
||||
@@ -57,7 +57,7 @@ class InProcessImporterBridge : public I
|
||||
@@ -59,7 +59,7 @@ class InProcessImporterBridge : public I
|
||||
|
||||
std::u16string GetLocalizedString(int message_id) override;
|
||||
// End ImporterBridge implementation.
|
||||
@@ -527,13 +525,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
@@ -35,6 +35,7 @@ enum ImporterTypeMetrics {
|
||||
|
||||
void LogImporterUseToMetrics(const std::string& metric_postfix,
|
||||
ImporterType type) {
|
||||
user_data_importer::ImporterType type) {
|
||||
+ return;
|
||||
ImporterTypeMetrics metrics_type = IMPORTER_METRICS_UNKNOWN;
|
||||
switch (type) {
|
||||
case TYPE_UNKNOWN:
|
||||
case user_data_importer::TYPE_UNKNOWN:
|
||||
@@ -59,6 +60,9 @@ void LogImporterUseToMetrics(const std::
|
||||
case TYPE_BOOKMARKS_FILE:
|
||||
case user_data_importer::TYPE_BOOKMARKS_FILE:
|
||||
metrics_type = IMPORTER_METRICS_BOOKMARKS_FILE;
|
||||
break;
|
||||
+ default:
|
||||
@@ -544,7 +542,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// Note: This leaks memory, which is the expected behavior as the factory
|
||||
--- a/chrome/browser/importer/external_process_importer_client.h
|
||||
+++ b/chrome/browser/importer/external_process_importer_client.h
|
||||
@@ -51,10 +51,10 @@ class ExternalProcessImporterClient
|
||||
@@ -48,10 +48,10 @@ class ExternalProcessImporterClient
|
||||
const ExternalProcessImporterClient&) = delete;
|
||||
|
||||
// Launches the task to start the external process.
|
||||
@@ -557,7 +555,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// chrome::mojom::ProfileImportObserver:
|
||||
void OnImportStart() override;
|
||||
@@ -84,6 +84,8 @@ class ExternalProcessImporterClient
|
||||
@@ -82,6 +82,8 @@ class ExternalProcessImporterClient
|
||||
const std::vector<ImporterAutofillFormDataEntry>&
|
||||
autofill_form_data_entry_group) override;
|
||||
|
||||
@@ -566,7 +564,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
protected:
|
||||
~ExternalProcessImporterClient() override;
|
||||
|
||||
@@ -99,7 +101,7 @@ class ExternalProcessImporterClient
|
||||
@@ -97,7 +99,7 @@ class ExternalProcessImporterClient
|
||||
// The Mojo connections need to be torn down on the same thread that created
|
||||
// them, but the destructor is not guaranteed to be run on that thread so we
|
||||
// tear down the connections explicitly.
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
--- a/chrome/browser/ungoogled_flag_entries.h
|
||||
+++ b/chrome/browser/ungoogled_flag_entries.h
|
||||
@@ -144,4 +144,8 @@
|
||||
"Spoof WebGL Info",
|
||||
"Return generic values for WebGLDebugRendererInfo to remove a potential data leak while preventing potential website breakage. ungoogled-chromium flag.",
|
||||
kOsAll, FEATURE_WITH_PARAMS_VALUE_TYPE(blink::features::kSpoofWebGLInfo, kSpoofWebGLChoices, "SpoofWebGLInfo")},
|
||||
+ {"increase-incognito-storage-quota",
|
||||
+ "Increases the storage quota for Incognito and Guest profiles",
|
||||
+ "Makes Incognito and Guest profiles compute the storage quota with the same algorithm that regular profiles use. This makes it harder for websites to detect Incognito mode, but may allow sites to induce heavy memory pressure. ungoogled-chromium flag.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(storage::features::kIncreaseIncognitoStorageQuota)},
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/storage/browser/quota/quota_features.cc
|
||||
+++ b/storage/browser/quota/quota_features.cc
|
||||
@@ -41,5 +41,9 @@ BASE_FEATURE(kStaticStorageQuota,
|
||||
"StaticStorageQuota",
|
||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
+BASE_FEATURE(kIncreaseIncognitoStorageQuota,
|
||||
+ "IncreaseIncognitoStorageQuota",
|
||||
+ base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+
|
||||
} // namespace features
|
||||
} // namespace storage
|
||||
--- a/storage/browser/quota/quota_features.h
|
||||
+++ b/storage/browser/quota/quota_features.h
|
||||
@@ -23,6 +23,8 @@ extern const base::FeatureParam<double>
|
||||
|
||||
COMPONENT_EXPORT(STORAGE_BROWSER) BASE_DECLARE_FEATURE(kStaticStorageQuota);
|
||||
|
||||
+COMPONENT_EXPORT(STORAGE_BROWSER) BASE_DECLARE_FEATURE(kIncreaseIncognitoStorageQuota);
|
||||
+
|
||||
} // namespace features
|
||||
|
||||
} // namespace storage
|
||||
--- a/storage/browser/quota/quota_settings.cc
|
||||
+++ b/storage/browser/quota/quota_settings.cc
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
+#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/no_destructor.h"
|
||||
#include "base/numerics/safe_conversions.h"
|
||||
@@ -55,7 +56,8 @@ std::optional<QuotaSettings> CalculateNo
|
||||
base::ScopedBlockingCall scoped_blocking_call(FROM_HERE,
|
||||
base::BlockingType::MAY_BLOCK);
|
||||
|
||||
- if (is_incognito) {
|
||||
+ if (is_incognito &&
|
||||
+ !base::FeatureList::IsEnabled(features::kIncreaseIncognitoStorageQuota)) {
|
||||
return CalculateIncognitoDynamicSettings(
|
||||
device_info_helper->AmountOfPhysicalMemory());
|
||||
}
|
||||
@@ -116,7 +118,9 @@ std::optional<QuotaSettings> CalculateNo
|
||||
|
||||
QuotaSettings settings;
|
||||
|
||||
- int64_t total = device_info_helper->AmountOfTotalDiskSpace(partition_path);
|
||||
+ int64_t total =
|
||||
+ is_incognito ? device_info_helper->AmountOfPhysicalMemory()
|
||||
+ : device_info_helper->AmountOfTotalDiskSpace(partition_path);
|
||||
if (total == -1) {
|
||||
LOG(ERROR) << "Unable to compute QuotaSettings.";
|
||||
return std::nullopt;
|
||||
@@ -14,7 +14,7 @@
|
||||
# BUILD will always be an increasing value, so BUILD_PATH gives us
|
||||
# something unique that meetings what LS wants.
|
||||
- 'CFBundleVersion': '@BUILD@.@PATCH@',
|
||||
+ 'CFBundleVersion': '@MAJOR@.@PATCH@',
|
||||
+ 'CFBundleVersion': '@MAJOR@.@MINOR@.@BUILD@.@PATCH@',
|
||||
}
|
||||
else:
|
||||
version_format_for_key = {
|
||||
@@ -52,7 +52,7 @@
|
||||
html_source->AddString(version_ui::kVersion,
|
||||
version_info::GetVersionNumber());
|
||||
html_source->AddString(version_ui::kVersionSuffix,
|
||||
@@ -311,12 +313,14 @@ void VersionUI::AddVersionDetailStrings(
|
||||
@@ -309,12 +311,14 @@ void VersionUI::AddVersionDetailStrings(
|
||||
std::u16string VersionUI::GetAnnotatedVersionStringForUi() {
|
||||
return l10n_util::GetStringFUTF16(
|
||||
IDS_SETTINGS_ABOUT_PAGE_BROWSER_VERSION,
|
||||
@@ -70,7 +70,7 @@
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
--- a/components/webui/version/version_ui_constants.cc
|
||||
+++ b/components/webui/version/version_ui_constants.cc
|
||||
@@ -88,6 +88,7 @@ const char kVariationsName[] = "variatio
|
||||
@@ -86,6 +86,7 @@ const char kVariationsName[] = "variatio
|
||||
const char kVariationsSeed[] = "variations_seed";
|
||||
const char kVariationsSeedName[] = "variations_seed_name";
|
||||
const char kVersion[] = "version";
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
#include "third_party/search_engines_data/resources/definitions/prepopulated_engines.h"
|
||||
#include "ui/base/l10n/l10n_util.h"
|
||||
#include "url/gurl.h"
|
||||
@@ -510,3 +511,20 @@ std::unique_ptr<TemplateURLData> Templat
|
||||
@@ -517,3 +518,20 @@ std::unique_ptr<TemplateURLData> Templat
|
||||
|
||||
return turl;
|
||||
}
|
||||
@@ -84,7 +84,7 @@
|
||||
+}
|
||||
--- a/components/search_engines/template_url_service.cc
|
||||
+++ b/components/search_engines/template_url_service.cc
|
||||
@@ -46,6 +46,8 @@
|
||||
@@ -40,6 +40,8 @@
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "build/build_config.h"
|
||||
#include "components/country_codes/country_codes.h"
|
||||
@@ -93,7 +93,7 @@
|
||||
#include "components/omnibox/common/omnibox_features.h"
|
||||
#include "components/pref_registry/pref_registry_syncable.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
@@ -62,7 +64,9 @@
|
||||
@@ -56,7 +58,9 @@
|
||||
#include "components/search_engines/search_engines_switches.h"
|
||||
#include "components/search_engines/search_terms_data.h"
|
||||
#include "components/search_engines/template_url.h"
|
||||
@@ -103,7 +103,7 @@
|
||||
#include "components/search_engines/template_url_prepopulate_data.h"
|
||||
#include "components/search_engines/template_url_prepopulate_data_resolver.h"
|
||||
#include "components/search_engines/template_url_service_client.h"
|
||||
@@ -76,6 +80,7 @@
|
||||
@@ -70,6 +74,7 @@
|
||||
#include "components/sync/protocol/search_engine_specifics.pb.h"
|
||||
#include "components/url_formatter/url_fixer.h"
|
||||
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
|
||||
@@ -111,7 +111,7 @@
|
||||
#include "url/gurl.h"
|
||||
#include "url/origin.h"
|
||||
#include "url/url_util.h"
|
||||
@@ -489,6 +494,7 @@ class TemplateURLService::PreLoadingProv
|
||||
@@ -526,6 +531,7 @@ class TemplateURLService::PreLoadingProv
|
||||
// TemplateURLService ---------------------------------------------------------
|
||||
TemplateURLService::TemplateURLService(
|
||||
PrefService& prefs,
|
||||
@@ -119,7 +119,7 @@
|
||||
search_engines::SearchEngineChoiceService& search_engine_choice_service,
|
||||
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
|
||||
std::unique_ptr<SearchTermsData> search_terms_data,
|
||||
@@ -501,6 +507,8 @@ TemplateURLService::TemplateURLService(
|
||||
@@ -538,6 +544,8 @@ TemplateURLService::TemplateURLService(
|
||||
prepopulate_data_resolver_(prepopulate_data_resolver),
|
||||
search_terms_data_(std::move(search_terms_data)),
|
||||
web_data_service_(web_data_service),
|
||||
@@ -128,7 +128,7 @@
|
||||
client_(std::move(client)),
|
||||
dsp_change_callback_(dsp_change_callback),
|
||||
pre_loading_providers_(std::make_unique<PreLoadingProviders>()),
|
||||
@@ -517,11 +525,13 @@ TemplateURLService::TemplateURLService(
|
||||
@@ -554,11 +562,13 @@ TemplateURLService::TemplateURLService(
|
||||
|
||||
TemplateURLService::TemplateURLService(
|
||||
PrefService& prefs,
|
||||
@@ -142,7 +142,7 @@
|
||||
search_engine_choice_service,
|
||||
prepopulate_data_resolver,
|
||||
/*search_terms_data=*/std::make_unique<SearchTermsData>(),
|
||||
@@ -624,6 +634,10 @@ bool TemplateURLService::ShowInActivesLi
|
||||
@@ -661,6 +671,10 @@ bool TemplateURLService::ShowInActivesLi
|
||||
}
|
||||
|
||||
bool TemplateURLService::HiddenFromLists(const TemplateURL* t_url) const {
|
||||
@@ -151,9 +151,9 @@
|
||||
+ }
|
||||
+
|
||||
switch (t_url->policy_origin()) {
|
||||
case TemplateURLData::PolicyOrigin::kNoPolicy:
|
||||
// Hide if another engine (e.g., one set by policy) takes precedence for
|
||||
@@ -1481,11 +1495,37 @@ void TemplateURLService::Load() {
|
||||
case TemplateURLData::PolicyOrigin::kDefaultSearchProvider:
|
||||
return false;
|
||||
@@ -1473,11 +1487,37 @@ void TemplateURLService::Load() {
|
||||
|
||||
if (web_data_service_) {
|
||||
load_handle_ = web_data_service_->GetKeywords(this);
|
||||
@@ -164,7 +164,7 @@
|
||||
}
|
||||
|
||||
+void TemplateURLService::LoadBangs() {
|
||||
+ LOG(ERROR) << "LoadBangs() called";
|
||||
+ VLOG(2) << "LoadBangs() called";
|
||||
+ bang_manager_->LoadBangs(url_loader_factory_, prefs_.get(),
|
||||
+ base::BindOnce(&TemplateURLService::BangsLoadedCallback, base::Unretained(this)));
|
||||
+}
|
||||
@@ -191,7 +191,7 @@
|
||||
base::CallbackListSubscription TemplateURLService::RegisterOnLoadedCallback(
|
||||
base::OnceClosure callback) {
|
||||
return loaded_ ? base::CallbackListSubscription()
|
||||
@@ -2478,6 +2518,13 @@ void TemplateURLService::Init() {
|
||||
@@ -2481,6 +2521,13 @@ void TemplateURLService::Init() {
|
||||
base::Unretained(this)));
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
search_engines::SearchEngineChoiceService& search_engine_choice_service,
|
||||
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
|
||||
base::span<const TemplateURLService::Initializer> initializers = {});
|
||||
@@ -480,6 +484,8 @@ class TemplateURLService final : public
|
||||
@@ -475,6 +479,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.
|
||||
@@ -708,6 +714,8 @@ class TemplateURLService final : public
|
||||
@@ -718,6 +724,8 @@ class TemplateURLService final : public
|
||||
|
||||
void Init();
|
||||
|
||||
@@ -254,7 +254,7 @@
|
||||
// Simulate a loaded `TemplateURLService`.
|
||||
void ApplyInitializersForTesting(
|
||||
base::span<const TemplateURLService::Initializer> initializers);
|
||||
@@ -911,6 +919,10 @@ class TemplateURLService final : public
|
||||
@@ -921,6 +929,10 @@ class TemplateURLService final : public
|
||||
// Service used to store entries.
|
||||
scoped_refptr<KeywordWebDataService> web_data_service_;
|
||||
|
||||
@@ -545,7 +545,7 @@
|
||||
+
|
||||
--- a/components/omnibox/browser/autocomplete_input.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_input.cc
|
||||
@@ -743,9 +743,9 @@ bool AutocompleteInput::HasHTTPSScheme(c
|
||||
@@ -739,9 +739,9 @@ bool AutocompleteInput::HasHTTPSScheme(c
|
||||
// static
|
||||
AutocompleteInput::FeaturedKeywordMode
|
||||
AutocompleteInput::GetFeaturedKeywordMode(std::u16string_view text) {
|
||||
@@ -557,7 +557,7 @@
|
||||
return FeaturedKeywordMode::kPrefix;
|
||||
return FeaturedKeywordMode::kFalse;
|
||||
}
|
||||
@@ -913,6 +913,7 @@ std::u16string AutocompleteInput::Autoco
|
||||
@@ -909,6 +909,7 @@ std::u16string AutocompleteInput::Autoco
|
||||
const std::u16string& input,
|
||||
bool trim_leading_whitespace,
|
||||
std::u16string* remaining_input) {
|
||||
@@ -565,7 +565,7 @@
|
||||
// Find end of first token. The AutocompleteController has trimmed leading
|
||||
// whitespace, so we need not skip over that.
|
||||
const size_t first_white(input.find_first_of(base::kWhitespaceUTF16));
|
||||
@@ -921,6 +922,39 @@ std::u16string AutocompleteInput::Autoco
|
||||
@@ -917,6 +918,39 @@ std::u16string AutocompleteInput::Autoco
|
||||
return input; // Only one token provided.
|
||||
}
|
||||
|
||||
@@ -607,7 +607,7 @@
|
||||
const size_t remaining_start =
|
||||
--- a/components/search_engines/template_url_data.cc
|
||||
+++ b/components/search_engines/template_url_data.cc
|
||||
@@ -27,7 +27,7 @@ namespace {
|
||||
@@ -32,7 +32,7 @@ constexpr bool kEnableBuiltinSearchProvi
|
||||
// Returns a GUID used for sync, which is random except for built-in search
|
||||
// engines. The latter benefit from using a deterministic GUID, to make sure
|
||||
// sync doesn't incur in duplicates for prepopulated engines.
|
||||
@@ -616,7 +616,7 @@
|
||||
// We compute a GUID deterministically given |prepopulate_id| or
|
||||
// |starter_pack_id|, using an arbitrary base GUID.
|
||||
std::string guid;
|
||||
@@ -38,6 +38,9 @@ std::string GenerateGUID(int prepopulate
|
||||
@@ -43,6 +43,9 @@ std::string GenerateGUID(int prepopulate
|
||||
} else if (starter_pack_id > 0) {
|
||||
guid = base::StringPrintf("ec205736-edd7-4022-a9a3-b431fc%06d",
|
||||
starter_pack_id);
|
||||
@@ -626,7 +626,7 @@
|
||||
} else {
|
||||
guid = base::Uuid::GenerateRandomV4().AsLowercaseString();
|
||||
}
|
||||
@@ -117,7 +120,7 @@ TemplateURLData::TemplateURLData(
|
||||
@@ -128,7 +131,7 @@ TemplateURLData::TemplateURLData(
|
||||
regulatory_origin(RegulatoryExtensionType::kDefault),
|
||||
usage_count(0),
|
||||
prepopulate_id(prepopulate_id),
|
||||
@@ -635,7 +635,7 @@
|
||||
preconnect_to_search_url(preconnect_to_search_url),
|
||||
prefetch_likely_navigations(prefetch_likely_navigations) {
|
||||
SetShortName(name);
|
||||
@@ -183,7 +186,7 @@ std::vector<uint8_t> TemplateURLData::Ge
|
||||
@@ -201,7 +204,7 @@ std::string TemplateURLData::GetBuiltinI
|
||||
}
|
||||
|
||||
void TemplateURLData::GenerateSyncGUID() {
|
||||
@@ -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
|
||||
@@ -256,6 +256,9 @@ struct TemplateURLData {
|
||||
@@ -268,6 +268,9 @@ struct TemplateURLData {
|
||||
// starter_pack_id > 0.
|
||||
int starter_pack_id{0};
|
||||
|
||||
@@ -658,7 +658,7 @@
|
||||
|
||||
--- a/components/search_engines/template_url.cc
|
||||
+++ b/components/search_engines/template_url.cc
|
||||
@@ -1682,6 +1682,8 @@ bool TemplateURL::IsBetterThanConflictin
|
||||
@@ -1688,6 +1688,8 @@ bool TemplateURL::IsBetterThanConflictin
|
||||
: base::Time(),
|
||||
// Prefer engines that CANNOT be auto-replaced.
|
||||
!engine->safe_for_autoreplace(),
|
||||
@@ -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
|
||||
@@ -1876,6 +1876,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1853,6 +1853,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
|
||||
@@ -2112,6 +2112,12 @@
|
||||
@@ -1858,6 +1858,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>
|
||||
@@ -745,7 +745,7 @@
|
||||
label="$i18n{heliumExtProxyToggle}"
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -173,6 +173,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -191,6 +191,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
{
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
@@ -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
|
||||
@@ -1722,7 +1722,10 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
@@ -1642,7 +1642,10 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
|
||||
std::u16string OmniboxEditModel::MaybeStripKeyword(
|
||||
const std::u16string& text) const {
|
||||
@@ -790,7 +790,7 @@
|
||||
? AutocompleteInput::SplitReplacementStringFromInput(text, false)
|
||||
: text;
|
||||
}
|
||||
@@ -2976,9 +2979,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
|
||||
@@ -2857,9 +2860,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
|
||||
return false;
|
||||
|
||||
size_t keyword_length = new_text.length() - 1;
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "chrome/browser/apps/app_discovery_service/app_discovery_service.h"
|
||||
#include "chrome/browser/browser_features.h"
|
||||
#include "chrome/browser/browser_process.h"
|
||||
+#include "chrome/browser/channel_selection.h"
|
||||
#include "chrome/browser/devtools/features.h"
|
||||
#include "chrome/browser/flag_descriptions.h"
|
||||
#include "chrome/browser/ip_protection/ip_protection_switches.h"
|
||||
@@ -4733,11 +4734,13 @@ const FeatureEntry::FeatureVariation kHi
|
||||
#include "chrome/browser/bromite_flag_choices.h"
|
||||
#include "chrome/browser/ungoogled_platform_flag_choices.h"
|
||||
#include "chrome/browser/existing_switch_flag_choices.h"
|
||||
+#include "chrome/browser/helium_flag_choices.h"
|
||||
const FeatureEntry kFeatureEntries[] = {
|
||||
#include "chrome/browser/ungoogled_flag_entries.h"
|
||||
#include "chrome/browser/bromite_flag_entries.h"
|
||||
#include "chrome/browser/ungoogled_platform_flag_entries.h"
|
||||
#include "chrome/browser/existing_switch_flag_entries.h"
|
||||
+#include "chrome/browser/helium_flag_entries.h"
|
||||
// Include generated flags for flag unexpiry; see //docs/flag_expiry.md and
|
||||
// //tools/flags/generate_unexpire_flags.py.
|
||||
#include "build/chromeos_buildflags.h"
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/channel_selection.cc
|
||||
@@ -0,0 +1,25 @@
|
||||
+#include <string>
|
||||
+
|
||||
+#include "base/command_line.h"
|
||||
+#include "chrome/browser/channel_selection.h"
|
||||
+
|
||||
+
|
||||
+namespace helium {
|
||||
+
|
||||
+std::string GetSelectedChannel() {
|
||||
+ auto* command_line = base::CommandLine::ForCurrentProcess();
|
||||
+
|
||||
+ if (command_line->HasSwitch(kChannelCommandLine)) {
|
||||
+ std::string override_channel =
|
||||
+ command_line->GetSwitchValueASCII(kChannelCommandLine);
|
||||
+
|
||||
+ if ((override_channel == kChannelStable) ||
|
||||
+ (override_channel == kChannelBeta)) {
|
||||
+ return override_channel;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return kChannelStable;
|
||||
+}
|
||||
+
|
||||
+} // namespace helium
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/channel_selection.h
|
||||
@@ -0,0 +1,15 @@
|
||||
+#ifndef CHROME_BROWSER_CHANNEL_SELECTION_H_
|
||||
+#define CHROME_BROWSER_CHANNEL_SELECTION_H_
|
||||
+
|
||||
+#include <string>
|
||||
+namespace helium {
|
||||
+
|
||||
+constexpr const char kChannelCommandLine[] = "helium-update-channel";
|
||||
+
|
||||
+constexpr const char kChannelStable[] = "stable";
|
||||
+constexpr const char kChannelBeta[] = "beta";
|
||||
+
|
||||
+std::string GetSelectedChannel();
|
||||
+
|
||||
+} // namespace helium
|
||||
+#endif /* CHROME_BROWSER_CHANNEL_SELECTION_H_ */
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -0,0 +1,18 @@
|
||||
+#ifndef CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_
|
||||
+
|
||||
+#include "components/webui/flags/feature_entry.h"
|
||||
+#include "chrome/browser/channel_selection.h"
|
||||
+
|
||||
+namespace helium {
|
||||
+ using namespace ::helium;
|
||||
+
|
||||
+ constexpr const FeatureEntry::Choice kChannelChoices[] = {
|
||||
+ {flags_ui::kGenericExperimentChoiceAutomatic, "", ""},
|
||||
+ {kChannelStable, kChannelCommandLine, kChannelStable},
|
||||
+ {kChannelBeta, kChannelCommandLine, kChannelBeta},
|
||||
+ };
|
||||
+
|
||||
+} // namespace helium
|
||||
+
|
||||
+#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -0,0 +1,6 @@
|
||||
+#ifndef CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
+ {helium::kChannelCommandLine,
|
||||
+ "Update channel", "Selects which update channel to use for update checking. Helium flag.",
|
||||
+ kOsAll, MULTI_VALUE_TYPE(helium::kChannelChoices)},
|
||||
+#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -281,6 +281,8 @@ static_library("browser") {
|
||||
"btm/btm_browser_signin_detector_factory.h",
|
||||
"btm/stateful_bounce_counter.cc",
|
||||
"btm/stateful_bounce_counter.h",
|
||||
+ "channel_selection.cc",
|
||||
+ "channel_selection.h",
|
||||
"chained_back_navigation_tracker.cc",
|
||||
"chained_back_navigation_tracker.h",
|
||||
"child_process_host_flags.h",
|
||||
@@ -0,0 +1,150 @@
|
||||
TODO: guard services_page.html with is_mac
|
||||
|
||||
--- a/components/helium_services/pref_names.h
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -27,6 +27,9 @@ inline constexpr char kHeliumExtProxyEna
|
||||
inline constexpr char kHeliumBangsEnabled[] =
|
||||
"helium.services.bangs";
|
||||
|
||||
+inline constexpr char kHeliumUpdateFetchingEnabled[] =
|
||||
+ "helium.services.browser_updates";
|
||||
+
|
||||
inline constexpr char kHeliumSpellcheckEnabled[] =
|
||||
"helium.services.spellcheck_files";
|
||||
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -20,10 +20,12 @@ const char kHeliumDummyOrigin[] =
|
||||
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldFetchBangs(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessUpdateService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetExtensionUpdateURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetSpellcheckURL(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetBrowserUpdateURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <optional>
|
||||
|
||||
#include "base/functional/bind.h"
|
||||
+#include "base/strings/stringprintf.h"
|
||||
#include "components/helium_services/pref_names.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "net/base/url_util.h"
|
||||
@@ -15,6 +16,12 @@
|
||||
|
||||
namespace helium {
|
||||
|
||||
+#if defined(ARCH_CPU_ARM_FAMILY)
|
||||
+constexpr std::string cpu_arch = "arm64";
|
||||
+#else
|
||||
+constexpr std::string cpu_arch = "x86_64";
|
||||
+#endif
|
||||
+
|
||||
std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_) {
|
||||
if (user_url_.empty()) {
|
||||
return std::nullopt;
|
||||
@@ -76,6 +83,11 @@ bool ShouldFetchBangs(const PrefService&
|
||||
prefs.GetBoolean(prefs::kHeliumBangsEnabled);
|
||||
}
|
||||
|
||||
+bool ShouldAccessUpdateService(const PrefService& prefs) {
|
||||
+ return ShouldAccessServices(prefs) &&
|
||||
+ prefs.GetBoolean(prefs::kHeliumUpdateFetchingEnabled);
|
||||
+}
|
||||
+
|
||||
GURL GetExtensionUpdateURL(const PrefService& prefs) {
|
||||
if (!ShouldAccessExtensionService(prefs)) {
|
||||
return GetDummyURL();
|
||||
@@ -92,6 +104,20 @@ GURL GetSpellcheckURL(const PrefService&
|
||||
return GetServicesBaseURL(prefs).Resolve("/dict/");
|
||||
}
|
||||
|
||||
+GURL GetBrowserUpdateURL(const PrefService& prefs) {
|
||||
+ if (!ShouldAccessUpdateService(prefs)) {
|
||||
+ return GetDummyURL();
|
||||
+ }
|
||||
+
|
||||
+#if BUILDFLAG(IS_MAC)
|
||||
+ std::string path = base::StringPrintf(
|
||||
+ "/updates/mac/appcast-%s.xml", cpu_arch);
|
||||
+ return GetServicesBaseURL(prefs).Resolve(path);
|
||||
+#else
|
||||
+ return GetDummyURL();
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
--- a/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
@@ -29,6 +29,13 @@
|
||||
sub-label="$i18n{heliumSpellcheckToggleDescription}">
|
||||
</settings-toggle-button>
|
||||
</if>
|
||||
+ <if expr="is_macosx">
|
||||
+ <settings-toggle-button id="updatesToggleButton"
|
||||
+ pref="{{prefs.helium.services.browser_updates}}"
|
||||
+ label="$i18n{heliumUpdatesToggle}"
|
||||
+ sub-label="$i18n{heliumUpdatesToggleDescription}">
|
||||
+ </settings-toggle-button>
|
||||
+ </if>
|
||||
</cr-collapse>
|
||||
</div>
|
||||
</div>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1861,6 +1861,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
|
||||
{"heliumExtProxyToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION},
|
||||
+ {"heliumUpdatesToggle",
|
||||
+ IDS_SETTINGS_HELIUM_SERVICES_UPDATE},
|
||||
+ {"heliumUpdatesToggleDescription",
|
||||
+ IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION},
|
||||
{"heliumOriginOverride", IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE},
|
||||
{"heliumOriginOverrideDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -359,6 +359,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumSpellcheckEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
+ (*s_allowlist)[::prefs::kHeliumUpdateFetchingEnabled] =
|
||||
+ settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumServicesOrigin] =
|
||||
settings_api::PrefType::kString;
|
||||
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -202,6 +202,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
|
||||
+ registry->RegisterBooleanPref(prefs::kHeliumUpdateFetchingEnabled, true);
|
||||
}
|
||||
|
||||
registry->RegisterBooleanPref(
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1870,6 +1870,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
|
||||
When enabled, Helium will fetch dictionary files used for spell checking when requested.
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE" desc="Toggle for automatic update downloads">
|
||||
+ Allow fetching browser updates
|
||||
+ </message>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION" desc="Description of the toggle for automatic update downloads">
|
||||
+ When enabled, Helium will download and install browser updates whenever they are available.
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE" desc="Text input for overriding the Helium services server">
|
||||
Use your own instance of Helium services
|
||||
</message>
|
||||
@@ -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
|
||||
@@ -2216,7 +2216,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2255,7 +2255,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
|
||||
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
|
||||
AppendLiveCaptionItem();
|
||||
@@ -8,7 +8,7 @@
|
||||
if (IsRegionSearchEnabled()) {
|
||||
AppendRegionSearchItem();
|
||||
}
|
||||
@@ -2344,8 +2343,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
@@ -2383,8 +2382,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
|
||||
void RenderViewContextMenu::AppendReadingModeItem() {
|
||||
// Show Read Anything option if it's not already open in the side panel.
|
||||
@@ -18,7 +18,15 @@
|
||||
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
|
||||
IDS_CONTENT_CONTEXT_READING_MODE);
|
||||
}
|
||||
@@ -3976,6 +3974,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
@@ -3635,6 +3633,7 @@ void RenderViewContextMenu::ExecuteComma
|
||||
}
|
||||
|
||||
void RenderViewContextMenu::AddSpellCheckServiceItem(bool is_checked) {
|
||||
+ return;
|
||||
AddSpellCheckServiceItem(&menu_model_, is_checked);
|
||||
}
|
||||
|
||||
@@ -4005,6 +4004,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
|
||||
bool draw_icon,
|
||||
bool add_separator) {
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
ui::VKEY_N},
|
||||
--- a/chrome/browser/ui/views/accelerator_table.cc
|
||||
+++ b/chrome/browser/ui/views/accelerator_table.cc
|
||||
@@ -265,7 +265,7 @@ const AcceleratorMapping kDevToolsAccele
|
||||
@@ -267,7 +267,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
|
||||
@@ -457,14 +457,14 @@ bool DoesBookmarkContainWords(const std:
|
||||
@@ -449,7 +449,7 @@ bool DoesBookmarkContainWords(const std:
|
||||
|
||||
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterBooleanPref(
|
||||
@@ -9,11 +9,3 @@
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterBooleanPref(prefs::kEditBookmarksEnabled, true);
|
||||
registry->RegisterBooleanPref(
|
||||
prefs::kShowAppsShortcutInBookmarkBar, false,
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterBooleanPref(
|
||||
- prefs::kShowTabGroupsInBookmarkBar, true,
|
||||
+ prefs::kShowTabGroupsInBookmarkBar, false,
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterBooleanPref(
|
||||
prefs::kShowManagedBookmarksInBookmarkBar, true,
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
uses the favicon.ico url from prepopulated_search_engines.json instead
|
||||
of relying on google favicons (why is this a thing?)
|
||||
|
||||
--- a/tools/search_engine_choice/download_search_engine_icons.py
|
||||
+++ b/tools/search_engine_choice/download_search_engine_icons.py
|
||||
@@ -23,6 +23,8 @@ import requests
|
||||
|
||||
import search_engine_icons_utils
|
||||
|
||||
+from PIL import Image
|
||||
+from io import BytesIO
|
||||
|
||||
def get_image_hash(image_path):
|
||||
"""Gets the hash of the image that's passed as argument.
|
||||
@@ -84,9 +86,12 @@ def download_icons_from_android_search()
|
||||
delete_files_in_directory(
|
||||
f'components/resources/default_{percent}_percent/search_engine_choice')
|
||||
|
||||
- with open(search_engine_icons_utils.config_file_path, 'r',
|
||||
+ with open(search_engine_icons_utils.prepopulated_engines_file_path, 'r',
|
||||
+ encoding='utf-8') as engines_json, open(
|
||||
+ search_engine_icons_utils.config_file_path, 'r',
|
||||
encoding='utf-8') as config_json:
|
||||
config_data = json.loads(json_comment_eater.Nom(config_json.read()))
|
||||
+ engine_data = json.loads(json_comment_eater.Nom(engines_json.read()))
|
||||
icon_hash_to_name = {}
|
||||
|
||||
for (engine, keyword) in sorted(
|
||||
@@ -96,34 +101,20 @@ def download_icons_from_android_search()
|
||||
if engine in config_data['engine_aliases']:
|
||||
engine = config_data['engine_aliases'][engine]
|
||||
|
||||
- directory_url = f'https://www.gstatic.com/android_search/search_providers/{engine}/'
|
||||
- try_filenames = []
|
||||
- if engine in config_data['non_default_icon_filenames']:
|
||||
- try_filenames = [
|
||||
- config_data['non_default_icon_filenames'][engine] + 'mdpi.png'
|
||||
- ]
|
||||
- try_filenames = try_filenames + [
|
||||
- f'{engine}_icon_mdpi.png',
|
||||
- f'{engine}_mdpi.png',
|
||||
- 'mdpi.png',
|
||||
- ]
|
||||
- any_found = False
|
||||
- for filename in try_filenames:
|
||||
- icon_url = directory_url + filename
|
||||
- try:
|
||||
- img_data = requests.get(icon_url)
|
||||
- except requests.exceptions.RequestException as e:
|
||||
- print('Error when loading URL {icon_url}: {e}')
|
||||
- continue
|
||||
- if img_data.status_code == 200:
|
||||
- with open(icon_full_path, 'wb') as icon_file:
|
||||
- icon_file.write(img_data.content)
|
||||
- any_found = True
|
||||
- break
|
||||
- if not any_found:
|
||||
- print('WARNING: no icon found for search engine: ' + engine)
|
||||
+ icon_url = engine_data['elements'][engine]['favicon_url']
|
||||
+ try:
|
||||
+ img_data = requests.get(icon_url)
|
||||
+ except requests.exceptions.RequestException as e:
|
||||
+ print('Error when loading URL {icon_url}: {e}')
|
||||
continue
|
||||
|
||||
+ if img_data.status_code == 200:
|
||||
+ img = Image.open(BytesIO(img_data.content))
|
||||
+ img.save(icon_full_path, format='png')
|
||||
+ else:
|
||||
+ print('WARNING: no icon found for search engine: ' + engine)
|
||||
+ break
|
||||
+
|
||||
icon_hash = get_image_hash(icon_full_path)
|
||||
if icon_hash in icon_hash_to_name:
|
||||
# We already have this icon.
|
||||
@@ -131,27 +122,6 @@ def download_icons_from_android_search()
|
||||
os.remove(icon_full_path)
|
||||
continue
|
||||
|
||||
- # Download hidpi versions
|
||||
- # If the low dpi version is basename_mdpi.png, download basename_xhdpi.png
|
||||
- # and basename_xxhdpi.png.
|
||||
- for (resource_path, hidpi) in [('default_200_percent', 'xhdpi'),
|
||||
- ('default_300_percent', 'xxhdpi')]:
|
||||
- # Replace the substring "mdpi" by "xhdpi" or "xxhdpi" from the end.
|
||||
- (basename, mdpi_suffix, png_extension) = icon_url.rpartition('mdpi')
|
||||
- hidpi_url = basename + hidpi + png_extension
|
||||
- hidpi_path = f'components/resources/{resource_path}/search_engine_choice/{icon_name}.png'
|
||||
- try:
|
||||
- img_data = requests.get(hidpi_url)
|
||||
- except requests.exceptions.RequestException as e:
|
||||
- print('Error when loading URL {hidpi_url}: {e}')
|
||||
- continue
|
||||
- if img_data.status_code == 200:
|
||||
- with open(hidpi_path, 'wb') as icon_file:
|
||||
- icon_file.write(img_data.content)
|
||||
- else:
|
||||
- print('WARNING: no %s icon found for search engine: %s' %
|
||||
- (hidpi, engine))
|
||||
-
|
||||
engine_keyword_to_icon_name[keyword] = icon_name
|
||||
icon_hash_to_name[icon_hash] = icon_name
|
||||
print('Finished downloading icons')
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -157,12 +157,7 @@ BASE_FEATURE(kTabGroupsCollapseFreezing,
|
||||
@@ -171,12 +171,7 @@ BASE_FEATURE(kTabGroupsCollapseFreezing,
|
||||
// https://crbug.com/928954
|
||||
BASE_FEATURE(kTabHoverCardImages,
|
||||
"TabHoverCardImages",
|
||||
|
||||
@@ -21,23 +21,23 @@
|
||||
const std::optional<std::string>& tab_search_action =
|
||||
actions::ActionIdMap::ActionIdToString(kActionTabSearch);
|
||||
if (tab_search_action.has_value()) {
|
||||
--- a/chrome/common/chrome_features.cc
|
||||
+++ b/chrome/common/chrome_features.cc
|
||||
@@ -535,7 +535,7 @@ BASE_FEATURE(kGlicUnloadOnClose,
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -420,7 +420,7 @@ BASE_FEATURE(kTabStripBrowserApi,
|
||||
|
||||
BASE_FEATURE(kTabstripComboButton,
|
||||
"TabstripComboButton",
|
||||
- base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+ base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
bool IsTabSearchMoving() {
|
||||
return base::FeatureList::IsEnabled(features::kTabstripComboButton) &&
|
||||
@@ -549,7 +549,7 @@ const base::FeatureParam<bool> kTabstrip
|
||||
BASE_FEATURE(kLaunchedTabSearchToolbarButton,
|
||||
"LaunchedTabSearchToolbarButton",
|
||||
@@ -438,7 +438,7 @@ const base::FeatureParam<bool> kTabstrip
|
||||
&kTabstripComboButton, "reverse_button_order", false};
|
||||
|
||||
const base::FeatureParam<bool> kTabSearchToolbarButton{
|
||||
- &kTabstripComboButton, "tab_search_toolbar_button", false};
|
||||
+ &kTabstripComboButton, "tab_search_toolbar_button", true};
|
||||
|
||||
bool HasTabstripComboButtonWithBackground() {
|
||||
return IsTabSearchMoving() &&
|
||||
static std::string GetCountryCode() {
|
||||
if (!g_browser_process || !g_browser_process->variations_service()) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/resources/BUILD.gn
|
||||
+++ b/components/resources/BUILD.gn
|
||||
@@ -93,7 +93,7 @@ grit("components_resources") {
|
||||
@@ -92,7 +92,7 @@ grit("components_resources") {
|
||||
deps += [ "//components/resources/ssl/ssl_error_assistant:make_ssl_error_assistant_protobuf" ]
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
--- a/build/config/chrome_build.gni
|
||||
+++ b/build/config/chrome_build.gni
|
||||
@@ -88,4 +88,4 @@ declare_args() {
|
||||
|
||||
# Whether to enable built-in branding assets (logos & marketing snippets) for
|
||||
# search providers in choice UIs.
|
||||
-enable_builtin_search_provider_assets = is_chrome_branded && !is_android
|
||||
+enable_builtin_search_provider_assets = !is_android
|
||||
--- a/components/resources/search_engine_choice_scaled_resources.grdp
|
||||
+++ b/components/resources/search_engine_choice_scaled_resources.grdp
|
||||
@@ -1,7 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<grit-part>
|
||||
- <if expr="_google_chrome">
|
||||
- <structure type="chrome_scaled_image" name="IDR_GOOGLE_COM_PNG" file="google_chrome/google_search_logo.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_SEARCH_ENGINE_GOOGLE_IMAGE" file="google_chrome/google_search_logo.png" />
|
||||
- </if>
|
||||
+ <structure type="chrome_scaled_image" name="IDR_GOOGLE_COM_PNG" file="search_engine_choice/google_com.png" />
|
||||
+ <structure type="chrome_scaled_image" name="IDR_SEARCH_ENGINE_GOOGLE_IMAGE" file="search_engine_choice/google_com.png" />
|
||||
</grit-part>
|
||||
@@ -0,0 +1,21 @@
|
||||
--- a/chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_model_listener.cc
|
||||
+++ b/chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_model_listener.cc
|
||||
@@ -191,17 +191,7 @@ void SavedTabGroupModelListener::OnTabSt
|
||||
|
||||
return;
|
||||
}
|
||||
- case TabStripModelChange::kSelectionOnly: {
|
||||
- if (selection.active_tab_changed()) {
|
||||
- CHECK(selection.new_tab)
|
||||
- << "Selection change detected but no new tab was selected.";
|
||||
- service_->OnTabSelected(
|
||||
- /*group_id=*/selection.new_tab->GetGroup(),
|
||||
- /*tab_id=*/selection.new_tab->GetHandle().raw_value(),
|
||||
- /*title=*/selection.new_tab->GetContents()->GetTitle());
|
||||
- }
|
||||
- return;
|
||||
- }
|
||||
+ case TabStripModelChange::kSelectionOnly:
|
||||
case TabStripModelChange::kInserted:
|
||||
case TabStripModelChange::kReplaced:
|
||||
case TabStripModelChange::kRemoved: {
|
||||
@@ -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"
|
||||
@@ -2414,14 +2412,9 @@ void AddSearchStrings(content::WebUIData
|
||||
@@ -2388,14 +2386,9 @@ void AddSearchStrings(content::WebUIData
|
||||
html_source->AddString("searchExplanationLearnMoreURL",
|
||||
chrome::kOmniboxLearnMoreURL);
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -544,6 +544,7 @@
|
||||
@@ -546,6 +546,7 @@
|
||||
#define TOOLBAR_PINNABLE_ACTION_IDS \
|
||||
E(kActionHome, IDC_HOME) \
|
||||
E(kActionForward, IDC_FORWARD) \
|
||||
@@ -23,7 +23,7 @@
|
||||
E(kActionShowPasswordManager, IDC_SHOW_PASSWORD_MANAGER) \
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -93,6 +93,9 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -109,6 +109,9 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kPinSplitTabButton, false,
|
||||
pref_registration_flags);
|
||||
|
||||
@@ -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
|
||||
@@ -461,8 +461,7 @@ void ToolbarView::Init() {
|
||||
@@ -468,8 +468,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()->
|
||||
@@ -531,6 +530,17 @@ void ToolbarView::Init() {
|
||||
@@ -538,6 +537,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_,
|
||||
@@ -1241,6 +1251,10 @@ void ToolbarView::OnShowHomeButtonChange
|
||||
@@ -1260,6 +1270,10 @@ void ToolbarView::OnShowHomeButtonChange
|
||||
home_->SetVisible(show_home_button_.GetValue());
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
// Update the internal margins for touch layout.
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
@@ -279,6 +279,8 @@ class ToolbarView : public views::Access
|
||||
@@ -287,6 +287,8 @@ class ToolbarView : public views::Access
|
||||
|
||||
void OnShowHomeButtonChanged();
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
void OnTouchUiChanged();
|
||||
|
||||
void UpdateClipPath();
|
||||
@@ -330,6 +332,8 @@ class ToolbarView : public views::Access
|
||||
@@ -338,6 +340,8 @@ class ToolbarView : public views::Access
|
||||
// Controls whether or not a home button should be shown on the toolbar.
|
||||
BooleanPrefMember show_home_button_;
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -545,6 +545,7 @@
|
||||
@@ -547,6 +547,7 @@
|
||||
E(kActionHome, IDC_HOME) \
|
||||
E(kActionForward, IDC_FORWARD) \
|
||||
E(kActionAvatar, IDC_SHOW_AVATAR_MENU) \
|
||||
@@ -21,7 +21,7 @@
|
||||
E(kActionShowPasswordManager, IDC_SHOW_PASSWORD_MANAGER) \
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -95,6 +95,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -111,6 +111,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
registry->RegisterBooleanPref(
|
||||
prefs::kShowAvatarButton, true);
|
||||
@@ -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
|
||||
@@ -550,7 +550,9 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
@@ -549,7 +549,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();
|
||||
@@ -957,7 +959,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
@@ -956,7 +958,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
|
||||
@@ -541,6 +541,14 @@ void ToolbarView::Init() {
|
||||
@@ -548,6 +548,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_,
|
||||
@@ -1255,6 +1263,10 @@ void ToolbarView::OnShowAvatarButtonChan
|
||||
@@ -1274,6 +1282,10 @@ void ToolbarView::OnShowAvatarButtonChan
|
||||
avatar_->SetVisible(show_avatar_button_.GetValue());
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
// Update the internal margins for touch layout.
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
@@ -281,6 +281,8 @@ class ToolbarView : public views::Access
|
||||
@@ -289,6 +289,8 @@ class ToolbarView : public views::Access
|
||||
|
||||
void OnShowAvatarButtonChanged();
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
void OnTouchUiChanged();
|
||||
|
||||
void UpdateClipPath();
|
||||
@@ -334,6 +336,8 @@ class ToolbarView : public views::Access
|
||||
@@ -342,6 +344,8 @@ class ToolbarView : public views::Access
|
||||
|
||||
BooleanPrefMember show_avatar_button_;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
|
||||
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
|
||||
@@ -177,30 +177,14 @@
|
||||
@@ -166,30 +166,14 @@
|
||||
"id": 114
|
||||
},
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
- "image_url_post_params": "encoded_image={google:imageThumbnail},image_url={google:imageURL},sbisrc={google:imageSearchSource},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},processed_image_dimensions={google:processedImageDimensions}",
|
||||
- "image_translate_source_language_param_key": "sourcelang",
|
||||
- "image_translate_target_language_param_key": "targetlang",
|
||||
- "search_intent_params": ["si", "gs_ssp"],
|
||||
- "search_intent_params": ["si", "gs_ssp", "udm"],
|
||||
- "alternate_urls": [
|
||||
- "{google:baseURL}#q={searchTerms}",
|
||||
- "{google:baseURL}search#q={searchTerms}",
|
||||
@@ -69,50 +69,6 @@
|
||||
|
||||
// Now check the rest of the prepopulate data.
|
||||
for (const auto* engine : TemplateURLPrepopulateData::kAllEngines) {
|
||||
--- a/tools/search_engine_choice/generate_search_engine_icons.py
|
||||
+++ b/tools/search_engine_choice/generate_search_engine_icons.py
|
||||
@@ -18,6 +18,8 @@ def generate_icon_path_map(output_filena
|
||||
'\tbase::MakeFixedFlatMap<std::u16string_view, std::string_view>({\n')
|
||||
|
||||
for engine_keyword in engine_keywords:
|
||||
+ if engine_keyword == "google.com":
|
||||
+ continue
|
||||
resource_name = search_engine_icons_utils.keyword_to_resource_name(
|
||||
engine_keyword)
|
||||
utils_file.write('\t\t{')
|
||||
@@ -26,11 +28,7 @@ def generate_icon_path_map(output_filena
|
||||
|
||||
# Add Google to the map
|
||||
utils_file.write('\t\t{u"google.com",\n')
|
||||
- utils_file.write('#if BUILDFLAG(GOOGLE_CHROME_BRANDING)\n')
|
||||
utils_file.write('\t\t "chrome://theme/IDR_GOOGLE_COM_PNG"\n')
|
||||
- utils_file.write('#else\n')
|
||||
- utils_file.write('\t\t "chrome://theme/IDR_DEFAULT_FAVICON"\n')
|
||||
- utils_file.write('#endif\n')
|
||||
utils_file.write('\t}});\n')
|
||||
|
||||
|
||||
@@ -45,6 +43,8 @@ def generate_icon_resource_id_map(output
|
||||
utils_file.write('\tbase::MakeFixedFlatMap<std::u16string_view, int>({\n')
|
||||
|
||||
for engine_keyword in engine_keywords:
|
||||
+ if engine_keyword == "google.com":
|
||||
+ continue
|
||||
resource_name = search_engine_icons_utils.keyword_to_resource_name(
|
||||
engine_keyword)
|
||||
utils_file.write('\t\t{')
|
||||
@@ -53,11 +53,7 @@ def generate_icon_resource_id_map(output
|
||||
|
||||
# Add Google to the map
|
||||
utils_file.write('\t\t{u"google.com",\n')
|
||||
- utils_file.write('#if BUILDFLAG(GOOGLE_CHROME_BRANDING)\n')
|
||||
utils_file.write('\t\t IDR_GOOGLE_COM_PNG\n')
|
||||
- utils_file.write('#else\n')
|
||||
- utils_file.write('\t\t IDR_DEFAULT_FAVICON\n')
|
||||
- utils_file.write('#endif\n')
|
||||
utils_file.write('\t}});\n\n')
|
||||
|
||||
|
||||
--- 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,18 @@
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -174,6 +174,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -192,6 +192,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
{
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
@@ -61,7 +61,7 @@
|
||||
whats_new::LogStartupType(whats_new::StartupType::kIneligible);
|
||||
--- a/tools/gritsettings/resource_ids.spec
|
||||
+++ b/tools/gritsettings/resource_ids.spec
|
||||
@@ -1135,6 +1135,10 @@
|
||||
@@ -1155,6 +1155,10 @@
|
||||
"META": {"sizes": {"includes": [30],}},
|
||||
"includes": [7480],
|
||||
},
|
||||
@@ -74,17 +74,17 @@
|
||||
# START ios/ section.
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8498,6 +8498,7 @@ static_library("browser_generated_files"
|
||||
"//chrome/browser/ui/webui/user_education_internals:mojo_bindings",
|
||||
@@ -8601,6 +8601,7 @@ static_library("browser_generated_files"
|
||||
"//chrome/browser/v8_compile_hints/proto",
|
||||
"//chrome/browser/web_applications/mojom:mojom_web_apps_enum",
|
||||
"//chrome/common/request_header_integrity:buildflags",
|
||||
+ "//components/helium_onboarding:generated_resources",
|
||||
"//components/data_sharing/data_sharing_internals/webui:mojo_bindings",
|
||||
"//components/webui/chrome_urls/mojom:mojo_bindings",
|
||||
]
|
||||
if (is_android) {
|
||||
--- a/chrome/chrome_paks.gni
|
||||
+++ b/chrome/chrome_paks.gni
|
||||
@@ -434,11 +434,13 @@ template("chrome_extra_paks") {
|
||||
@@ -452,11 +452,13 @@ template("chrome_extra_paks") {
|
||||
if (!is_android && !is_chromeos) {
|
||||
sources += [
|
||||
"$root_gen_dir/chrome/intro_resources.pak",
|
||||
@@ -110,7 +110,7 @@
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
--- a/chrome/common/webui_url_constants.h
|
||||
+++ b/chrome/common/webui_url_constants.h
|
||||
@@ -571,6 +571,8 @@ inline constexpr char kChromeUIProfilePi
|
||||
@@ -587,6 +587,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
|
||||
@@ -232,6 +232,10 @@ static_library("ui") {
|
||||
@@ -210,6 +210,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
|
||||
@@ -35,6 +35,7 @@
|
||||
@@ -37,6 +37,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"
|
||||
@@ -398,6 +399,7 @@ void RegisterChromeWebUIConfigs() {
|
||||
@@ -414,6 +415,7 @@ void RegisterChromeWebUIConfigs() {
|
||||
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID)
|
||||
map.AddWebUIConfig(std::make_unique<ManagedUserProfileNoticeUIConfig>());
|
||||
map.AddWebUIConfig(std::make_unique<IntroUIConfig>());
|
||||
@@ -499,10 +499,10 @@
|
||||
}
|
||||
--- a/chrome/browser/ui/browser_navigator.cc
|
||||
+++ b/chrome/browser/ui/browser_navigator.cc
|
||||
@@ -579,7 +579,8 @@ bool IsHostAllowedInIncognito(const GURL
|
||||
@@ -578,7 +578,8 @@ bool IsHostAllowedInIncognito(const GURL
|
||||
host != chrome::kChromeUIHelpHost &&
|
||||
host != chrome::kChromeUIHistoryHost &&
|
||||
host != chrome::kChromeUIExtensionsHost &&
|
||||
host != chrome::kChromeUIBookmarksHost &&
|
||||
- host != password_manager::kChromeUIPasswordManagerHost;
|
||||
+ host != password_manager::kChromeUIPasswordManagerHost &&
|
||||
+ host != chrome::kHeliumSetupHost;
|
||||
@@ -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
|
||||
@@ -340,7 +340,9 @@ void SearchEnginesHandler::HandleSetDefa
|
||||
@@ -344,7 +344,9 @@ void SearchEnginesHandler::HandleSetDefa
|
||||
CHECK(choice_made_location ==
|
||||
search_engines::ChoiceMadeLocation::kSearchSettings ||
|
||||
choice_made_location ==
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
// Prevent future modification of the scheme lists. This is to prevent
|
||||
--- a/content/renderer/render_thread_impl.cc
|
||||
+++ b/content/renderer/render_thread_impl.cc
|
||||
@@ -957,10 +957,18 @@ void RenderThreadImpl::RegisterSchemes()
|
||||
@@ -954,10 +954,18 @@ void RenderThreadImpl::RegisterSchemes()
|
||||
chrome_scheme);
|
||||
WebSecurityPolicy::RegisterURLSchemeAsWebUI(chrome_scheme);
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -634,6 +635,12 @@ base::WeakPtr<content::NavigationHandle>
|
||||
@@ -633,6 +634,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
|
||||
@@ -1062,7 +1062,8 @@ bool ExtensionTabUtil::IsKillURL(const G
|
||||
@@ -1113,7 +1113,8 @@ bool ExtensionTabUtil::IsKillURL(const G
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser.cc
|
||||
+++ b/chrome/browser/ui/browser.cc
|
||||
@@ -2212,6 +2212,13 @@ void Browser::SetContentsBounds(WebConte
|
||||
@@ -2280,6 +2280,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 =
|
||||
@@ -2219,7 +2226,7 @@ void Browser::UpdateTargetURL(WebContent
|
||||
@@ -2287,7 +2294,7 @@ void Browser::UpdateTargetURL(WebContent
|
||||
ContentsWebView* anchor =
|
||||
static_cast<ContentsWebView*>(status_bubble_views->base_view());
|
||||
if (source == anchor->GetWebContents()) {
|
||||
@@ -155,7 +155,7 @@
|
||||
}
|
||||
--- a/components/omnibox/browser/omnibox_edit_model.cc
|
||||
+++ b/components/omnibox/browser/omnibox_edit_model.cc
|
||||
@@ -67,6 +67,7 @@
|
||||
@@ -69,6 +69,7 @@
|
||||
#include "components/search_engines/template_url_service.h"
|
||||
#include "components/search_engines/template_url_starter_pack_data.h"
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
@@ -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"
|
||||
@@ -597,6 +598,12 @@ void OmniboxEditModel::AdjustTextForCopy
|
||||
@@ -509,6 +510,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
|
||||
@@ -827,7 +827,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode,
|
||||
@@ -851,7 +851,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode,
|
||||
// possible.
|
||||
BASE_FEATURE(kHttpsFirstBalancedModeAutoEnable,
|
||||
"HttpsFirstBalancedModeAutoEnable",
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
+#endif // EXTENSIONS_COMMON_MANIFEST_URL_PATCHER_H_
|
||||
--- a/extensions/common/BUILD.gn
|
||||
+++ b/extensions/common/BUILD.gn
|
||||
@@ -449,6 +449,8 @@ static_library("common") {
|
||||
@@ -450,6 +450,8 @@ static_library("common") {
|
||||
"manifest_handlers/webview_info.h",
|
||||
"manifest_url_handlers.cc",
|
||||
"manifest_url_handlers.h",
|
||||
@@ -177,7 +177,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -173,6 +173,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -191,6 +191,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
{
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
@@ -201,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
|
||||
@@ -1876,6 +1876,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1853,6 +1853,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
{"heliumServicesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
@@ -214,7 +214,7 @@
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -2106,6 +2106,12 @@
|
||||
@@ -1852,6 +1852,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>
|
||||
@@ -276,7 +276,7 @@
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
--- a/chrome/browser/extensions/BUILD.gn
|
||||
+++ b/chrome/browser/extensions/BUILD.gn
|
||||
@@ -441,6 +441,7 @@ source_set("extensions") {
|
||||
@@ -470,6 +470,7 @@ source_set("extensions") {
|
||||
"//components/data_sharing/public:features",
|
||||
"//components/embedder_support",
|
||||
"//components/enterprise",
|
||||
@@ -336,7 +336,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/updater/extension_updater.cc
|
||||
+++ b/chrome/browser/extensions/updater/extension_updater.cc
|
||||
@@ -36,7 +36,10 @@
|
||||
@@ -35,7 +35,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"
|
||||
@@ -347,7 +347,7 @@
|
||||
#include "components/update_client/update_query_params.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/browser_task_traits.h"
|
||||
@@ -213,9 +216,6 @@ void ExtensionUpdater::EnsureDownloaderC
|
||||
@@ -212,9 +215,6 @@ void ExtensionUpdater::EnsureDownloaderC
|
||||
if (!downloader_.get()) {
|
||||
downloader_ = downloader_factory_.Run(this);
|
||||
}
|
||||
@@ -357,7 +357,7 @@
|
||||
}
|
||||
|
||||
void ExtensionUpdater::Start() {
|
||||
@@ -237,6 +237,15 @@ void ExtensionUpdater::Start() {
|
||||
@@ -236,6 +236,15 @@ void ExtensionUpdater::Start() {
|
||||
CheckSoon();
|
||||
ScheduleNextCheck();
|
||||
}
|
||||
@@ -373,7 +373,7 @@
|
||||
}
|
||||
|
||||
void ExtensionUpdater::Stop() {
|
||||
@@ -366,7 +375,6 @@ void ExtensionUpdater::AddToDownloader(
|
||||
@@ -365,7 +374,6 @@ void ExtensionUpdater::AddToDownloader(
|
||||
int request_id,
|
||||
DownloadFetchPriority fetch_priority,
|
||||
ExtensionUpdateCheckParams* update_check_params) {
|
||||
@@ -381,7 +381,7 @@
|
||||
|
||||
// In Kiosk mode extensions are downloaded and updated by the ExternalCache.
|
||||
// Therefore we skip updates here to avoid conflicts.
|
||||
@@ -464,7 +472,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
@@ -463,7 +471,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.
|
||||
@@ -390,7 +390,7 @@
|
||||
PendingExtensionManager::Get(profile_);
|
||||
|
||||
ExtensionUpdateCheckParams update_check_params;
|
||||
@@ -597,7 +605,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
@@ -596,7 +604,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
// OnExtensionDownloadFinished for each extension that was checked.
|
||||
downloader_->StartAllPending(extension_cache_);
|
||||
|
||||
@@ -399,7 +399,7 @@
|
||||
update_check_params.priority =
|
||||
params.fetch_priority == DownloadFetchPriority::kBackground
|
||||
? ExtensionUpdateCheckParams::UpdateCheckPriority::BACKGROUND
|
||||
@@ -815,6 +823,9 @@ void ExtensionUpdater::CleanUpCrxFileIfN
|
||||
@@ -814,6 +822,9 @@ void ExtensionUpdater::CleanUpCrxFileIfN
|
||||
|
||||
bool ExtensionUpdater::CanUseUpdateService(
|
||||
const ExtensionId& extension_id) const {
|
||||
@@ -488,7 +488,7 @@
|
||||
<< "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
|
||||
@@ -22,6 +22,7 @@
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "base/observer_list.h"
|
||||
#include "base/time/time.h"
|
||||
#include "base/unguessable_token.h"
|
||||
@@ -496,7 +496,7 @@
|
||||
#include "components/keyed_service/core/keyed_service.h"
|
||||
#include "extensions/browser/extension_registry_observer.h"
|
||||
#include "extensions/browser/extension_system.h"
|
||||
@@ -406,6 +407,8 @@ class ExtensionUpdater : public KeyedSer
|
||||
@@ -405,6 +406,8 @@ class ExtensionUpdater : public KeyedSer
|
||||
raw_ptr<PrefService> prefs_ = nullptr;
|
||||
raw_ptr<Profile> profile_ = nullptr;
|
||||
|
||||
@@ -514,7 +514,7 @@
|
||||
+ void OverrideURL(GURL new_url) { update_url_ = new_url; }
|
||||
+
|
||||
// ShouldAllowInstall() returns the result of running constructor argument
|
||||
// |should_allow_install| on an extension. After an extension is unpacked,
|
||||
// `should_allow_install` on an extension. After an extension is unpacked,
|
||||
// this function is run. If it returns true, the extension is installed.
|
||||
--- a/extensions/browser/pending_extension_manager.h
|
||||
+++ b/extensions/browser/pending_extension_manager.h
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8070,6 +8070,8 @@ static_library("browser") {
|
||||
@@ -8168,6 +8168,8 @@ static_library("browser") {
|
||||
deps += [
|
||||
"//components/spellcheck/browser",
|
||||
"//components/spellcheck/common",
|
||||
@@ -118,7 +118,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -175,6 +175,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -193,6 +193,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumBangsEnabled, true);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumExtProxyEnabled, true);
|
||||
@@ -144,7 +144,7 @@
|
||||
</div>
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -2118,6 +2118,12 @@
|
||||
@@ -1864,6 +1864,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
|
||||
@@ -1877,6 +1877,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1854,6 +1854,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
|
||||
{"heliumBangsToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
--- a/components/resources/search_engine_choice_scaled_resources.grdp
|
||||
+++ b/components/resources/search_engine_choice_scaled_resources.grdp
|
||||
@@ -5,47 +5,10 @@
|
||||
<if expr="_google_chrome">
|
||||
<structure type="chrome_scaled_image" name="IDR_GOOGLE_COM_PNG" file="google_chrome/google_search_logo.png" />
|
||||
</if>
|
||||
- <structure type="chrome_scaled_image" name="IDR_AR_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_AT_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_AU_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
<structure type="chrome_scaled_image" name="IDR_BING_COM_PNG" file="search_engine_choice/bing_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_BR_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_CA_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_CH_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_CL_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_CO_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_DE_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_DK_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
<structure type="chrome_scaled_image" name="IDR_DUCKDUCKGO_COM_PNG" file="search_engine_choice/duckduckgo_com.png" />
|
||||
<structure type="chrome_scaled_image" name="IDR_ECOSIA_ORG_PNG" file="search_engine_choice/ecosia_org.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_EMEA_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_ES_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_FI_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_FR_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_HK_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_ID_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_IN_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_IT_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_LILO_ORG_PNG" file="search_engine_choice/lilo_org.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_MAIL_RU_PNG" file="search_engine_choice/mail_ru.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_MALAYSIA_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_MX_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_NL_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_NZ_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_PE_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_PH_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_PRIVACYWALL_ORG_PNG" file="search_engine_choice/privacywall_org.png" />
|
||||
+ <structure type="chrome_scaled_image" name="IDR_GOOGLE_COM_PNG" file="search_engine_choice/google_com.png" />
|
||||
+ <structure type="chrome_scaled_image" name="IDR_KAGI_COM_PNG" file="search_engine_choice/kagi_com.png" />
|
||||
<structure type="chrome_scaled_image" name="IDR_QWANT_COM_PNG" file="search_engine_choice/qwant_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_SEARCH_BRAVE_COM_PNG" file="search_engine_choice/search_brave_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_SEZNAM_PNG" file="search_engine_choice/seznam.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_SE_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_SG_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_STARTPAGE_COM_PNG" file="search_engine_choice/startpage_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_TH_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_TR_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_TW_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_UK_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_YAHOO_COM_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_YAHOO_CO_JP_PNG" file="search_engine_choice/yahoo_com.png" />
|
||||
- <structure type="chrome_scaled_image" name="IDR_YEP_COM_PNG" file="search_engine_choice/yep_com.png" />
|
||||
</grit-part>
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -2094,6 +2094,31 @@
|
||||
@@ -1840,6 +1840,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
|
||||
@@ -1871,6 +1871,18 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1848,6 +1848,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
|
||||
@@ -97,6 +97,11 @@
|
||||
@@ -95,6 +95,11 @@
|
||||
sub-label="$i18n{permissionsPageDescription}"
|
||||
on-click="onPermissionsPageClick_"
|
||||
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
|
||||
@@ -66,8 +66,8 @@
|
||||
+ role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
|
||||
</div>
|
||||
|
||||
<if expr="use_nss_certs">
|
||||
@@ -191,6 +196,13 @@
|
||||
<template is="dom-if" route-path="/content/v8" no-search>
|
||||
@@ -166,6 +171,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
|
||||
@@ -526,6 +526,12 @@ export class SettingsPrivacyPageElement
|
||||
@@ -460,6 +460,12 @@ export class SettingsPrivacyPageElement
|
||||
Router.getInstance().navigateTo(routes.SITE_SETTINGS);
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
this.metricsBrowserProxy_.recordAction(
|
||||
--- a/chrome/browser/resources/settings/router.ts
|
||||
+++ b/chrome/browser/resources/settings/router.ts
|
||||
@@ -34,6 +34,7 @@ export interface SettingsRoutes {
|
||||
@@ -33,6 +33,7 @@ export interface SettingsRoutes {
|
||||
FONTS: Route;
|
||||
GEMINI: Route;
|
||||
GLIC_SECTION: Route;
|
||||
@@ -119,9 +119,9 @@
|
||||
if (visibility.safetyHub !== false) {
|
||||
--- a/chrome/browser/resources/settings/BUILD.gn
|
||||
+++ b/chrome/browser/resources/settings/BUILD.gn
|
||||
@@ -147,6 +147,7 @@ build_webui("build") {
|
||||
"privacy_page/security_keys_set_pin_dialog.ts",
|
||||
@@ -148,6 +148,7 @@ build_webui("build") {
|
||||
"privacy_page/security_keys_subpage.ts",
|
||||
"privacy_page/security_page_v2.ts",
|
||||
"privacy_page/security_page.ts",
|
||||
+ "privacy_page/services_page.ts",
|
||||
"privacy_sandbox/privacy_sandbox_ad_measurement_subpage.ts",
|
||||
@@ -246,25 +246,25 @@
|
||||
+customElements.define(SettingsHeliumServicesPageElement.is, SettingsHeliumServicesPageElement);
|
||||
--- a/chrome/browser/resources/settings/lazy_load.ts
|
||||
+++ b/chrome/browser/resources/settings/lazy_load.ts
|
||||
@@ -36,6 +36,7 @@ import './privacy_page/security_keys_pho
|
||||
import './privacy_page/security_keys_phones_list.js';
|
||||
@@ -37,6 +37,7 @@ import './privacy_page/security_keys_pho
|
||||
import './privacy_page/security_keys_phones_dialog.js';
|
||||
import './privacy_page/security_page_v2.js';
|
||||
import './privacy_page/security_page.js';
|
||||
+import './privacy_page/services_page.js';
|
||||
import './safety_hub/safety_hub_page.js';
|
||||
import './safety_hub/safety_hub_entry_point.js';
|
||||
import './site_settings/all_sites.js';
|
||||
@@ -218,6 +219,7 @@ export {ResetDialogPage, SettingsSecurit
|
||||
export {SetPinDialogPage, SettingsSecurityKeysSetPinDialogElement} from './privacy_page/security_keys_set_pin_dialog.js';
|
||||
@@ -217,6 +218,7 @@ export {SetPinDialogPage, SettingsSecuri
|
||||
export {SecurityKeysSubpageElement} from './privacy_page/security_keys_subpage.js';
|
||||
export {HttpsFirstModeSetting, SafeBrowsingSetting, SettingsSecurityPageElement} from './privacy_page/security_page.js';
|
||||
export {SettingsSecurityPageV2Element} from './privacy_page/security_page_v2.js';
|
||||
+export {SettingsHeliumServicesPageElement} from './privacy_page/services_page.js';
|
||||
export {SettingsPrivacySandboxAdMeasurementSubpageElement} from './privacy_sandbox/privacy_sandbox_ad_measurement_subpage.js';
|
||||
export {SettingsPrivacySandboxFledgeSubpageElement} from './privacy_sandbox/privacy_sandbox_fledge_subpage.js';
|
||||
export {PrivacySandboxInterestItemElement} from './privacy_sandbox/privacy_sandbox_interest_item.js';
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -13,6 +13,7 @@
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "chrome/browser/upgrade_detector/upgrade_detector.h"
|
||||
#include "chrome/common/buildflags.h"
|
||||
#include "chrome/common/pref_names.h"
|
||||
@@ -272,7 +272,7 @@
|
||||
#include "components/policy/core/common/policy_pref_names.h"
|
||||
#include "components/pref_registry/pref_registry_syncable.h"
|
||||
#include "components/prefs/pref_registry_simple.h"
|
||||
@@ -170,6 +171,11 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -188,6 +189,11 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
false);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -131,7 +131,7 @@ BASE_FEATURE(KScrimForTabModal,
|
||||
@@ -136,7 +136,7 @@ BASE_FEATURE(KScrimForTabModal,
|
||||
"ScrimForTabModal",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
-BASE_FEATURE(kSideBySide, "SideBySide", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kSideBySide, "SideBySide", base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kSidePanelResizing,
|
||||
"SidePanelResizing",
|
||||
BASE_FEATURE(kSideBySideLinkMenuNewBadge,
|
||||
"SideBySideLinkMenuNewBadge",
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_resize_area.cc
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_resize_area.cc
|
||||
@@ -21,8 +21,8 @@
|
||||
@@ -22,8 +22,8 @@
|
||||
namespace {
|
||||
const int kHandleCornerRadius = 2;
|
||||
const int kHandleHeight = 24;
|
||||
@@ -24,7 +24,16 @@
|
||||
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(MultiContentsResizeHandle,
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
@@ -126,11 +126,11 @@ class MultiContentsView : public views::
|
||||
@@ -132,20 +132,16 @@ class MultiContentsView : public views::
|
||||
return contents_container_views_[1]->GetContentsView();
|
||||
}
|
||||
|
||||
- MultiContentsViewMiniToolbar* mini_toolbar_for_testing(int index) const {
|
||||
- return contents_container_views_[index]->GetMiniToolbar();
|
||||
- }
|
||||
-
|
||||
static int contents_inset_for_testing() { return kSplitViewContentInset; }
|
||||
|
||||
private:
|
||||
static constexpr int kMinWebContentsWidth = 200;
|
||||
static constexpr double kMinWebContentsWidthPercentage = 0.1;
|
||||
@@ -39,101 +48,83 @@
|
||||
|
||||
// ContentsContainerView holds the ContentsWebView and the outlines and
|
||||
// minitoolbar when in split view.
|
||||
@@ -159,7 +155,6 @@ class MultiContentsView : public views::
|
||||
~ContentsContainerView() override = default;
|
||||
|
||||
ContentsWebView* GetContentsView() { return contents_view_; }
|
||||
- MultiContentsViewMiniToolbar* GetMiniToolbar() { return mini_toolbar_; }
|
||||
|
||||
private:
|
||||
// LayoutDelegate:
|
||||
@@ -167,7 +162,6 @@ class MultiContentsView : public views::
|
||||
const views::SizeBounds& size_bounds) const override;
|
||||
|
||||
raw_ptr<ContentsWebView> contents_view_;
|
||||
- raw_ptr<MultiContentsViewMiniToolbar> mini_toolbar_;
|
||||
};
|
||||
|
||||
int GetInactiveIndex();
|
||||
--- a/chrome/browser/resources/tab_search/split_view/app.css
|
||||
+++ b/chrome/browser/resources/tab_search/split_view/app.css
|
||||
@@ -27,6 +27,7 @@
|
||||
@@ -50,7 +50,7 @@ picture {
|
||||
|
||||
.body {
|
||||
align-self: center;
|
||||
- color: var(--cr-primary-text-color);
|
||||
+ color: var(--cr-secondary-text-color);
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
margin-top: 4px;
|
||||
+ color: var(--cr-secondary-text-color);
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.cc
|
||||
@@ -235,8 +235,6 @@ MultiContentsView::ContentsContainerView
|
||||
SetLayoutManager(std::make_unique<views::DelegatingLayoutManager>(this));
|
||||
contents_view_ = AddChildView(
|
||||
std::make_unique<ContentsWebView>(browser_view->GetProfile()));
|
||||
- mini_toolbar_ = AddChildView(std::make_unique<MultiContentsViewMiniToolbar>(
|
||||
- browser_view, contents_view_));
|
||||
}
|
||||
|
||||
.contents {
|
||||
--- a/chrome/browser/ui/tabs/split_tab_menu_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/split_tab_menu_model.cc
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "chrome/app/vector_icons/vector_icons.h"
|
||||
#include "chrome/browser/ui/tabs/split_tab_data.h"
|
||||
#include "chrome/browser/ui/tabs/split_tab_visual_data.h"
|
||||
+#include "chrome/browser/ui/tabs/tab_enums.h"
|
||||
#include "chrome/browser/ui/tabs/tab_model.h"
|
||||
#include "chrome/browser/ui/tabs/tab_strip_model.h"
|
||||
#include "chrome/grit/generated_resources.h"
|
||||
@@ -23,12 +24,10 @@
|
||||
#include "ui/menus/simple_menu_model.h"
|
||||
views::ProposedLayout
|
||||
@@ -255,20 +253,6 @@ MultiContentsView::ContentsContainerView
|
||||
layouts.child_layouts.emplace_back(
|
||||
contents_view_.get(), contents_view_->GetVisible(), contents_rect);
|
||||
|
||||
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(SplitTabMenuModel, kSwapPositionMenuItem);
|
||||
-DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(SplitTabMenuModel, kSwapLayoutMenuItem);
|
||||
|
||||
SplitTabMenuModel::SplitTabMenuModel(TabStripModel* tab_strip_model)
|
||||
: ui::SimpleMenuModel(this), tab_strip_model_(tab_strip_model) {
|
||||
AddItem(static_cast<int>(CommandId::kSwapPosition), std::u16string());
|
||||
- AddItem(static_cast<int>(CommandId::kSwapLayout), std::u16string());
|
||||
AddSeparator(ui::MenuSeparatorType::NORMAL_SEPARATOR);
|
||||
AddItemWithStringIdAndIcon(
|
||||
static_cast<int>(CommandId::kClose), IDS_SPLIT_TAB_CLOSE,
|
||||
@@ -43,9 +42,6 @@ SplitTabMenuModel::SplitTabMenuModel(Tab
|
||||
SetElementIdentifierAt(
|
||||
GetIndexOfCommandId(static_cast<int>(CommandId::kSwapPosition)).value(),
|
||||
kSwapPositionMenuItem);
|
||||
- SetElementIdentifierAt(
|
||||
- GetIndexOfCommandId(static_cast<int>(CommandId::kSwapLayout)).value(),
|
||||
- kSwapLayoutMenuItem);
|
||||
- // |mini_toolbar_| should be offset in the bottom right corner, overlapping
|
||||
- // the outline.
|
||||
- gfx::Size mini_toolbar_size = mini_toolbar_->GetPreferredSize(
|
||||
- views::SizeBounds(width - kContentOutlineCornerRadius, height));
|
||||
- const int offset_x =
|
||||
- width - mini_toolbar_size.width() + (kContentOutlineThickness / 2.0f);
|
||||
- const int offset_y =
|
||||
- height - mini_toolbar_size.height() + (kContentOutlineThickness / 2.0f);
|
||||
- const gfx::Rect mini_toolbar_rect =
|
||||
- gfx::Rect(offset_x, offset_y, mini_toolbar_size.width(),
|
||||
- mini_toolbar_size.height());
|
||||
- layouts.child_layouts.emplace_back(
|
||||
- mini_toolbar_.get(), mini_toolbar_->GetVisible(), mini_toolbar_rect);
|
||||
-
|
||||
layouts.host_size = gfx::Size(width, height);
|
||||
return layouts;
|
||||
}
|
||||
@@ -325,10 +309,6 @@ void MultiContentsView::UpdateContentsBo
|
||||
contents_container_view->SetBorder(nullptr);
|
||||
}
|
||||
}
|
||||
- // Update mini toolbar visibility.
|
||||
- for (auto* contents_container_view : contents_container_views_) {
|
||||
- contents_container_view->GetMiniToolbar()->SetVisible(false);
|
||||
- }
|
||||
return;
|
||||
}
|
||||
|
||||
SplitTabMenuModel::~SplitTabMenuModel() = default;
|
||||
@@ -86,7 +82,32 @@ ui::ImageModel SplitTabMenuModel::GetIco
|
||||
ui::SimpleMenuModel::kDefaultIconSize);
|
||||
}
|
||||
|
||||
-void SplitTabMenuModel::ExecuteCommand(int command_id, int event_flags) {}
|
||||
+void SplitTabMenuModel::ExecuteCommand(int command_id, int event_flags) {
|
||||
+ split_tabs::SplitTabId split_id = GetSplitTabId();
|
||||
+ switch (static_cast<CommandId>(command_id)) {
|
||||
+ case CommandId::kSwapPosition:
|
||||
+ tab_strip_model_->SwapTabsInSplit(split_id);
|
||||
+ break;
|
||||
+ case CommandId::kClose:
|
||||
+ tab_strip_model_->CloseWebContentsAt(
|
||||
+ tab_strip_model_->active_index(),
|
||||
+ TabCloseTypes::CLOSE_USER_GESTURE |
|
||||
+ TabCloseTypes::CLOSE_CREATE_HISTORICAL_TAB);
|
||||
+ break;
|
||||
+ case CommandId::kExitSplit:
|
||||
+ tab_strip_model_->RemoveSplit(split_id);
|
||||
+ break;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+split_tabs::SplitTabId SplitTabMenuModel::GetSplitTabId() const {
|
||||
+ tabs::TabInterface* const tab =
|
||||
+ split_tab_index_.has_value()
|
||||
+ ? tab_strip_model_->GetTabAtIndex(split_tab_index_.value())
|
||||
+ : tab_strip_model_->GetActiveTab();
|
||||
+ CHECK(tab->IsSplit());
|
||||
+ return tab->GetSplit().value();
|
||||
+}
|
||||
|
||||
const gfx::VectorIcon& SplitTabMenuModel::GetSwapPositionIcon(
|
||||
split_tabs::SplitTabActiveLocation active_split_tab_location) const {
|
||||
--- a/chrome/browser/ui/tabs/split_tab_menu_model.h
|
||||
+++ b/chrome/browser/ui/tabs/split_tab_menu_model.h
|
||||
@@ -40,6 +40,7 @@ class SplitTabMenuModel : public ui::Sim
|
||||
void ExecuteCommand(int command_id, int event_flags) override;
|
||||
|
||||
private:
|
||||
+ split_tabs::SplitTabId GetSplitTabId() const;
|
||||
const gfx::VectorIcon& GetSwapPositionIcon(
|
||||
split_tabs::SplitTabActiveLocation active_split_tab_location) const;
|
||||
const gfx::VectorIcon& GetSwapLayoutIcon(
|
||||
@@ -47,6 +48,10 @@ class SplitTabMenuModel : public ui::Sim
|
||||
std::u16string GetSwapLayoutString() const;
|
||||
|
||||
raw_ptr<TabStripModel> tab_strip_model_ = nullptr;
|
||||
+
|
||||
+ // This represents the tab that this menu model should be operating on. If
|
||||
+ // nothing is provided, use the currently active tab.
|
||||
+ std::optional<int> split_tab_index_;
|
||||
};
|
||||
|
||||
#endif // CHROME_BROWSER_UI_TABS_SPLIT_TAB_MENU_MODEL_H_
|
||||
@@ -347,9 +327,6 @@ void MultiContentsView::UpdateContentsBo
|
||||
views::CreateRoundedRectBorder(kContentOutlineThickness,
|
||||
kContentOutlineCornerRadius, color),
|
||||
gfx::Insets(kSplitViewContentPadding)));
|
||||
- // Mini toolbar should only be visible for the inactive contents
|
||||
- // container view.
|
||||
- contents_container_view->GetMiniToolbar()->SetVisible(!is_active);
|
||||
};
|
||||
for (auto* contents_container_view : contents_container_views_) {
|
||||
set_contents_border_and_mini_toolbar(contents_container_view);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -50,7 +50,7 @@ void RegisterBrowserPrefs(PrefRegistrySi
|
||||
@@ -66,7 +66,7 @@ void RegisterBrowserPrefs(PrefRegistrySi
|
||||
|
||||
registry->RegisterBooleanPref(prefs::kHoverCardImagesEnabled, true);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#if defined(USE_AURA)
|
||||
registry->RegisterBooleanPref(prefs::kOverscrollHistoryNavigationEnabled,
|
||||
@@ -119,7 +119,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -135,7 +135,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
// We need to register the type of these preferences in order to query
|
||||
// them even though they're only typically controlled via policy.
|
||||
|
||||
@@ -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
|
||||
@@ -156,6 +156,8 @@ source_set("internal") {
|
||||
@@ -154,6 +154,8 @@ source_set("internal") {
|
||||
"external_data_manager.h",
|
||||
"features.cc",
|
||||
"features.h",
|
||||
@@ -284,14 +284,14 @@
|
||||
--- a/chrome/browser/extensions/extension_management.h
|
||||
+++ b/chrome/browser/extensions/extension_management.h
|
||||
@@ -255,6 +255,9 @@ class ExtensionManagement : public Keyed
|
||||
// Loads the deferred settings information for |extension_id|.
|
||||
// Loads the deferred settings information for `extension_id`.
|
||||
void LoadDeferredExtensionSetting(const std::string& extension_id);
|
||||
|
||||
+ // Checks whether a preference is managed.
|
||||
+ bool IsPreferenceManaged(const char* pref_name) const;
|
||||
+
|
||||
// Loads preference with name |pref_name| and expected type |expected_type|.
|
||||
// If |force_managed| is true, only loading from the managed preference store
|
||||
// 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
|
||||
@@ -290,7 +293,9 @@ class ExtensionManagement : public Keyed
|
||||
ManagedInstallationMode installation_mode) const;
|
||||
@@ -302,5 +302,5 @@
|
||||
+ const base::Value::Dict* extension_dict,
|
||||
+ bool is_forced);
|
||||
|
||||
// Helper function to access |settings_by_id_| with |id| as key.
|
||||
// Adds a new IndividualSettings entry to |settings_by_id_| if none exists for
|
||||
// Helper function to access `settings_by_id_` with `id` as key.
|
||||
// Adds a new IndividualSettings entry to `settings_by_id_` if none exists for
|
||||
|
||||
@@ -21,7 +21,33 @@
|
||||
srcset="chrome://theme/current-channel-logo@1x 1x,
|
||||
chrome://theme/current-channel-logo@2x 2x"
|
||||
alt="$i18n{aboutProductLogoAlt}"
|
||||
@@ -145,7 +142,6 @@
|
||||
@@ -78,12 +75,6 @@
|
||||
inner-h-t-m-l="[[getUpdateStatusMessage_(
|
||||
currentUpdateStatusEvent_)]]">
|
||||
</div>
|
||||
- <a hidden$="[[!shouldShowLearnMoreLink_(
|
||||
- currentUpdateStatusEvent_)]]" target="_blank"
|
||||
- href="https://support.google.com/chrome?p=update_error"
|
||||
- aria-label="$i18nPolymer{aboutLearnMoreUpdatingErrors}">
|
||||
- $i18n{learnMore}
|
||||
- </a>
|
||||
</div>
|
||||
<span id="deprecationWarning"
|
||||
hidden="[[!obsoleteSystemInfo_.obsolete]]">
|
||||
@@ -114,12 +105,6 @@
|
||||
on-click="onPromoteUpdaterClick_">
|
||||
<div class="flex">
|
||||
[[promoteUpdaterStatus_.text]]
|
||||
- <a href="https://support.google.com/chrome/answer/95414"
|
||||
- target="_blank" id="updaterLearnMore"
|
||||
- on-click="onLearnMoreClick_"
|
||||
- aria-label="$i18nPolymer{aboutLearnMoreUpdating}">
|
||||
- $i18n{learnMore}
|
||||
- </a>
|
||||
</div>
|
||||
<cr-icon-button class="subpage-arrow"
|
||||
hidden$="[[!promoteUpdaterStatus_.actionable]]"
|
||||
@@ -145,7 +130,6 @@
|
||||
<settings-section>
|
||||
<div class="info-sections">
|
||||
<div class="info-section">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
@@ -323,7 +323,7 @@ export class SettingsPrivacyPageElement
|
||||
@@ -296,7 +296,7 @@ export class SettingsPrivacyPageElement
|
||||
shouldShowSafetyHub_: {
|
||||
type: Boolean,
|
||||
value() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/webui/cr_components/history/history_util.cc
|
||||
+++ b/chrome/browser/ui/webui/cr_components/history/history_util.cc
|
||||
@@ -62,7 +62,7 @@ content::WebUIDataSource* HistoryUtil::P
|
||||
@@ -58,7 +58,7 @@ content::WebUIDataSource* HistoryUtil::P
|
||||
{"expandSessionButton", IDS_HISTORY_OTHER_SESSIONS_EXPAND_SESSION},
|
||||
{"foundSearchResults", IDS_HISTORY_FOUND_SEARCH_RESULTS},
|
||||
{"historyMenuButton", IDS_HISTORY_HISTORY_MENU_DESCRIPTION},
|
||||
@@ -11,7 +11,7 @@
|
||||
{"loading", IDS_HISTORY_LOADING},
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1737,7 +1737,7 @@ void AddPeopleStrings(content::WebUIData
|
||||
@@ -1716,7 +1716,7 @@ void AddPeopleStrings(content::WebUIData
|
||||
// Top level people strings:
|
||||
{"peopleSignInPromptSecondaryWithAccount",
|
||||
IDS_SETTINGS_PEOPLE_SIGN_IN_PROMPT_SECONDARY_WITH_ACCOUNT},
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
--- a/chrome/browser/resources/settings/people_page/people_page.html
|
||||
+++ b/chrome/browser/resources/settings/people_page/people_page.html
|
||||
@@ -122,13 +122,6 @@ shown on non-ChromeOS platforms -->
|
||||
@@ -122,12 +122,6 @@ shown on non-ChromeOS platforms -->
|
||||
</div>
|
||||
</template> <!-- if="[[!shouldShowSyncAccountControl_()]]" -->
|
||||
|
||||
- <cr-link-row id="sync-setup"
|
||||
- label="$i18n{syncAndNonPersonalizedServices}"
|
||||
- sub-label="[[getSyncAndGoogleServicesSubtext_(syncStatus)]]"
|
||||
- on-click="onSyncClick_"
|
||||
- role-description="$i18n{subpageArrowRoleDescription}">
|
||||
- </cr-link-row>
|
||||
@@ -14,7 +13,7 @@
|
||||
<if expr="not chromeos_ash">
|
||||
<template is="dom-if" if="[[signinAllowed_]]">
|
||||
<cr-link-row id="manage-google-account"
|
||||
@@ -160,39 +153,6 @@ shown on non-ChromeOS platforms -->
|
||||
@@ -159,28 +153,6 @@ shown on non-ChromeOS platforms -->
|
||||
</if>
|
||||
|
||||
</div>
|
||||
@@ -39,24 +38,13 @@
|
||||
- </settings-sync-controls>
|
||||
- </settings-subpage>
|
||||
- </template>
|
||||
-
|
||||
- <template is="dom-if" if="[[shouldShowHistorySearchControl_(
|
||||
- showHistorySearchControl_, enableAiSettingsPageRefresh_)]]">
|
||||
- <template is="dom-if" route-path="/historySearch">
|
||||
- <settings-subpage page-title="$i18n{historySearchSettingLabel}"
|
||||
- associated-control="[[$$('#sync-setup')]]">
|
||||
- <settings-history-search-page prefs="{{prefs}}">
|
||||
- </settings-history-search-page>
|
||||
- </settings-subpage>
|
||||
- </template>
|
||||
- </template>
|
||||
-
|
||||
<if expr="not chromeos_ash">
|
||||
<template is="dom-if" route-path="/manageProfile">
|
||||
<settings-subpage
|
||||
--- a/chrome/browser/resources/settings/privacy_page/personalization_options.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/personalization_options.html
|
||||
@@ -123,15 +123,6 @@
|
||||
@@ -113,15 +113,6 @@
|
||||
</cr-link-row>
|
||||
</if><!-- chromeos -->
|
||||
</if><!-- _google_chrome -->
|
||||
@@ -74,7 +62,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
|
||||
@@ -253,14 +253,6 @@ export class SettingsPersonalizationOpti
|
||||
@@ -230,14 +230,6 @@ export class SettingsPersonalizationOpti
|
||||
}
|
||||
// </if>
|
||||
|
||||
@@ -91,20 +79,26 @@
|
||||
}
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -198,13 +198,6 @@ function createRoutes(): SettingsRoutes
|
||||
@@ -190,9 +190,6 @@ function createRoutes(): SettingsRoutes
|
||||
r.IMPORT_DATA = r.PEOPLE.createChild('/importData');
|
||||
r.IMPORT_DATA.isNavigableDialog = true;
|
||||
// </if>
|
||||
-
|
||||
- r.SYNC = r.PEOPLE.createChild('/syncSetup');
|
||||
- r.SYNC_ADVANCED = r.SYNC.createChild('/syncSetup/advanced');
|
||||
- if (!loadTimeData.getBoolean('enableAiSettingsPageRefresh') &&
|
||||
- loadTimeData.getBoolean('showHistorySearchControl')) {
|
||||
- r.HISTORY_SEARCH = r.SYNC.createChild('/historySearch');
|
||||
- }
|
||||
}
|
||||
|
||||
const visibility = pageVisibility || {};
|
||||
@@ -203,9 +200,6 @@ function createRoutes(): SettingsRoutes
|
||||
if (loadTimeData.getBoolean('showTabOrganizationControl')) {
|
||||
r.AI_TAB_ORGANIZATION = r.AI.createChild('/ai/tabOrganizer');
|
||||
}
|
||||
- if (loadTimeData.getBoolean('showHistorySearchControl')) {
|
||||
- r.HISTORY_SEARCH = r.AI.createChild('/ai/historySearch');
|
||||
- }
|
||||
if (loadTimeData.getBoolean('showComposeControl')) {
|
||||
r.OFFER_WRITING_HELP = r.AI.createChild('/ai/helpMeWrite');
|
||||
}
|
||||
--- a/chrome/browser/resources/settings/search_page/search_page.html
|
||||
+++ b/chrome/browser/resources/settings/search_page/search_page.html
|
||||
@@ -75,6 +75,14 @@
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
--- a/chrome/browser/resources/settings/about_page/about_page.html
|
||||
+++ b/chrome/browser/resources/settings/about_page/about_page.html
|
||||
@@ -54,7 +54,7 @@
|
||||
<div class="cr-row two-line">
|
||||
<!-- Set the icon from the iconset (when it's obsolete/EOL and
|
||||
when update is done) or set the src (when it's updating). -->
|
||||
-<if expr="False">
|
||||
+<if expr="not chromeos_ash">
|
||||
<div class="icon-container"
|
||||
hidden="[[!shouldShowIcons_(showUpdateStatus_)]]">
|
||||
<cr-icon
|
||||
@@ -69,7 +69,7 @@
|
||||
</div>
|
||||
</if>
|
||||
<div class="flex cr-padded-text">
|
||||
-<if expr="False">
|
||||
+<if expr="not chromeos_ash">
|
||||
<div id="updateStatusMessage" hidden="[[!showUpdateStatus_]]">
|
||||
<div role="alert" aria-live="polite"
|
||||
inner-h-t-m-l="[[getUpdateStatusMessage_(
|
||||
@@ -16,7 +16,7 @@
|
||||
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
|
||||
@@ -57,7 +57,7 @@
|
||||
@@ -53,7 +53,7 @@
|
||||
</settings-section>
|
||||
</template>
|
||||
</template>
|
||||
@@ -27,7 +27,7 @@
|
||||
section="autofill">
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -244,7 +244,7 @@ function createRoutes(): SettingsRoutes
|
||||
@@ -230,7 +230,7 @@ function createRoutes(): SettingsRoutes
|
||||
r.FONTS = r.APPEARANCE.createChild('/fonts');
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
--- a/chrome/browser/resources/settings/site_settings/notifications_page.html
|
||||
+++ b/chrome/browser/resources/settings/site_settings/notifications_page.html
|
||||
@@ -8,15 +8,10 @@
|
||||
<div id="notificationRadioGroup" class="radio-group">
|
||||
<template is="dom-if" if="[[showNotificationPermissionsReview_]]">
|
||||
<template is="dom-if" if="[[shouldShowSafetyHub_]]">
|
||||
- <h2>$i18n{safetyHub}</h2>
|
||||
<settings-safety-hub-module id="safetyHubEntryPoint"
|
||||
header="[[notificationPermissionsReviewHeader_]]"
|
||||
subheader="[[notificationPermissionsReviewSubheader_]]"
|
||||
header-icon="cr:security" header-icon-color="blue">
|
||||
- <cr-button id="safetyHubButton" slot="button-container"
|
||||
- class="action-button" on-click="onSafetyHubButtonClick_">
|
||||
- $i18n{safetyHubEntryPointButtonLabel}
|
||||
- </cr-button>
|
||||
</settings-safety-hub-module>
|
||||
</template>
|
||||
</template>
|
||||
--- a/chrome/browser/resources/settings/site_settings_page/site_settings_page.html
|
||||
+++ b/chrome/browser/resources/settings/site_settings_page/site_settings_page.html
|
||||
@@ -8,17 +8,10 @@
|
||||
}
|
||||
</style>
|
||||
<template is="dom-if" if="[[showUnusedSitePermissions_]]">
|
||||
- <div class="cr-row first">
|
||||
- <h2>$i18n{safetyHub}</h2>
|
||||
- </div>
|
||||
<settings-safety-hub-module id="safetyHubModule"
|
||||
header="[[unusedSitePermissionsHeader_]]"
|
||||
subheader="[[unusedSitePermissionsSubheader_]]"
|
||||
header-icon="cr:security" header-icon-color="blue">
|
||||
- <cr-button id="safetyHubButton" slot="button-container"
|
||||
- class="action-button" on-click="onSafetyHubButtonClick_">
|
||||
- $i18n{safetyHubEntryPointButtonLabel}
|
||||
- </cr-button>
|
||||
</settings-safety-hub-module>
|
||||
</template>
|
||||
<div class="cr-row first">
|
||||
@@ -0,0 +1,30 @@
|
||||
--- a/chrome/browser/resources/settings/basic_page/basic_page.html
|
||||
+++ b/chrome/browser/resources/settings/basic_page/basic_page.html
|
||||
@@ -210,6 +210,7 @@
|
||||
</settings-spell-check-page>
|
||||
</settings-section>
|
||||
</template>
|
||||
+<if expr="_google_chrome">
|
||||
<settings-section page-title="$i18n{translatePageTitle}"
|
||||
section="translate" nest-under-section="languages">
|
||||
<settings-translate-page prefs="{{prefs}}"
|
||||
@@ -218,6 +219,7 @@
|
||||
</settings-translate-page>
|
||||
</settings-section>
|
||||
</if>
|
||||
+</if>
|
||||
<template is="dom-if" if="[[showPage_(pageVisibility.downloads)]]"
|
||||
restamp>
|
||||
<settings-section page-title="$i18n{downloadsPageTitle}"
|
||||
--- a/chrome/browser/resources/settings/languages_page/languages_page.html
|
||||
+++ b/chrome/browser/resources/settings/languages_page/languages_page.html
|
||||
@@ -82,9 +82,6 @@
|
||||
<div title="[[item.language.nativeDisplayName]]" role="none">
|
||||
[[formatIndex_(index)]]. [[item.language.displayName]]
|
||||
</div>
|
||||
- <div class="target-info secondary">
|
||||
- $i18n{translateTargetLabel}
|
||||
- </div>
|
||||
<if expr="is_win">
|
||||
<div class="explain-selected"
|
||||
hidden="[[!isProspectiveUiLanguage_(
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
|
||||
@@ -58,8 +58,7 @@ SelectedKeywordView::GetKeywordLabelName
|
||||
@@ -60,8 +60,7 @@ SelectedKeywordView::GetKeywordLabelName
|
||||
names.full_name =
|
||||
l10n_util::GetStringUTF16(IDS_STARTER_PACK_PAGE_KEYWORD_TEXT);
|
||||
} else {
|
||||
@@ -10,7 +10,7 @@
|
||||
}
|
||||
}
|
||||
return names;
|
||||
@@ -186,7 +185,7 @@ const std::u16string& SelectedKeywordVie
|
||||
@@ -194,7 +193,7 @@ const std::u16string& SelectedKeywordVie
|
||||
|
||||
int SelectedKeywordView::GetExtraInternalSpacing() const {
|
||||
// Align the label text with the suggestion text.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/toolbar/app_menu.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/app_menu.cc
|
||||
@@ -250,7 +250,7 @@ class InMenuButtonBackground : public vi
|
||||
@@ -249,7 +249,7 @@ class InMenuButtonBackground : public vi
|
||||
constexpr int kCircularButtonSize = 28;
|
||||
bounds_rect.ClampToCenteredSize(
|
||||
gfx::Size(kCircularButtonSize, kCircularButtonSize));
|
||||
@@ -9,7 +9,7 @@
|
||||
}
|
||||
const auto* const color_provider = view->GetColorProvider();
|
||||
cc::PaintFlags flags;
|
||||
@@ -1430,7 +1430,7 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1429,7 +1429,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));
|
||||
@@ -1477,7 +1477,7 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1476,7 +1476,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,7 +32,7 @@
|
||||
"//printing/buildflags",
|
||||
--- a/components/omnibox/browser/autocomplete_controller.h
|
||||
+++ b/components/omnibox/browser/autocomplete_controller.h
|
||||
@@ -35,6 +35,7 @@
|
||||
@@ -36,6 +36,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"
|
||||
@@ -51,7 +51,7 @@
|
||||
raw_ptr<HistoryQuickProvider> history_quick_provider_;
|
||||
--- a/components/omnibox/browser/autocomplete_controller.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_controller.cc
|
||||
@@ -89,6 +89,7 @@
|
||||
@@ -91,6 +91,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,7 +59,7 @@
|
||||
#include "components/search_engines/template_url_service.h"
|
||||
#include "components/search_engines/template_url_starter_pack_data.h"
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
@@ -1803,7 +1804,21 @@ void AutocompleteController::UpdateKeywo
|
||||
@@ -1850,7 +1851,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();
|
||||
@@ -84,7 +84,7 @@
|
||||
} else if (template_url->type() !=
|
||||
--- a/components/omnibox/browser/keyword_provider.h
|
||||
+++ b/components/omnibox/browser/keyword_provider.h
|
||||
@@ -22,6 +22,7 @@
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "components/omnibox/browser/autocomplete_input.h"
|
||||
#include "components/omnibox/browser/autocomplete_provider.h"
|
||||
#include "components/omnibox/browser/keyword_extensions_delegate.h"
|
||||
@@ -92,7 +92,7 @@
|
||||
#include "third_party/metrics_proto/omnibox_input_type.pb.h"
|
||||
|
||||
class AutocompleteProviderClient;
|
||||
@@ -118,6 +119,8 @@ class KeywordProvider : public Autocompl
|
||||
@@ -117,6 +118,8 @@ class KeywordProvider : public Autocompl
|
||||
// Model for the keywords.
|
||||
raw_ptr<TemplateURLService, DanglingUntriaged> model_;
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
std::unique_ptr<KeywordExtensionsDelegate> extensions_delegate_;
|
||||
--- a/components/omnibox/browser/keyword_provider.cc
|
||||
+++ b/components/omnibox/browser/keyword_provider.cc
|
||||
@@ -24,6 +24,7 @@
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "components/omnibox/browser/search_provider.h"
|
||||
#include "components/omnibox/common/omnibox_feature_configs.h"
|
||||
#include "components/search_engines/template_url.h"
|
||||
@@ -111,7 +111,7 @@
|
||||
#include "components/search_engines/template_url_service.h"
|
||||
#include "components/search_engines/template_url_starter_pack_data.h"
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
@@ -421,9 +422,20 @@ void KeywordProvider::FillInURLAndConten
|
||||
@@ -423,9 +424,20 @@ void KeywordProvider::FillInURLAndConten
|
||||
if (element_ref.SupportsReplacement(
|
||||
GetTemplateURLService()->search_terms_data()) &&
|
||||
(element->type() != TemplateURL::OMNIBOX_API_EXTENSION)) {
|
||||
@@ -154,7 +154,7 @@
|
||||
// deleted out from under us.
|
||||
--- a/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
|
||||
@@ -15,6 +15,7 @@
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "components/omnibox/browser/vector_icons.h"
|
||||
#include "components/search_engines/template_url_service.h"
|
||||
#include "components/search_engines/template_url_starter_pack_data.h"
|
||||
@@ -162,7 +162,7 @@
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
#include "components/vector_icons/vector_icons.h"
|
||||
#include "ui/accessibility/ax_enums.mojom.h"
|
||||
@@ -113,6 +114,15 @@ void SelectedKeywordView::SetCustomImage
|
||||
@@ -115,6 +116,15 @@ void SelectedKeywordView::SetCustomImage
|
||||
if (template_url &&
|
||||
template_url->starter_pack_id() == TemplateURLStarterPackData::kGemini) {
|
||||
vector_icon = &omnibox::kSparkIcon;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/window_sizer/window_sizer.cc
|
||||
+++ b/chrome/browser/ui/window_sizer/window_sizer.cc
|
||||
@@ -342,9 +342,11 @@ gfx::Rect WindowSizer::GetDefaultWindowB
|
||||
@@ -341,9 +341,11 @@ gfx::Rect WindowSizer::GetDefaultWindowB
|
||||
static_cast<int>(work_area.width() / 2. - 1.5 * kWindowTilePixels);
|
||||
}
|
||||
#endif // !BUILDFLAG(IS_MAC)
|
||||
|
||||
@@ -8,35 +8,9 @@
|
||||
height: calc(100vh - var(--ntp-one-google-bar-height));
|
||||
min-width: fit-content; /* Prevents OneGoogleBar cutoff at 500% zoom. */
|
||||
padding-top: var(--ntp-one-google-bar-height);
|
||||
@@ -215,7 +216,6 @@ ntp-middle-slot-promo:not([hidden]) ~ #m
|
||||
--cr-button-height: 32px;
|
||||
border: none;
|
||||
border-radius: calc(.5 * var(--cr-button-height));
|
||||
- box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 1px 2px rgba(0, 0, 0, .23);
|
||||
font-weight: 400;
|
||||
min-width: 32px;
|
||||
padding-inline-end: 16px;
|
||||
@@ -250,7 +250,7 @@ ntp-middle-slot-promo:not([hidden]) ~ #m
|
||||
--cr-icon-image: url(icons/icon_pencil.svg);
|
||||
}
|
||||
|
||||
-@media (max-width: 550px) {
|
||||
+
|
||||
.customize-button {
|
||||
padding-inline-end: 0;
|
||||
padding-inline-start: 8px;
|
||||
@@ -259,7 +259,7 @@ ntp-middle-slot-promo:not([hidden]) ~ #m
|
||||
.customize-text {
|
||||
display: none;
|
||||
}
|
||||
-}
|
||||
+
|
||||
|
||||
@media (max-width: 1110px) {
|
||||
: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,106 +1,16 @@
|
||||
@@ -1,85 +1,10 @@
|
||||
<div id="content">
|
||||
- ${this.lazyRender_ && this.microsoftModuleEnabled_ ? html`
|
||||
- <iframe id="microsoftAuth" src="${this.microsoftAuthIframePath_}"></iframe>
|
||||
@@ -64,7 +38,9 @@
|
||||
- @open-voice-search="${this.onOpenVoiceSearch_}" ?shown="${this.realboxShown_}"
|
||||
- ?had-secondary-side="${this.realboxHadSecondarySide}"
|
||||
- @had-secondary-side-changed="${this.onRealboxHadSecondarySideChanged_}"
|
||||
- ?can-show-secondary-side="${this.realboxCanShowSecondarySide}">
|
||||
- ?can-show-secondary-side="${this.realboxCanShowSecondarySide}"
|
||||
- ?compose-button-enabled="${this.composeButtonEnabled}"
|
||||
- ?composebox-enabled="${this.composeboxEnabled}">
|
||||
- </cr-searchbox>
|
||||
- ${this.showLensUploadDialog_ ? html`
|
||||
- <ntp-lens-upload-dialog id="lensUploadDialog"
|
||||
@@ -94,13 +70,13 @@
|
||||
- ` : ''}
|
||||
- ${this.modulesEnabled_ ? html`
|
||||
- ${html`
|
||||
- <ntp-modules-v2 id="modules"
|
||||
- <ntp-modules id="modules"
|
||||
- ?modules-shown-to-user="${this.modulesShownToUser}"
|
||||
- @modules-shown-to-user-changed="${this.onModulesShownToUserChanged_}"
|
||||
- @customize-module="${this.onCustomizeModule_}"
|
||||
- @modules-loaded="${this.onModulesLoaded_}"
|
||||
- ?hidden="${!this.promoAndModulesLoaded_}">
|
||||
- </ntp-modules-v2>
|
||||
- </ntp-modules>
|
||||
- `}
|
||||
- ` : ''}
|
||||
- <a id="backgroundImageAttribution"
|
||||
@@ -117,33 +93,10 @@
|
||||
- ${this.backgroundImageAttribution2_}
|
||||
- </div>
|
||||
- </a>
|
||||
<div id="customizeButtons">
|
||||
- ${this.showWallpaperSearchButton_ ? html`
|
||||
- <cr-button id="wallpaperSearchButton"
|
||||
- class="customize-button" @click="${this.onWallpaperSearchClick_}"
|
||||
- title="$i18n{customizeThisPageWallpaperSearch}"
|
||||
- aria-pressed="${this.showWallpaperSearch_}">
|
||||
- <div id="wallpaperSearchIcon"
|
||||
- class="customize-icon cr-icon" slot="prefix-icon"></div>
|
||||
- <div id="wallpaperSearchText" class="customize-text"
|
||||
- ?hidden="${this.showWallpaperSearch_}">
|
||||
- $i18n{wallpaperSearchButton}
|
||||
- </div>
|
||||
- </cr-button>
|
||||
- ` : ''}
|
||||
<cr-button id="customizeButton" class="customize-button"
|
||||
@click="${this.onCustomizeClick_}" title="$i18n{customizeThisPage}"
|
||||
aria-pressed="${this.showCustomize_}">
|
||||
<div id="customizeIcon"
|
||||
class="customize-icon cr-icon" slot="prefix-icon"></div>
|
||||
- <div id="customizeText" class="customize-text"
|
||||
- ?hidden="${!this.showCustomizeChromeText_}">
|
||||
- $i18n{customizeButton}
|
||||
- </div>
|
||||
</cr-button>
|
||||
</div>
|
||||
${this.showThemeAttribution_() ? html`
|
||||
@@ -112,19 +22,3 @@
|
||||
<!-- TODO(crbug.com/409296433) Hide ntp-customize-buttons on new-tab-page when
|
||||
footer is enabled and visible. -->
|
||||
<ntp-customize-buttons id="customizeButtons"
|
||||
@@ -102,19 +27,3 @@
|
||||
` : ''}
|
||||
<div id="contentBottomSpacer"></div>
|
||||
</div>
|
||||
@@ -163,3 +116,60 @@
|
||||
- </clipPath>
|
||||
- </defs>
|
||||
-</svg>
|
||||
--- a/chrome/browser/resources/new_tab_shared/customize_buttons/customize_buttons.css
|
||||
+++ b/chrome/browser/resources/new_tab_shared/customize_buttons/customize_buttons.css
|
||||
@@ -49,7 +49,6 @@
|
||||
--cr-button-height: 32px;
|
||||
border: none;
|
||||
border-radius: calc(.5 * var(--cr-button-height));
|
||||
- box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 1px 2px rgba(0, 0, 0, .23);
|
||||
font-weight: 400;
|
||||
min-width: 32px;
|
||||
padding-inline-end: 16px;
|
||||
@@ -78,7 +77,6 @@
|
||||
--iron-icon-height: 16px;
|
||||
}
|
||||
|
||||
-@media (max-width: 550px) {
|
||||
.customize-button {
|
||||
padding-inline-end: 0;
|
||||
padding-inline-start: 8px;
|
||||
@@ -87,7 +85,6 @@
|
||||
.customize-text {
|
||||
display: none;
|
||||
}
|
||||
-}
|
||||
|
||||
@media (max-width: 1110px) {
|
||||
:host([modules-shown-to-user]) .customize-text {
|
||||
--- a/chrome/browser/resources/new_tab_shared/customize_buttons/customize_buttons.html.ts
|
||||
+++ b/chrome/browser/resources/new_tab_shared/customize_buttons/customize_buttons.html.ts
|
||||
@@ -10,28 +10,11 @@ export function getHtml(this: CustomizeB
|
||||
// clang-format off
|
||||
return html`<!--_html_template_start_-->
|
||||
<div id="customizeButtons">
|
||||
- ${this.showWallpaperSearchButton ? html`
|
||||
- <cr-button id="wallpaperSearchButton"
|
||||
- class="customize-button" @click="${this.onWallpaperSearchClick_}"
|
||||
- title="$i18n{customizeThisPageWallpaperSearch}"
|
||||
- aria-pressed="${this.showWallpaperSearch}">
|
||||
- <cr-icon id="wallpaperSearchIcon" class="customize-icon"
|
||||
- slot="prefix-icon" icon="ntp:sparkle"></cr-icon>
|
||||
- <div id="wallpaperSearchText" class="customize-text"
|
||||
- ?hidden="${this.showWallpaperSearch}">
|
||||
- $i18n{wallpaperSearchButton}
|
||||
- </div>
|
||||
- </cr-button>
|
||||
- ` : ''}
|
||||
<cr-button id="customizeButton" class="customize-button"
|
||||
@click="${this.onCustomizeClick_}" title="$i18n{customizeThisPage}"
|
||||
aria-pressed="${this.showCustomize}">
|
||||
<cr-icon class="customize-icon" slot="prefix-icon" icon="ntp:pencil">
|
||||
</cr-icon>
|
||||
- <div id="customizeText" class="customize-text"
|
||||
- ?hidden="${!this.showCustomizeChromeText}">
|
||||
- $i18n{customizeButton}
|
||||
- </div>
|
||||
</cr-button>
|
||||
</div>
|
||||
<!--_html_template_end_-->`;
|
||||
|
||||
@@ -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
|
||||
@@ -747,6 +747,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
|
||||
@@ -772,6 +772,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
|
||||
}
|
||||
|
||||
bool TabGroupEditorBubbleView::ShouldShowSavedFooter() const {
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
--- a/chrome/browser/resources/side_panel/customize_chrome/app.ts
|
||||
+++ b/chrome/browser/resources/side_panel/customize_chrome/app.ts
|
||||
@@ -139,24 +139,6 @@ export class AppElement extends AppEleme
|
||||
@@ -140,23 +140,6 @@ export class AppElement extends AppEleme
|
||||
element.scrollIntoView({behavior: 'auto'});
|
||||
});
|
||||
|
||||
- this.attachedTabStateUpdatedId_ =
|
||||
- CustomizeChromeApiProxy.getInstance()
|
||||
- .callbackRouter.attachedTabStateUpdated.addListener(
|
||||
- (isSourceTabFirstPartyNtp: boolean) => {
|
||||
- if (this.isSourceTabFirstPartyNtp_ ===
|
||||
- isSourceTabFirstPartyNtp) {
|
||||
- (newTabPageType: NewTabPageType) => {
|
||||
- if (this.newTabPageType_ === newTabPageType) {
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- this.isSourceTabFirstPartyNtp_ = isSourceTabFirstPartyNtp;
|
||||
- this.newTabPageType_ = newTabPageType;
|
||||
-
|
||||
- // Since some pages aren't supported in non first party mode,
|
||||
- // change the section back to the overview.
|
||||
- if (!this.isSourceTabFirstPartyNtp_ &&
|
||||
- if (!this.isSourceTabFirstPartyNtp_() &&
|
||||
- !this.pageSupportedOnNonFirstPartyNtps()) {
|
||||
- this.page_ = CustomizeChromePage.OVERVIEW;
|
||||
- }
|
||||
@@ -25,7 +24,7 @@
|
||||
this.pageHandler_.updateAttachedTabState();
|
||||
|
||||
this.setThemeEditableId_ = CustomizeChromeApiProxy.getInstance()
|
||||
@@ -291,10 +273,6 @@ export class AppElement extends AppEleme
|
||||
@@ -299,10 +282,6 @@ export class AppElement extends AppEleme
|
||||
await this.updateComplete;
|
||||
page.focusOnBackButton();
|
||||
}
|
||||
@@ -38,15 +37,15 @@
|
||||
declare global {
|
||||
--- a/chrome/browser/resources/side_panel/customize_chrome/appearance.ts
|
||||
+++ b/chrome/browser/resources/side_panel/customize_chrome/appearance.ts
|
||||
@@ -131,12 +131,6 @@ export class AppearanceElement extends A
|
||||
@@ -138,12 +138,6 @@ export class AppearanceElement extends A
|
||||
});
|
||||
this.pageHandler_.updateTheme();
|
||||
|
||||
- this.attachedTabStateUpdatedId_ =
|
||||
- CustomizeChromeApiProxy.getInstance()
|
||||
- .callbackRouter.attachedTabStateUpdated.addListener(
|
||||
- (isSourceTabFirstPartyNtp: boolean) => {
|
||||
- this.isSourceTabFirstPartyNtp_ = isSourceTabFirstPartyNtp;
|
||||
- (newTabPageType: NewTabPageType) => {
|
||||
- this.newTabPageType_ = newTabPageType;
|
||||
- });
|
||||
this.pageHandler_.updateAttachedTabState();
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/omnibox/browser/autocomplete_match.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_match.cc
|
||||
@@ -64,6 +64,7 @@
|
||||
@@ -67,6 +67,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);
|
||||
@@ -650,7 +651,7 @@ const gfx::VectorIcon& AutocompleteMatch
|
||||
@@ -660,7 +661,7 @@ const gfx::VectorIcon& AutocompleteMatch
|
||||
case KEYWORD_MODE_STARTER_PACK_HISTORY:
|
||||
return vector_icons::kHistoryChromeRefreshIcon;
|
||||
case KEYWORD_MODE_STARTER_PACK_TABS:
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
class ToolbarButtonProvider;
|
||||
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
-constexpr int kWebAppMenuMargin = 7;
|
||||
+constexpr int kWebAppMenuMargin = 4;
|
||||
-inline constexpr int kWebAppMenuMargin = 7;
|
||||
+inline constexpr int kWebAppMenuMargin = 4;
|
||||
#endif
|
||||
|
||||
// Makes adjustments to |toolbar_button| for display in a web app frame.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/toasts/toast_view.cc
|
||||
+++ b/chrome/browser/ui/toasts/toast_view.cc
|
||||
@@ -49,9 +49,8 @@ constexpr float kAnimationHeightScale =
|
||||
@@ -50,9 +50,8 @@ constexpr float kAnimationHeightScale =
|
||||
|
||||
gfx::Transform GetScaleTransformation(gfx::Rect bounds) {
|
||||
gfx::Transform transform;
|
||||
@@ -13,7 +13,7 @@
|
||||
}
|
||||
|
||||
@@ -119,8 +118,7 @@ ToastView::ToastView(
|
||||
SetPaintClientToLayer(true);
|
||||
SetBackgroundColor(ui::kColorToastBackgroundProminent);
|
||||
SetShowCloseButton(false);
|
||||
DialogDelegate::SetButtons(static_cast<int>(ui::mojom::DialogButton::kNone));
|
||||
- set_corner_radius(ChromeLayoutProvider::Get()->GetDistanceMetric(
|
||||
|
||||
@@ -76,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
|
||||
@@ -216,7 +216,10 @@ LocationBarView::LocationBarView(Browser
|
||||
@@ -220,7 +220,10 @@ LocationBarView::LocationBarView(Browser
|
||||
!v->GetOmniboxPopupView()->IsOpen();
|
||||
}));
|
||||
views::FocusRing::Get(this)->SetOutsetFocusRingDisabled(true);
|
||||
@@ -88,7 +88,7 @@
|
||||
|
||||
#if BUILDFLAG(OS_LEVEL_GEOLOCATION_PERMISSION_SUPPORTED)
|
||||
if (features::IsOsLevelGeolocationPermissionSupportEnabled()) {
|
||||
@@ -265,9 +268,9 @@ void LocationBarView::Init() {
|
||||
@@ -270,9 +273,9 @@ void LocationBarView::Init() {
|
||||
CONTEXT_OMNIBOX_PRIMARY, views::style::STYLE_PRIMARY);
|
||||
|
||||
const gfx::FontList& omnibox_chip_font_list = typography_provider.GetFont(
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
auto location_icon_view =
|
||||
std::make_unique<LocationIconView>(omnibox_chip_font_list, this, this);
|
||||
@@ -477,7 +480,7 @@ bool LocationBarView::IsInitialized() co
|
||||
@@ -490,7 +493,7 @@ bool LocationBarView::IsInitialized() co
|
||||
|
||||
int LocationBarView::GetBorderRadius() const {
|
||||
return ChromeLayoutProvider::Get()->GetCornerRadiusMetric(
|
||||
@@ -109,29 +109,46 @@
|
||||
}
|
||||
|
||||
std::unique_ptr<views::Background> LocationBarView::CreateRoundRectBackground(
|
||||
@@ -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)
|
||||
@@ -690,9 +693,9 @@ void LocationBarView::Layout(PassKey) {
|
||||
// TODO(manukh): Move constants to layout_constants.cc.
|
||||
// The padding between the left edges of the location bar and the LHS icon,
|
||||
// e.g. the page info icon, the google G icon, the selected suggestion icon.
|
||||
- int icon_left = 5;
|
||||
+ int icon_left = 2;
|
||||
// The padding between the LHS icon and the text.
|
||||
- int text_left = 8;
|
||||
+ int text_left = 5;
|
||||
// Indentation to match the suggestion icons & texts.
|
||||
- int icon_indent = 7;
|
||||
- int text_indent = 6;
|
||||
+ int icon_indent = 0;
|
||||
+ int text_indent = 0;
|
||||
// Indentation to match the suggestion icons & texts when in keyword mode.
|
||||
- int icon_keyword_indent = 9;
|
||||
- int text_keyword_indent = -9;
|
||||
+ int icon_keyword_indent = 3;
|
||||
+ int text_keyword_indent = 0;
|
||||
// Indentation add padding when the permission chip is visible and replacing
|
||||
// the LHS icon.
|
||||
int text_overriding_permission_chip_indent = 0;
|
||||
@@ -1197,7 +1200,7 @@ int LocationBarView::GetMinimumTrailingW
|
||||
|
||||
// Apply indentation to align the omnibox input icon and the text with those
|
||||
// of the suggestions in the popup. However, there are two exceptions where
|
||||
@@ -711,22 +714,22 @@ void LocationBarView::Layout(PassKey) {
|
||||
!location_icon_view_->ShouldShowLabel() &&
|
||||
!ShouldShowKeywordBubble();
|
||||
if (should_indent) {
|
||||
- icon_left += 7 /*icon_indent*/;
|
||||
+ icon_left += 0 /*icon_indent*/;
|
||||
icon_left += omnibox_feature_configs::AdjustOmniboxIndent()
|
||||
.Get()
|
||||
.input_icon_indent_offset;
|
||||
- text_left += 6 /*text_indent*/;
|
||||
+ text_left += 0 /*text_indent*/;
|
||||
text_left += omnibox_feature_configs::AdjustOmniboxIndent()
|
||||
.Get()
|
||||
.input_text_indent_offset;
|
||||
} else if (ShouldShowKeywordBubble()) {
|
||||
// Otherwise, if in keyword mode, adjust indentation to align the icon and
|
||||
// the text with the suggestion icons & texts.
|
||||
- icon_left += 9; /*icon_indent_keyword_mode*/
|
||||
+ icon_left += 3; /*icon_indent_keyword_mode*/
|
||||
icon_left += omnibox_feature_configs::AdjustOmniboxIndent()
|
||||
.Get()
|
||||
.input_icon_indent_offset;
|
||||
- text_left += -9; /*text_indent_keyword_mode*/
|
||||
+ text_left += 0; /*text_indent_keyword_mode*/
|
||||
}
|
||||
|
||||
LocationBarLayout leading_decorations(LocationBarLayout::Position::kLeftEdge,
|
||||
@@ -1183,7 +1186,7 @@ int LocationBarView::GetMinimumTrailingW
|
||||
}
|
||||
|
||||
gfx::Rect LocationBarView::GetLocalBoundsWithoutEndcaps() const {
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
}
|
||||
|
||||
void OmniboxResultView::SetMatch(const AutocompleteMatch& match) {
|
||||
@@ -496,14 +492,6 @@ void OmniboxResultView::ApplyThemeAndRef
|
||||
@@ -490,14 +486,6 @@ void OmniboxResultView::ApplyThemeAndRef
|
||||
popup_view_->controller()->client()->GetTemplateURLService())) {
|
||||
const OmniboxPopupSelection::LineState line_state =
|
||||
popup_view_->GetSelection().state;
|
||||
@@ -92,7 +92,7 @@
|
||||
if (suggestion_view_->iph_link_view()->GetVisible()) {
|
||||
--- a/chrome/browser/ui/views/omnibox/omnibox_row_view.cc
|
||||
+++ b/chrome/browser/ui/views/omnibox/omnibox_row_view.cc
|
||||
@@ -117,12 +117,7 @@ views::View* OmniboxRowView::GetActiveAu
|
||||
@@ -105,12 +105,7 @@ views::View* OmniboxRowView::GetActiveAu
|
||||
}
|
||||
|
||||
gfx::Insets OmniboxRowView::GetInsets() const {
|
||||
@@ -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
|
||||
@@ -366,8 +366,7 @@ void OmniboxMatchCellView::SetIcon(const
|
||||
@@ -347,8 +347,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.
|
||||
@@ -585,7 +584,7 @@ int OmniboxMatchCellView::GetImageIndent
|
||||
@@ -584,7 +583,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,18 +127,21 @@
|
||||
}
|
||||
|
||||
// The entity, answer, and icon images are horizontally centered within their
|
||||
@@ -596,12 +595,13 @@ int OmniboxMatchCellView::GetImageIndent
|
||||
@@ -595,7 +594,7 @@ 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.
|
||||
- int indent = 16 + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
|
||||
+ int indent = 5 + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
|
||||
|
||||
return indent;
|
||||
indent += omnibox_feature_configs::AdjustOmniboxIndent()
|
||||
.Get()
|
||||
@@ -605,6 +604,8 @@ int OmniboxMatchCellView::GetImageIndent
|
||||
}
|
||||
|
||||
int OmniboxMatchCellView::GetTextIndent() const {
|
||||
+ return 33;
|
||||
+
|
||||
// Text indent is added to the `OmniboxMatchCellView::GetInsets()`. It is not
|
||||
// added to the image position & size.
|
||||
|
||||
@@ -155,7 +158,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
|
||||
@@ -573,7 +573,7 @@ gfx::Rect OmniboxPopupViewViews::GetTarg
|
||||
@@ -572,7 +572,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) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/profiles/profile_menu_view.cc
|
||||
+++ b/chrome/browser/ui/views/profiles/profile_menu_view.cc
|
||||
@@ -719,6 +719,7 @@ void ProfileMenuView::BuildIdentityWithC
|
||||
@@ -805,6 +805,7 @@ void ProfileMenuView::BuildHistorySyncOp
|
||||
}
|
||||
|
||||
void ProfileMenuView::BuildAutofillSettingsButton() {
|
||||
@@ -8,7 +8,7 @@
|
||||
CHECK(!browser()->profile()->IsGuestSession());
|
||||
AddFeatureButton(
|
||||
l10n_util::GetStringUTF16(IDS_PROFILE_MENU_AUTOFILL_SETTINGS_BUTTON),
|
||||
@@ -772,6 +773,7 @@ void ProfileMenuView::MaybeBuildChromeAc
|
||||
@@ -858,6 +859,7 @@ void ProfileMenuView::MaybeBuildChromeAc
|
||||
}
|
||||
|
||||
void ProfileMenuView::MaybeBuildManageGoogleAccountButton() {
|
||||
|
||||
@@ -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
|
||||
@@ -1453,9 +1453,11 @@ export class RecorderController extends
|
||||
@@ -1448,9 +1448,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
|
||||
@@ -967,8 +967,10 @@ export class MainMenuItem implements UI.
|
||||
@@ -946,8 +946,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
|
||||
@@ -269,18 +269,6 @@ void ToolbarView::Init() {
|
||||
@@ -276,18 +276,6 @@ void ToolbarView::Init() {
|
||||
aura::WindowOcclusionTracker::ScopedPause pause_occlusion;
|
||||
#endif
|
||||
|
||||
@@ -19,21 +19,22 @@
|
||||
auto location_bar = std::make_unique<LocationBarView>(
|
||||
browser_, browser_->profile(), browser_->command_controller(), this,
|
||||
display_mode_ != DisplayMode::NORMAL);
|
||||
@@ -834,13 +822,6 @@ void ToolbarView::Layout(PassKey) {
|
||||
@@ -851,14 +839,6 @@ void ToolbarView::Layout(PassKey) {
|
||||
// The container view should be the exact same size/position as ToolbarView.
|
||||
container_view_->SetSize(size());
|
||||
|
||||
- // The background views should be behind the top-left and top-right corners
|
||||
- // of the container_view_.
|
||||
- const int corner_radius = GetLayoutConstant(TOOLBAR_CORNER_RADIUS);
|
||||
- background_view_left_->SetBounds(0, 0, corner_radius, corner_radius);
|
||||
- background_view_right_->SetBounds(width() - corner_radius, 0, corner_radius,
|
||||
- corner_radius);
|
||||
- background_view_left_->SetBounds(0, 0, receding_corner_radius_,
|
||||
- receding_corner_radius_);
|
||||
- background_view_right_->SetBounds(width() - receding_corner_radius_, 0,
|
||||
- receding_corner_radius_,
|
||||
- receding_corner_radius_);
|
||||
-
|
||||
if (display_mode_ == DisplayMode::CUSTOM_TAB) {
|
||||
custom_tab_bar_->SetBounds(0, 0, width(),
|
||||
custom_tab_bar_->GetPreferredSize().height());
|
||||
@@ -850,7 +831,6 @@ void ToolbarView::Layout(PassKey) {
|
||||
@@ -868,7 +848,6 @@ void ToolbarView::Layout(PassKey) {
|
||||
|
||||
if (display_mode_ == DisplayMode::NORMAL) {
|
||||
LayoutCommon();
|
||||
@@ -41,12 +42,11 @@
|
||||
}
|
||||
|
||||
if (toolbar_controller_) {
|
||||
@@ -888,37 +868,6 @@ void ToolbarView::OnThemeChanged() {
|
||||
@@ -906,38 +885,6 @@ void ToolbarView::OnThemeChanged() {
|
||||
SchedulePaint();
|
||||
}
|
||||
|
||||
-void ToolbarView::UpdateClipPath() {
|
||||
- const int corner_radius = GetLayoutConstant(TOOLBAR_CORNER_RADIUS);
|
||||
- const gfx::Rect local_bounds = GetLocalBounds();
|
||||
- SkPath path;
|
||||
- // The bottom of the toolbar may be clipped more than necessary in
|
||||
@@ -60,12 +60,14 @@
|
||||
- // enabled on all aura platforms.
|
||||
- const int extended_height = local_bounds.height() + 2;
|
||||
- path.moveTo(0, local_bounds.height());
|
||||
- path.lineTo(0, corner_radius);
|
||||
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
|
||||
- SkPathDirection::kCW, corner_radius, 0);
|
||||
- path.lineTo(local_bounds.width() - corner_radius, 0);
|
||||
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
|
||||
- SkPathDirection::kCW, local_bounds.width(), corner_radius);
|
||||
- path.lineTo(0, receding_corner_radius_);
|
||||
- path.arcTo(receding_corner_radius_, receding_corner_radius_, 0,
|
||||
- SkPath::kSmall_ArcSize, SkPathDirection::kCW,
|
||||
- receding_corner_radius_, 0);
|
||||
- path.lineTo(local_bounds.width() - receding_corner_radius_, 0);
|
||||
- path.arcTo(receding_corner_radius_, receding_corner_radius_, 0,
|
||||
- SkPath::kSmall_ArcSize, SkPathDirection::kCW, local_bounds.width(),
|
||||
- receding_corner_radius_);
|
||||
- path.lineTo(local_bounds.width(), extended_height);
|
||||
- path.lineTo(0, extended_height);
|
||||
- container_view_->SetClipPath(path);
|
||||
|
||||
@@ -122,14 +122,14 @@
|
||||
<customize-chrome-appearance @edit-theme-click="${this.onEditThemeClick_}"
|
||||
@@ -35,9 +35,6 @@ export function getHtml(this: AppElement
|
||||
</cr-button>
|
||||
${this.isSourceTabFirstPartyNtp_ ? html`<hr class="sp-cards-separator">
|
||||
${this.isSourceTabFirstPartyNtp_() ? html`<hr class="sp-cards-separator">
|
||||
<div id="shortcuts" class="section sp-card">
|
||||
- <sp-heading hide-back-button>
|
||||
- <h2 slot="heading">$i18n{shortcutsHeader}</h2>
|
||||
- </sp-heading>
|
||||
<customize-chrome-shortcuts></customize-chrome-shortcuts>
|
||||
</div>`: ''}
|
||||
${(this.modulesEnabled_ && this.isSourceTabFirstPartyNtp_) ? html`
|
||||
${(this.modulesEnabled_ && this.isSourceTabFirstPartyNtp_()) ? html`
|
||||
--- a/chrome/browser/resources/side_panel/customize_chrome/appearance.css
|
||||
+++ b/chrome/browser/resources/side_panel/customize_chrome/appearance.css
|
||||
@@ -25,7 +25,8 @@
|
||||
@@ -174,7 +174,7 @@
|
||||
<customize-chrome-hover-button id="thirdPartyThemeLinkButton"
|
||||
class="link-out-button theme-button"
|
||||
?hidden="${!this.thirdPartyThemeId_}"
|
||||
@@ -26,56 +38,16 @@ export function getHtml(this: Appearance
|
||||
@@ -26,57 +38,17 @@ export function getHtml(this: Appearance
|
||||
label="$i18n{yourUploadedImage}"
|
||||
label-description="$i18n{currentTheme}">
|
||||
</customize-chrome-hover-button>
|
||||
@@ -184,12 +184,13 @@
|
||||
- label="$i18n{yourSearchedImage}"
|
||||
- label-description="$i18n{currentTheme}">
|
||||
-</customize-chrome-hover-button>
|
||||
-${(!this.isSourceTabFirstPartyNtp_ && !!this.ntpManagedByName_) ? html`
|
||||
-${this.showManagedButton_ ? html`
|
||||
- <customize-chrome-hover-button id="thirdPartyManageLinkButton"
|
||||
- aria-button-label="${this.i18n('newTabPageManagedByA11yLabel',
|
||||
- this.ntpManagedByName_)}"
|
||||
- class="link-out-button theme-button"
|
||||
- @click="${this.onNewTabPageManageByButtonClicked_}"
|
||||
- label="${this.ntpManagedByName_}"
|
||||
- label-description="${this.i18n('newTabPageManagedBy',
|
||||
- this.ntpManagedByName_)}">
|
||||
- </customize-chrome-hover-button>
|
||||
@@ -228,6 +229,7 @@
|
||||
label="$i18n{resetToClassicChrome}"
|
||||
@click="${this.onSetClassicChromeClicked_}">
|
||||
</customize-chrome-hover-button>
|
||||
+
|
||||
+<cr-button id="editThemeButton" @click="${this.onEditThemeClicked_}">
|
||||
+ <div id="editThemeIcon" class="cr-icon edit-theme-icon" slot="prefix-icon"
|
||||
+ ?hidden="${this.wallpaperSearchButtonEnabled_}"></div>
|
||||
|
||||
@@ -8,12 +8,11 @@
|
||||
#include "chrome/common/chrome_switches.h"
|
||||
#include "chrome/common/pref_names.h"
|
||||
#include "components/prefs/pref_registry_simple.h"
|
||||
@@ -204,6 +205,9 @@ void FirstRunService::OnFirstRunHasExite
|
||||
@@ -204,6 +205,8 @@ void FirstRunService::OnFirstRunHasExite
|
||||
void FirstRunService::FinishFirstRun(FinishedReason reason) {
|
||||
SetFirstRunFinished(reason);
|
||||
|
||||
+ profile_->GetPrefs()->SetBoolean(GetThemePrefNameInMigration(
|
||||
+ ThemePrefInMigration::kGrayscaleThemeEnabled), true);
|
||||
+ profile_->GetPrefs()->SetBoolean(prefs::kGrayscaleThemeEnabled, true);
|
||||
+
|
||||
// If the reason is `FinishedReason::kForceSignin` the profile is already
|
||||
// signed in and finalized. It should not finish the setup again.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--- a/chrome/browser/resources/settings/icons.html
|
||||
+++ b/chrome/browser/resources/settings/icons.html
|
||||
@@ -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>
|
||||
@@ -74,7 +74,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
<g id="router-off"><path d="m12.105 6.855-1.062-1.062c.289-.277.629-.48 1.02-.606a3.868 3.868 0 0 1 2.374 0c.391.125.731.329 1.02.606l-1.062 1.062a1.042 1.042 0 0 0-.532-.293 2.917 2.917 0 0 0-.613-.062c-.207 0-.414.02-.613.063-.203.042-.38.14-.532.292ZM10 4.75 8.918 3.668a5.052 5.052 0 0 1 1.988-1.273A7.132 7.132 0 0 1 13.25 2c.805 0 1.586.133 2.344.395a5.052 5.052 0 0 1 1.988 1.273L16.5 4.75a4.007 4.007 0 0 0-1.488-.95 5.25 5.25 0 0 0-1.762-.3c-.61 0-1.2.102-1.762.3A4.007 4.007 0 0 0 10 4.75Zm7 10.125-4.5-4.508V8H14v3h1.5c.426 0 .785.145 1.09.438.3.292.437.644.41 1.062ZM4.5 15.5h8.875l-3-3H4.5ZM16 18.125 14.875 17H4.5c-.414 0-.766-.148-1.059-.441A1.449 1.449 0 0 1 3 15.5v-3.004c0-.414.148-.766.441-1.059A1.439 1.439 0 0 1 4.5 11h4.375l-7-7 1.063-1.063 14.124 14.126ZM6.254 14.75c-.211 0-.39-.07-.535-.215a.716.716 0 0 1-.219-.531c0-.211.07-.39.215-.535a.716.716 0 0 1 .531-.219c.211 0 .39.07.535.215.145.14.219.32.219.531 0 .211-.07.39-.215.535a.716.716 0 0 1-.531.219Zm2.75 0c-.211 0-.39-.07-.535-.215a.716.716 0 0 1-.219-.531c0-.211.07-.39.215-.535a.716.716 0 0 1 .531-.219c.211 0 .39.07.535.215.145.14.219.32.219.531 0 .211-.07.39-.215.535a.716.716 0 0 1-.531.219Zm2.75 0c-.211 0-.39-.07-.535-.215a.716.716 0 0 1-.219-.531c0-.211.07-.39.215-.535a.716.716 0 0 1 .531-.219c.211 0 .39.07.535.215.145.14.219.32.219.531 0 .211-.07.39-.215.535a.716.716 0 0 1-.531.219ZM4.5 15.5v-3Zm0 0"></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>
|
||||
- <g id="security"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.183 4.7L10 1.667 16.816 4.7v4.542c0 4.208-2.908 8.133-6.816 9.091-3.909-.958-6.817-4.883-6.817-9.091V4.7zM15.3 9.992H10V3.325L4.7 5.683V10l5.3-.008v6.775c2.816-.875 4.9-3.65 5.3-6.775z"></path></g>
|
||||
@@ -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>
|
||||
@@ -184,7 +184,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
@@ -186,7 +186,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
|
||||
<!-- Navigation: Security GM3 icon -->
|
||||
<g id="security" viewBox="0 -960 960 960">
|
||||
@@ -20,7 +20,7 @@
|
||||
<if expr="not chromeos_ash">
|
||||
--- a/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
+++ b/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
@@ -158,7 +158,7 @@
|
||||
@@ -157,7 +157,7 @@
|
||||
</a>
|
||||
<a role="menuitem" id="about-menu" href="/help"
|
||||
class="cr-nav-menu-item">
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
constexpr int kChromeRefreshTabHorizontalPadding = 8;
|
||||
|
||||
// The standard tab width is 232 DIP, excluding separators and overlap.
|
||||
@@ -97,11 +97,11 @@ int TabStyle::GetMinimumInactiveWidth()
|
||||
@@ -104,11 +104,11 @@ int TabStyle::GetMinimumInactiveWidth()
|
||||
}
|
||||
|
||||
int TabStyle::GetTopCornerRadius() const {
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/views/tabs/tab_style_views.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_style_views.cc
|
||||
@@ -202,8 +202,6 @@ SkPath TabStyleViewsImpl::GetPath(TabSty
|
||||
@@ -214,8 +214,6 @@ SkPath TabStyleViewsImpl::GetPath(TabSty
|
||||
CHECK(tab());
|
||||
const int stroke_thickness = GetStrokeThickness(force_active);
|
||||
|
||||
@@ -78,7 +78,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.
|
||||
@@ -217,11 +215,7 @@ SkPath TabStyleViewsImpl::GetPath(TabSty
|
||||
@@ -229,11 +227,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/toolbar/toolbar_button.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.cc
|
||||
@@ -164,7 +164,7 @@ void ToolbarButton::ClearHighlight() {
|
||||
@@ -157,7 +157,7 @@ void ToolbarButton::ClearHighlight() {
|
||||
|
||||
int ToolbarButton::GetRoundedCornerRadius() const {
|
||||
return ChromeLayoutProvider::Get()->GetCornerRadiusMetric(
|
||||
|
||||
+9
-3
@@ -31,6 +31,7 @@ core/ungoogled-chromium/block-requests.patch
|
||||
core/ungoogled-chromium/disable-privacy-sandbox.patch
|
||||
core/ungoogled-chromium/doh-changes.patch
|
||||
core/ungoogled-chromium/extensions-manifestv2.patch
|
||||
core/ungoogled-chromium/remove-f1-shortcut.patch
|
||||
core/bromite/disable-fetching-field-trials.patch
|
||||
|
||||
extra/ungoogled-chromium/add-ungoogled-flag-headers.patch
|
||||
@@ -103,6 +104,7 @@ extra/ungoogled-chromium/disable-chromelabs.patch
|
||||
extra/ungoogled-chromium/remove-pac-size-limit.patch
|
||||
extra/ungoogled-chromium/enable-certificate-transparency-and-add-flag.patch
|
||||
extra/ungoogled-chromium/add-flag-to-spoof-webgl-renderer-info.patch
|
||||
extra/ungoogled-chromium/add-flag-to-increase-incognito-storage-quota.patch
|
||||
|
||||
extra/brave/chrome-importer-files.patch
|
||||
extra/brave/custom-importer.patch
|
||||
@@ -116,12 +118,10 @@ helium/core/scan-chrome-native-messaging-hosts.patch
|
||||
helium/core/make-ddg-default.patch
|
||||
helium/core/add-kagi-search.patch
|
||||
helium/core/copy-page-url-shortcut.patch
|
||||
|
||||
helium/core/update-default-browser-prefs.patch
|
||||
helium/core/proxy-extension-downloads.patch
|
||||
helium/core/reenable-update-checks.patch
|
||||
helium/core/download-icons-from-source.patch
|
||||
helium/core/regenerate-search_engine_choice_scaled_resources.patch
|
||||
helium/core/fix-search-engine-icons.patch
|
||||
helium/core/add-native-bangs.patch
|
||||
helium/core/force-eu-search-features.patch
|
||||
helium/core/disable-bookmarks-bar.patch
|
||||
@@ -143,6 +143,9 @@ helium/core/hide-avatar-via-toolbar-prefs.patch
|
||||
helium/core/hide-extensions-via-toolbar-prefs.patch
|
||||
helium/core/clean-context-menu.patch
|
||||
helium/core/split-view.patch
|
||||
helium/core/fix-tab-sync-unreached-error.patch
|
||||
helium/core/add-update-channels.patch
|
||||
helium/core/add-updater-preference.patch
|
||||
|
||||
helium/settings/move-search-suggest.patch
|
||||
helium/settings/remove-autofill.patch
|
||||
@@ -150,6 +153,9 @@ helium/settings/fix-page-names.patch
|
||||
helium/settings/disable-safety-hub-page.patch
|
||||
helium/settings/remove-results-help-link.patch
|
||||
helium/settings/about-page-tweaks.patch
|
||||
helium/settings/remove-translate-section.patch
|
||||
helium/settings/remove-safety-hub-entry-points.patch
|
||||
helium/settings/reenable-update-status.patch
|
||||
|
||||
helium/hop/setup.patch
|
||||
helium/hop/disable-password-manager.patch
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
1
|
||||
5
|
||||
|
||||
Reference in New Issue
Block a user