| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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.h" | 5 #include "chrome/browser/first_run.h" |
| 6 | 6 |
| 7 #include "chrome/browser/gtk/first_run_dialog.h" | 7 #include "chrome/browser/gtk/first_run_dialog.h" |
| 8 | 8 |
| 9 bool OpenFirstRunDialog(Profile* profile, bool homepage_defined, | 9 bool OpenFirstRunDialog(Profile* profile, bool homepage_defined, |
| 10 int import_items, | 10 int import_items, |
| 11 int dont_import_items, | 11 int dont_import_items, |
| 12 ProcessSingleton* process_singleton) { | 12 ProcessSingleton* process_singleton) { |
| 13 // TODO(port): Use process_singleton to make sure Chrome can not be started | |
| 14 // while this process is active. | |
| 15 return FirstRunDialog::Show(profile, process_singleton); | 13 return FirstRunDialog::Show(profile, process_singleton); |
| 16 } | 14 } |
| 17 | |
| 18 bool FirstRun::ProcessMasterPreferences(const FilePath& user_data_dir, | |
| 19 const FilePath& master_prefs_path, | |
| 20 std::vector<std::wstring>* new_tabs, | |
| 21 int* ping_delay, | |
| 22 bool* homepage_defined, | |
| 23 int* do_import_items, | |
| 24 int* dont_import_items) { | |
| 25 // http://code.google.com/p/chromium/issues/detail?id=11971 | |
| 26 return true; | |
| 27 } | |
| 28 | |
| 29 // static | |
| 30 int FirstRun::ImportNow(Profile* profile, const CommandLine& cmdline) { | |
| 31 // http://code.google.com/p/chromium/issues/detail?id=11971 | |
| 32 return 0; | |
| 33 } | |
| OLD | NEW |