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.h" | 5 #include "chrome/browser/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" |
11 #import "chrome/browser/cocoa/import_progress_dialog.h" | 11 #import "chrome/browser/cocoa/import_progress_dialog.h" |
12 #include "chrome/browser/importer/importer.h" | 12 #include "chrome/browser/importer/importer.h" |
13 #include "chrome/browser/importer/importer_data_types.h" | 13 #include "chrome/common/importer_data_types.h" |
14 #include "chrome/browser/metrics/user_metrics.h" | 14 #include "chrome/browser/metrics/user_metrics.h" |
15 #include "chrome/browser/shell_integration.h" | 15 #include "chrome/browser/shell_integration.h" |
16 #include "chrome/installer/util/google_update_constants.h" | 16 #include "chrome/installer/util/google_update_constants.h" |
17 #include "chrome/installer/util/google_update_settings.h" | 17 #include "chrome/installer/util/google_update_settings.h" |
18 | 18 |
19 // Class that handles conducting the first run operation. | 19 // Class that handles conducting the first run operation. |
20 // FirstRunController deletes itself when the first run operation ends. | 20 // FirstRunController deletes itself when the first run operation ends. |
21 class FirstRunController : public ImportObserver { | 21 class FirstRunController : public ImportObserver { |
22 public: | 22 public: |
23 explicit FirstRunController(); | 23 explicit FirstRunController(); |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 GetSourceProfileInfoAt([dialog.get() browserImportSelectedIndex]); | 142 GetSourceProfileInfoAt([dialog.get() browserImportSelectedIndex]); |
143 int16 items = source_profile.services_supported; | 143 int16 items = source_profile.services_supported; |
144 // TODO(port): Do the actual import in a new process like Windows. | 144 // TODO(port): Do the actual import in a new process like Windows. |
145 ignore_result(gc.release()); | 145 ignore_result(gc.release()); |
146 StartImportingWithUI(nil, items, importer_host_.get(), | 146 StartImportingWithUI(nil, items, importer_host_.get(), |
147 source_profile, profile, this, true); | 147 source_profile, profile, this, true); |
148 } | 148 } |
149 | 149 |
150 return true; | 150 return true; |
151 } | 151 } |
OLD | NEW |