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 | 9 |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_util.h" | |
14 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/process/kill.h" | 16 #include "base/process/kill.h" |
17 #include "base/process/launch.h" | 17 #include "base/process/launch.h" |
18 #include "base/process/process.h" | 18 #include "base/process/process.h" |
19 #include "base/threading/sequenced_worker_pool.h" | 19 #include "base/threading/sequenced_worker_pool.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "base/win/metro.h" | 21 #include "base/win/metro.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" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 base::FilePath MasterPrefsPath() { | 195 base::FilePath MasterPrefsPath() { |
196 // The standard location of the master prefs is next to the chrome binary. | 196 // The standard location of the master prefs is next to the chrome binary. |
197 base::FilePath master_prefs; | 197 base::FilePath master_prefs; |
198 if (!PathService::Get(base::DIR_EXE, &master_prefs)) | 198 if (!PathService::Get(base::DIR_EXE, &master_prefs)) |
199 return base::FilePath(); | 199 return base::FilePath(); |
200 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); | 200 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); |
201 } | 201 } |
202 | 202 |
203 } // namespace internal | 203 } // namespace internal |
204 } // namespace first_run | 204 } // namespace first_run |
OLD | NEW |