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_host.h" | 5 #include "chrome/browser/importer/importer_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/bookmarks/bookmark_model.h" | 12 #include "chrome/browser/bookmarks/bookmark_model.h" |
13 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 13 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/importer/firefox_profile_lock.h" | 15 #include "chrome/browser/importer/firefox_profile_lock.h" |
16 #include "chrome/browser/importer/importer.h" | 16 #include "chrome/browser/importer/importer.h" |
17 #include "chrome/browser/importer/importer_lock_dialog.h" | 17 #include "chrome/browser/importer/importer_lock_dialog.h" |
18 #include "chrome/browser/importer/importer_progress_observer.h" | 18 #include "chrome/browser/importer/importer_progress_observer.h" |
19 #include "chrome/browser/importer/importer_type.h" | 19 #include "chrome/browser/importer/importer_type.h" |
20 #include "chrome/browser/importer/in_process_importer_bridge.h" | 20 #include "chrome/browser/importer/in_process_importer_bridge.h" |
21 #include "chrome/browser/importer/toolbar_importer_utils.h" | 21 #include "chrome/browser/importer/toolbar_importer_utils.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 const content::NotificationDetails& details) { | 273 const content::NotificationDetails& details) { |
274 DCHECK(type == chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED); | 274 DCHECK(type == chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED); |
275 registrar_.RemoveAll(); | 275 registrar_.RemoveAll(); |
276 InvokeTaskIfDone(); | 276 InvokeTaskIfDone(); |
277 } | 277 } |
278 | 278 |
279 void ImporterHost::OnBrowserRemoved(Browser* browser) { | 279 void ImporterHost::OnBrowserRemoved(Browser* browser) { |
280 if (browser_ == browser) | 280 if (browser_ == browser) |
281 browser_ = NULL; | 281 browser_ = NULL; |
282 } | 282 } |
OLD | NEW |