| 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 <windows.h> | 7 #include <windows.h> |
| 8 #include <shellapi.h> | 8 #include <shellapi.h> |
| 9 #include <shlobj.h> | 9 #include <shlobj.h> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/environment.h" | 12 #include "base/environment.h" |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.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/prefs/pref_service.h" |
| 16 #include "base/process_util.h" | 17 #include "base/process_util.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/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/threading/sequenced_worker_pool.h" | 21 #include "base/threading/sequenced_worker_pool.h" |
| 21 #include "base/time.h" | 22 #include "base/time.h" |
| 22 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
| 23 #include "base/win/metro.h" | 24 #include "base/win/metro.h" |
| 24 #include "base/win/object_watcher.h" | 25 #include "base/win/object_watcher.h" |
| 25 #include "base/win/windows_version.h" | 26 #include "base/win/windows_version.h" |
| 26 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
| 27 #include "chrome/browser/first_run/first_run_import_observer.h" | 28 #include "chrome/browser/first_run/first_run_import_observer.h" |
| 28 #include "chrome/browser/first_run/first_run_internal.h" | 29 #include "chrome/browser/first_run/first_run_internal.h" |
| 29 #include "chrome/browser/importer/importer_host.h" | 30 #include "chrome/browser/importer/importer_host.h" |
| 30 #include "chrome/browser/importer/importer_list.h" | 31 #include "chrome/browser/importer/importer_list.h" |
| 31 #include "chrome/browser/importer/importer_progress_dialog.h" | 32 #include "chrome/browser/importer/importer_progress_dialog.h" |
| 32 #include "chrome/browser/prefs/pref_service.h" | |
| 33 #include "chrome/browser/process_singleton.h" | 33 #include "chrome/browser/process_singleton.h" |
| 34 #include "chrome/browser/profiles/profile.h" | 34 #include "chrome/browser/profiles/profile.h" |
| 35 #include "chrome/browser/shell_integration.h" | 35 #include "chrome/browser/shell_integration.h" |
| 36 #include "chrome/common/chrome_constants.h" | 36 #include "chrome/common/chrome_constants.h" |
| 37 #include "chrome/common/chrome_paths.h" | 37 #include "chrome/common/chrome_paths.h" |
| 38 #include "chrome/common/chrome_result_codes.h" | 38 #include "chrome/common/chrome_result_codes.h" |
| 39 #include "chrome/common/chrome_switches.h" | 39 #include "chrome/common/chrome_switches.h" |
| 40 #include "chrome/common/pref_names.h" | 40 #include "chrome/common/pref_names.h" |
| 41 #include "chrome/common/worker_thread_ticker.h" | 41 #include "chrome/common/worker_thread_ticker.h" |
| 42 #include "chrome/installer/util/browser_distribution.h" | 42 #include "chrome/installer/util/browser_distribution.h" |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 | 503 |
| 504 base::FilePath MasterPrefsPath() { | 504 base::FilePath MasterPrefsPath() { |
| 505 // The standard location of the master prefs is next to the chrome binary. | 505 // The standard location of the master prefs is next to the chrome binary. |
| 506 base::FilePath master_prefs; | 506 base::FilePath master_prefs; |
| 507 if (!PathService::Get(base::DIR_EXE, &master_prefs)) | 507 if (!PathService::Get(base::DIR_EXE, &master_prefs)) |
| 508 return base::FilePath(); | 508 return base::FilePath(); |
| 509 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); | 509 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); |
| 510 } | 510 } |
| 511 | 511 |
| 512 } // namespace first_run | 512 } // namespace first_run |
| OLD | NEW |