chromium-browser-stable-test/chromium-30.0.1599.66-master-prefs-path.patch

15 lines
669 B
Diff
Raw Permalink Normal View History

--- chromium-89.0.4389.82/chrome/browser/first_run/first_run_internal_linux.cc.orig 2021-03-07 14:49:07.372334047 +0300
+++ chromium-89.0.4389.82/chrome/browser/first_run/first_run_internal_linux.cc 2021-03-07 14:49:57.910937907 +0300
@@ -19,9 +19,9 @@
2020-10-22 17:33:11 +03:00
base::FilePath InitialPrefsPath() {
// The standard location of the initial prefs is next to the chrome binary.
+ // ...but we patch it to use /etc/chromium
base::FilePath initial_prefs;
- if (!base::PathService::Get(base::DIR_EXE, &initial_prefs))
2013-10-07 14:53:21 +04:00
- return base::FilePath();
2020-10-22 17:33:11 +03:00
+ initial_prefs = base::FilePath("/etc/chromium");
return initial_prefs.AppendASCII(installer::kLegacyInitialPrefs);
2013-10-07 14:53:21 +04:00
}