OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/first_run/first_run.h" | 5 #include "chrome/browser/first_run/first_run.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 dont_import_items, | 90 dont_import_items, |
91 search_engine_experiment, | 91 search_engine_experiment, |
92 randomize_search_engine_experiment, | 92 randomize_search_engine_experiment, |
93 make_chrome_default); | 93 make_chrome_default); |
94 | 94 |
95 process_singleton->Unlock(); | 95 process_singleton->Unlock(); |
96 CreateSentinel(); | 96 CreateSentinel(); |
97 #endif // !defined(USE_AURA) | 97 #endif // !defined(USE_AURA) |
98 } | 98 } |
99 | 99 |
100 } // namespace first_run | 100 FilePath MasterPrefsPath() { |
101 | |
102 // static | |
103 FilePath FirstRun::MasterPrefsPath() { | |
104 // The standard location of the master prefs is next to the chrome binary. | 101 // The standard location of the master prefs is next to the chrome binary. |
105 FilePath master_prefs; | 102 FilePath master_prefs; |
106 if (!PathService::Get(base::DIR_EXE, &master_prefs)) | 103 if (!PathService::Get(base::DIR_EXE, &master_prefs)) |
107 return FilePath(); | 104 return FilePath(); |
108 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); | 105 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); |
109 } | 106 } |
| 107 |
| 108 } // namespace first_run |
OLD | NEW |