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 <shlobj.h> | 7 #include <shlobj.h> |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 #include <sstream> | 11 #include <sstream> |
12 | 12 |
13 #include "base/environment.h" | 13 #include "base/environment.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/process_util.h" |
16 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
17 #include "base/string_split.h" | 18 #include "base/string_split.h" |
18 #include "base/stringprintf.h" | 19 #include "base/stringprintf.h" |
19 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
20 #include "base/win/object_watcher.h" | 21 #include "base/win/object_watcher.h" |
21 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
22 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/extensions/extension_service.h" | 24 #include "chrome/browser/extensions/extension_service.h" |
24 #include "chrome/browser/extensions/extension_updater.h" | 25 #include "chrome/browser/extensions/extension_updater.h" |
25 #include "chrome/browser/first_run/first_run_import_observer.h" | 26 #include "chrome/browser/first_run/first_run_import_observer.h" |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 | 484 |
484 FilePath MasterPrefsPath() { | 485 FilePath MasterPrefsPath() { |
485 // The standard location of the master prefs is next to the chrome binary. | 486 // The standard location of the master prefs is next to the chrome binary. |
486 FilePath master_prefs; | 487 FilePath master_prefs; |
487 if (!PathService::Get(base::DIR_EXE, &master_prefs)) | 488 if (!PathService::Get(base::DIR_EXE, &master_prefs)) |
488 return FilePath(); | 489 return FilePath(); |
489 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); | 490 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); |
490 } | 491 } |
491 | 492 |
492 } // namespace first_run | 493 } // namespace first_run |
OLD | NEW |