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 #import "base/scoped_nsobject.h" | 7 #import "base/scoped_nsobject.h" |
8 #include "base/sys_string_conversions.h" | 8 #include "base/sys_string_conversions.h" |
9 #import "chrome/app/breakpad_mac.h" | 9 #import "chrome/app/breakpad_mac.h" |
10 #import "chrome/browser/cocoa/first_run_dialog.h" | 10 #import "chrome/browser/cocoa/first_run_dialog.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 bool homepage_defined, | 50 bool homepage_defined, |
51 int import_items, | 51 int import_items, |
52 int dont_import_items, | 52 int dont_import_items, |
53 bool search_engine_experiment, | 53 bool search_engine_experiment, |
54 bool randomize_search_engine_experiment, | 54 bool randomize_search_engine_experiment, |
55 ProcessSingleton* process_singleton) { | 55 ProcessSingleton* process_singleton) { |
56 FirstRunController* controller = new FirstRunController; | 56 FirstRunController* controller = new FirstRunController; |
57 return controller->DoFirstRun(profile, process_singleton); | 57 return controller->DoFirstRun(profile, process_singleton); |
58 } | 58 } |
59 | 59 |
60 bool FirstRun::ProcessMasterPreferences(const FilePath& user_data_dir, | |
61 MasterPrefs* out_prefs) { | |
62 // TODO(jeremy,viettrungluu): http://crbug.com/44901 | |
63 NOTIMPLEMENTED(); | |
64 return true; | |
65 } | |
66 | |
67 FirstRunController::FirstRunController() | 60 FirstRunController::FirstRunController() |
68 : importer_host_(new ExternalProcessImporterHost) { | 61 : importer_host_(new ExternalProcessImporterHost) { |
69 } | 62 } |
70 | 63 |
71 void FirstRunController::FirstRunDone() { | 64 void FirstRunController::FirstRunDone() { |
72 // Set preference to show first run bubble and welcome page. | 65 // Set preference to show first run bubble and welcome page. |
73 FirstRun::SetShowFirstRunBubblePref(true); | 66 FirstRun::SetShowFirstRunBubblePref(true); |
74 FirstRun::SetShowWelcomePagePref(); | 67 FirstRun::SetShowWelcomePagePref(); |
75 } | 68 } |
76 | 69 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 ignore_result(gc.release()); | 142 ignore_result(gc.release()); |
150 StartImportingWithUI(nil, items, importer_host_.get(), | 143 StartImportingWithUI(nil, items, importer_host_.get(), |
151 source_profile, profile, this, true); | 144 source_profile, profile, this, true); |
152 } else { | 145 } else { |
153 // This is called by the importer if it runs. | 146 // This is called by the importer if it runs. |
154 FirstRunDone(); | 147 FirstRunDone(); |
155 } | 148 } |
156 | 149 |
157 return true; | 150 return true; |
158 } | 151 } |
| 152 bool FirstRun::ImportBookmarks(const FilePath& import_bookmarks_path) { |
| 153 // http://crbug.com/48880 |
| 154 return false; |
| 155 } |
OLD | NEW |