1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/browser/first_run/first_run_internal.h" 6 7 #include "base/base_paths.h" 8 #include "base/files/file_path.h" 9 #include "base/path_service.h" 10 #include "chrome/installer/util/master_preferences.h" 11 12 namespace first_run { 13 namespace internal { 14 15 bool IsOrganicFirstRun() { 16 // We treat all installs as organic. 17 return true; 18 } 19 20 base::FilePath MasterPrefsPath() { 21 // The standard location of the master prefs is next to the chrome binary. 22 base::FilePath master_prefs; 23 if (!PathService::Get(base::DIR_EXE, &master_prefs)) 24 return base::FilePath(); 25 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); 26 } 27 28 } // namespace internal 29 } // namespace first_run 30