OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/bookmarks/bookmark_model.h" | 9 #include "chrome/browser/bookmarks/bookmark_model.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/ui/browser_list.h" | 23 #include "chrome/browser/ui/browser_list.h" |
24 #include "chrome/common/chrome_notification_types.h" | 24 #include "chrome/common/chrome_notification_types.h" |
25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
27 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
29 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
30 | 30 |
31 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
32 // TODO(port): Port this file. | 32 // TODO(port): Port this file. |
33 #include "ui/base/message_box_win.h" | 33 #include "ui/base/win/message_box_win.h" |
34 #endif | 34 #endif |
35 | 35 |
36 using content::BrowserThread; | 36 using content::BrowserThread; |
37 | 37 |
38 ImporterHost::ImporterHost() | 38 ImporterHost::ImporterHost() |
39 : profile_(NULL), | 39 : profile_(NULL), |
40 waiting_for_bookmarkbar_model_(false), | 40 waiting_for_bookmarkbar_model_(false), |
41 installed_bookmark_observer_(false), | 41 installed_bookmark_observer_(false), |
42 is_source_readable_(true), | 42 is_source_readable_(true), |
43 importer_(NULL), | 43 importer_(NULL), |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 void ImporterHost::BookmarkModelChanged() { | 264 void ImporterHost::BookmarkModelChanged() { |
265 } | 265 } |
266 | 266 |
267 void ImporterHost::Observe(int type, | 267 void ImporterHost::Observe(int type, |
268 const content::NotificationSource& source, | 268 const content::NotificationSource& source, |
269 const content::NotificationDetails& details) { | 269 const content::NotificationDetails& details) { |
270 DCHECK(type == chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED); | 270 DCHECK(type == chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED); |
271 registrar_.RemoveAll(); | 271 registrar_.RemoveAll(); |
272 InvokeTaskIfDone(); | 272 InvokeTaskIfDone(); |
273 } | 273 } |
OLD | NEW |