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

20 lines
735 B
Diff
Raw Normal View History

2023-07-19 16:49:56 +03:00
diff --git a/chrome/browser/first_run/first_run_internal_linux.cc b/chrome/browser/first_run/first_run_internal_linux.cc
index 33fd579..9890694 100644
--- a/chrome/browser/first_run/first_run_internal_linux.cc
+++ b/chrome/browser/first_run/first_run_internal_linux.cc
@@ -20,12 +20,9 @@ bool IsOrganicFirstRun() {
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
2023-07-19 16:49:56 +03:00
base::FilePath dir_exe;
- if (!base::PathService::Get(base::DIR_EXE, &dir_exe)) {
2013-10-07 14:53:21 +04:00
- return base::FilePath();
2023-07-19 16:49:56 +03:00
- }
-
- return installer::InitialPreferences::Path(dir_exe);
+ dir_exe = base::FilePath("/etc/chromium");
2013-10-07 14:53:21 +04:00
}
2023-07-19 16:49:56 +03:00
} // namespace internal