Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: chrome/browser/first_run/first_run.cc

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/extensions/updater/extension_updater.h" 21 #include "chrome/browser/extensions/updater/extension_updater.h"
22 #include "chrome/browser/first_run/first_run_dialog.h" 22 #include "chrome/browser/first_run/first_run_dialog.h"
23 #include "chrome/browser/first_run/first_run_import_observer.h" 23 #include "chrome/browser/first_run/first_run_import_observer.h"
24 #include "chrome/browser/first_run/first_run_internal.h" 24 #include "chrome/browser/first_run/first_run_internal.h"
25 #include "chrome/browser/google/google_util.h" 25 #include "chrome/browser/google/google_util.h"
26 #include "chrome/browser/importer/external_process_importer_host.h" 26 #include "chrome/browser/importer/external_process_importer_host.h"
27 #include "chrome/browser/importer/importer_host.h" 27 #include "chrome/browser/importer/importer_host.h"
28 #include "chrome/browser/importer/importer_list.h" 28 #include "chrome/browser/importer/importer_list.h"
29 #include "chrome/browser/importer/importer_progress_dialog.h" 29 #include "chrome/browser/importer/importer_progress_dialog.h"
30 #include "chrome/browser/importer/importer_progress_observer.h" 30 #include "chrome/browser/importer/importer_progress_observer.h"
31 #include "chrome/browser/prefs/pref_registry_syncable.h"
32 #include "chrome/browser/process_singleton.h" 31 #include "chrome/browser/process_singleton.h"
33 #include "chrome/browser/profiles/profile_manager.h" 32 #include "chrome/browser/profiles/profile_manager.h"
34 #include "chrome/browser/search_engines/template_url_service.h" 33 #include "chrome/browser/search_engines/template_url_service.h"
35 #include "chrome/browser/search_engines/template_url_service_factory.h" 34 #include "chrome/browser/search_engines/template_url_service_factory.h"
36 #include "chrome/browser/shell_integration.h" 35 #include "chrome/browser/shell_integration.h"
37 #include "chrome/browser/ui/browser.h" 36 #include "chrome/browser/ui/browser.h"
38 #include "chrome/browser/ui/browser_finder.h" 37 #include "chrome/browser/ui/browser_finder.h"
39 #include "chrome/browser/ui/global_error/global_error_service.h" 38 #include "chrome/browser/ui/global_error/global_error_service.h"
40 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 39 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
41 #include "chrome/browser/ui/tabs/tab_strip_model.h" 40 #include "chrome/browser/ui/tabs/tab_strip_model.h"
42 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 41 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
43 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" 42 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
44 #include "chrome/common/chrome_notification_types.h" 43 #include "chrome/common/chrome_notification_types.h"
45 #include "chrome/common/chrome_paths.h" 44 #include "chrome/common/chrome_paths.h"
46 #include "chrome/common/chrome_switches.h" 45 #include "chrome/common/chrome_switches.h"
47 #include "chrome/common/pref_names.h" 46 #include "chrome/common/pref_names.h"
48 #include "chrome/common/startup_metric_utils.h" 47 #include "chrome/common/startup_metric_utils.h"
49 #include "chrome/common/url_constants.h" 48 #include "chrome/common/url_constants.h"
50 #include "chrome/installer/util/master_preferences.h" 49 #include "chrome/installer/util/master_preferences.h"
51 #include "chrome/installer/util/master_preferences_constants.h" 50 #include "chrome/installer/util/master_preferences_constants.h"
52 #include "chrome/installer/util/util_constants.h" 51 #include "chrome/installer/util/util_constants.h"
52 #include "components/user_prefs/pref_registry_syncable.h"
53 #include "content/public/browser/notification_service.h" 53 #include "content/public/browser/notification_service.h"
54 #include "content/public/browser/notification_types.h" 54 #include "content/public/browser/notification_types.h"
55 #include "content/public/browser/user_metrics.h" 55 #include "content/public/browser/user_metrics.h"
56 #include "content/public/browser/web_contents.h" 56 #include "content/public/browser/web_contents.h"
57 #include "google_apis/gaia/gaia_auth_util.h" 57 #include "google_apis/gaia/gaia_auth_util.h"
58 #include "googleurl/src/gurl.h" 58 #include "googleurl/src/gurl.h"
59 59
60 using content::UserMetricsAction; 60 using content::UserMetricsAction;
61 61
62 namespace { 62 namespace {
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 internal::DoPostImportPlatformSpecificTasks(); 743 internal::DoPostImportPlatformSpecificTasks();
744 } 744 }
745 745
746 bool DidPerformProfileImport(bool* exited_successfully) { 746 bool DidPerformProfileImport(bool* exited_successfully) {
747 if (exited_successfully) 747 if (exited_successfully)
748 *exited_successfully = profile_import_exited_successfully; 748 *exited_successfully = profile_import_exited_successfully;
749 return did_perform_profile_import; 749 return did_perform_profile_import;
750 } 750 }
751 751
752 } // namespace first_run 752 } // namespace first_run
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698