Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: chrome/browser/importer/importer_host.cc

Issue 6750010: importer: Cleanup ToolbarImporter code a little bit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/importer/importer_bridge.h ('k') | chrome/browser/importer/toolbar_importer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/browser_list.h" 9 #include "chrome/browser/browser_list.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/importer/external_process_importer_client.h" 11 #include "chrome/browser/importer/external_process_importer_client.h"
12 #include "chrome/browser/importer/firefox_profile_lock.h" 12 #include "chrome/browser/importer/firefox_profile_lock.h"
13 #include "chrome/browser/importer/importer.h"
13 #include "chrome/browser/importer/importer_bridge.h" 14 #include "chrome/browser/importer/importer_bridge.h"
14 #include "chrome/browser/importer/importer_list.h" 15 #include "chrome/browser/importer/importer_list.h"
15 #include "chrome/browser/importer/importer_lock_dialog.h" 16 #include "chrome/browser/importer/importer_lock_dialog.h"
16 #include "chrome/browser/importer/importer_progress_observer.h" 17 #include "chrome/browser/importer/importer_progress_observer.h"
17 #include "chrome/browser/importer/in_process_importer_bridge.h" 18 #include "chrome/browser/importer/in_process_importer_bridge.h"
19 #include "chrome/browser/importer/toolbar_importer_utils.h"
18 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/search_engines/template_url.h" 21 #include "chrome/browser/search_engines/template_url.h"
20 #include "chrome/browser/search_engines/template_url_model.h" 22 #include "chrome/browser/search_engines/template_url_model.h"
21 #include "content/browser/browser_thread.h" 23 #include "content/browser/browser_thread.h"
22 #include "content/common/notification_source.h" 24 #include "content/common/notification_source.h"
23 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
24 #include "ui/base/l10n/l10n_util.h" 26 #include "ui/base/l10n/l10n_util.h"
25 27
26 #if defined(OS_WIN) 28 #if defined(OS_WIN)
27 // TODO(port): Port this file. 29 // TODO(port): Port this file.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 void ImporterHost::BookmarkModelChanged() { 242 void ImporterHost::BookmarkModelChanged() {
241 } 243 }
242 244
243 void ImporterHost::Observe(NotificationType type, 245 void ImporterHost::Observe(NotificationType type,
244 const NotificationSource& source, 246 const NotificationSource& source,
245 const NotificationDetails& details) { 247 const NotificationDetails& details) {
246 DCHECK(type == NotificationType::TEMPLATE_URL_MODEL_LOADED); 248 DCHECK(type == NotificationType::TEMPLATE_URL_MODEL_LOADED);
247 registrar_.RemoveAll(); 249 registrar_.RemoveAll();
248 InvokeTaskIfDone(); 250 InvokeTaskIfDone();
249 } 251 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/importer_bridge.h ('k') | chrome/browser/importer/toolbar_importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698