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 #import "chrome/browser/ui/cocoa/import_settings_dialog.h" | 5 #import "chrome/browser/ui/cocoa/import_settings_dialog.h" |
6 | 6 |
7 #include "base/mac_util.h" | 7 #include "base/mac_util.h" |
8 #include "base/sys_string_conversions.h" | 8 #include "base/sys_string_conversions.h" |
9 #include "chrome/browser/importer/importer_data_types.h" | 9 #include "chrome/browser/importer/importer_data_types.h" |
10 #include "chrome/browser/importer/importer_list.h" | 10 #include "chrome/browser/importer/importer_list.h" |
11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 bool importSettingsDialogVisible = false; | 15 bool importSettingsDialogVisible = false; |
16 | 16 |
17 } // namespace | 17 } // namespace |
18 | 18 |
19 @interface ImportSettingsDialogController () | 19 @interface ImportSettingsDialogController () |
20 | 20 |
21 @property(assign, readwrite, nonatomic) BOOL historyAvailable; | 21 @property(assign, readwrite, nonatomic) BOOL historyAvailable; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 // KVO accessor which returns YES if at least one of the services | 237 // KVO accessor which returns YES if at least one of the services |
238 // provided by the selected profile has been marked for importing | 238 // provided by the selected profile has been marked for importing |
239 // and bound to the OK button's enable property. | 239 // and bound to the OK button's enable property. |
240 - (BOOL)importSomething { | 240 - (BOOL)importSomething { |
241 return [self importHistory] || [self importFavorites] || | 241 return [self importHistory] || [self importFavorites] || |
242 [self importPasswords] || [self importSearchEngines]; | 242 [self importPasswords] || [self importSearchEngines]; |
243 } | 243 } |
244 | 244 |
245 @end | 245 @end |
OLD | NEW |