OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 // TODO(port): move more code in back from the first_run_win.cc module. | 9 // TODO(port): move more code in back from the first_run_win.cc module. |
10 | 10 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
12 #include "chrome/installer/util/google_update_settings.h" | 12 #include "chrome/installer/util/google_update_settings.h" |
13 #include "chrome/installer/util/install_util.h" | 13 #include "chrome/installer/util/install_util.h" |
14 #endif | 14 #endif |
15 | 15 |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
20 #include "chrome/browser/importer/importer.h" | 20 #include "chrome/browser/importer/importer.h" |
21 #include "chrome/browser/pref_service.h" | 21 #include "chrome/browser/prefs/pref_service.h" |
22 #include "chrome/browser/profile_manager.h" | 22 #include "chrome/browser/profile_manager.h" |
23 #include "chrome/browser/shell_integration.h" | 23 #include "chrome/browser/shell_integration.h" |
24 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
27 #include "chrome/installer/util/master_preferences.h" | 27 #include "chrome/installer/util/master_preferences.h" |
28 #include "chrome/installer/util/util_constants.h" | 28 #include "chrome/installer/util/util_constants.h" |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 void FirstRunImportObserver::RunLoop() { | 447 void FirstRunImportObserver::RunLoop() { |
448 loop_running_ = true; | 448 loop_running_ = true; |
449 MessageLoop::current()->Run(); | 449 MessageLoop::current()->Run(); |
450 } | 450 } |
451 | 451 |
452 void FirstRunImportObserver::Finish() { | 452 void FirstRunImportObserver::Finish() { |
453 if (loop_running_) | 453 if (loop_running_) |
454 MessageLoop::current()->Quit(); | 454 MessageLoop::current()->Quit(); |
455 } | 455 } |
456 | 456 |
OLD | NEW |