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 |
(...skipping 10 matching lines...) Expand all Loading... |
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" | 25 #include "chrome/grit/locale_settings.h" |
26 #include "chrome/installer/util/google_update_settings.h" | 26 #include "chrome/installer/util/google_update_settings.h" |
27 #include "chrome/installer/util/install_util.h" | 27 #include "chrome/installer/util/install_util.h" |
28 #include "chrome/installer/util/master_preferences.h" | 28 #include "chrome/installer/util/master_preferences.h" |
29 #include "chrome/installer/util/master_preferences_constants.h" | 29 #include "chrome/installer/util/master_preferences_constants.h" |
30 #include "chrome/installer/util/util_constants.h" | 30 #include "chrome/installer/util/util_constants.h" |
| 31 #include "components/strings/grit/components_locale_settings.h" |
31 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
32 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
33 #include "ui/base/win/shell.h" | 34 #include "ui/base/win/shell.h" |
34 | 35 |
35 namespace { | 36 namespace { |
36 | 37 |
37 // Launches the setup exe with the given parameter/value on the command-line. | 38 // Launches the setup exe with the given parameter/value on the command-line. |
38 // For non-metro Windows, it waits for its termination, returns its exit code | 39 // For non-metro Windows, it waits for its termination, returns its exit code |
39 // in |*ret_code|, and returns true if the exit code is valid. | 40 // in |*ret_code|, and returns true if the exit code is valid. |
40 // For metro Windows, it launches setup via ShellExecuteEx and returns in order | 41 // For metro Windows, it launches setup via ShellExecuteEx and returns in order |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 base::FilePath MasterPrefsPath() { | 181 base::FilePath MasterPrefsPath() { |
181 // The standard location of the master prefs is next to the chrome binary. | 182 // The standard location of the master prefs is next to the chrome binary. |
182 base::FilePath master_prefs; | 183 base::FilePath master_prefs; |
183 if (!PathService::Get(base::DIR_EXE, &master_prefs)) | 184 if (!PathService::Get(base::DIR_EXE, &master_prefs)) |
184 return base::FilePath(); | 185 return base::FilePath(); |
185 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); | 186 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); |
186 } | 187 } |
187 | 188 |
188 } // namespace internal | 189 } // namespace internal |
189 } // namespace first_run | 190 } // namespace first_run |
OLD | NEW |