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

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

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another gyp attempt Created 7 years, 5 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
OLDNEW
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/external_process_importer_host.h" 5 #include "chrome/browser/importer/external_process_importer_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h" 9 #include "chrome/browser/bookmarks/bookmark_model.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.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"
14 #include "chrome/browser/importer/importer_creator.h"
15 #include "chrome/browser/importer/importer_lock_dialog.h" 13 #include "chrome/browser/importer/importer_lock_dialog.h"
16 #include "chrome/browser/importer/importer_progress_observer.h" 14 #include "chrome/browser/importer/importer_progress_observer.h"
17 #include "chrome/browser/importer/in_process_importer_bridge.h" 15 #include "chrome/browser/importer/in_process_importer_bridge.h"
18 #include "chrome/browser/search_engines/template_url_service.h" 16 #include "chrome/browser/search_engines/template_url_service.h"
19 #include "chrome/browser/search_engines/template_url_service_factory.h" 17 #include "chrome/browser/search_engines/template_url_service_factory.h"
20 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/notification_source.h" 19 #include "content/public/browser/notification_source.h"
22 20
23 using content::BrowserThread; 21 using content::BrowserThread;
24 22
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 if ((items & importer::SEARCH_ENGINES) || (items & importer::FAVORITES)) { 208 if ((items & importer::SEARCH_ENGINES) || (items & importer::FAVORITES)) {
211 if (!writer_->TemplateURLServiceIsLoaded()) { 209 if (!writer_->TemplateURLServiceIsLoaded()) {
212 TemplateURLService* model = 210 TemplateURLService* model =
213 TemplateURLServiceFactory::GetForProfile(profile_); 211 TemplateURLServiceFactory::GetForProfile(profile_);
214 registrar_.Add(this, chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED, 212 registrar_.Add(this, chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
215 content::Source<TemplateURLService>(model)); 213 content::Source<TemplateURLService>(model));
216 model->Load(); 214 model->Load();
217 } 215 }
218 } 216 }
219 } 217 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/external_process_importer_client.cc ('k') | chrome/browser/importer/firefox3_importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698