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_internal.h" | 5 #include "chrome/browser/first_run/first_run_internal.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "base/base_paths.h" | 11 #include "base/base_paths.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/process/kill.h" | 17 #include "base/process/kill.h" |
18 #include "base/process/launch.h" | 18 #include "base/process/launch.h" |
19 #include "base/process/process.h" | 19 #include "base/process/process.h" |
20 #include "base/threading/sequenced_worker_pool.h" | 20 #include "base/threading/sequenced_worker_pool.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
23 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
25 #include "chrome/grit/locale_settings.h" | |
26 #include "chrome/installer/util/google_update_settings.h" | 25 #include "chrome/installer/util/google_update_settings.h" |
27 #include "chrome/installer/util/install_util.h" | 26 #include "chrome/installer/util/install_util.h" |
28 #include "chrome/installer/util/master_preferences.h" | 27 #include "chrome/installer/util/master_preferences.h" |
29 #include "chrome/installer/util/master_preferences_constants.h" | 28 #include "chrome/installer/util/master_preferences_constants.h" |
30 #include "chrome/installer/util/util_constants.h" | 29 #include "chrome/installer/util/util_constants.h" |
31 #include "components/strings/grit/components_locale_settings.h" | 30 #include "components/strings/grit/components_locale_settings.h" |
32 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
33 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
34 #include "ui/base/win/shell.h" | 33 #include "ui/base/win/shell.h" |
35 | 34 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 base::FilePath MasterPrefsPath() { | 158 base::FilePath MasterPrefsPath() { |
160 // The standard location of the master prefs is next to the chrome binary. | 159 // The standard location of the master prefs is next to the chrome binary. |
161 base::FilePath master_prefs; | 160 base::FilePath master_prefs; |
162 if (!PathService::Get(base::DIR_EXE, &master_prefs)) | 161 if (!PathService::Get(base::DIR_EXE, &master_prefs)) |
163 return base::FilePath(); | 162 return base::FilePath(); |
164 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); | 163 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); |
165 } | 164 } |
166 | 165 |
167 } // namespace internal | 166 } // namespace internal |
168 } // namespace first_run | 167 } // namespace first_run |
OLD | NEW |