Skip to content

Commit

Permalink
prefs: use system-provided preference skeleton
Browse files Browse the repository at this point in the history
This patch makes it possible for distributions to have a global
default preferences file in /etc/iridium-browser/preferences that get
copied over to ~ when the user starts the program for the first time.
  • Loading branch information
jengelh committed Nov 7, 2019
1 parent 040a733 commit 95534f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chrome/browser/first_run/first_run_internal_linux.cc
Expand Up @@ -20,8 +20,12 @@ bool IsOrganicFirstRun() {
base::FilePath MasterPrefsPath() {
// The standard location of the master prefs is next to the chrome binary.
base::FilePath master_prefs;
#ifndef ANDROID
master_prefs = base::FilePath("/etc/iridium-browser");
#else
if (!base::PathService::Get(base::DIR_EXE, &master_prefs))
return base::FilePath();
#endif
return master_prefs.AppendASCII(installer::kDefaultMasterPrefs);
}

Expand Down

0 comments on commit 95534f7

Please sign in to comment.