| OLD | NEW |
| 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/importer/importer_list.h" | 5 #include "chrome/browser/importer/importer_list.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chrome/browser/shell_integration.h" | 8 #include "chrome/browser/shell_integration.h" |
| 9 #include "chrome/common/importer/firefox_importer_utils.h" | 9 #include "chrome/common/importer/firefox_importer_utils.h" |
| 10 #include "chrome/common/importer/importer_bridge.h" | 10 #include "chrome/common/importer/importer_bridge.h" |
| 11 #include "chrome/common/importer/importer_data_types.h" | 11 #include "chrome/common/importer/importer_data_types.h" |
| 12 #include "chrome/grit/generated_resources.h" |
| 12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 13 #include "grit/generated_resources.h" | |
| 14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 15 | 15 |
| 16 #if defined(OS_MACOSX) | 16 #if defined(OS_MACOSX) |
| 17 #include <CoreFoundation/CoreFoundation.h> | 17 #include <CoreFoundation/CoreFoundation.h> |
| 18 | 18 |
| 19 #include "base/mac/foundation_util.h" | 19 #include "base/mac/foundation_util.h" |
| 20 #include "chrome/common/importer/safari_importer_utils.h" | 20 #include "chrome/common/importer/safari_importer_utils.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 using content::BrowserThread; | 23 using content::BrowserThread; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } | 172 } |
| 173 | 173 |
| 174 void ImporterList::SourceProfilesLoaded( | 174 void ImporterList::SourceProfilesLoaded( |
| 175 const base::Closure& profiles_loaded_callback, | 175 const base::Closure& profiles_loaded_callback, |
| 176 const std::vector<importer::SourceProfile*>& profiles) { | 176 const std::vector<importer::SourceProfile*>& profiles) { |
| 177 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 177 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 178 | 178 |
| 179 source_profiles_.assign(profiles.begin(), profiles.end()); | 179 source_profiles_.assign(profiles.begin(), profiles.end()); |
| 180 profiles_loaded_callback.Run(); | 180 profiles_loaded_callback.Run(); |
| 181 } | 181 } |
| OLD | NEW |