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

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

Issue 983043003: Componentize FaviconService and FaviconHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@favicon_service
Patch Set: Fix android_aosp (reverted the change by mistake by switching computer) Created 5 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
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/profile_writer.h" 5 #include "chrome/browser/importer/profile_writer.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 16 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
17 #include "chrome/browser/chrome_notification_types.h" 17 #include "chrome/browser/chrome_notification_types.h"
18 #include "chrome/browser/favicon/favicon_service.h"
19 #include "chrome/browser/favicon/favicon_service_factory.h" 18 #include "chrome/browser/favicon/favicon_service_factory.h"
20 #include "chrome/browser/history/history_service_factory.h" 19 #include "chrome/browser/history/history_service_factory.h"
21 #include "chrome/browser/password_manager/password_store_factory.h" 20 #include "chrome/browser/password_manager/password_store_factory.h"
22 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
23 #include "chrome/browser/search_engines/template_url_service_factory.h" 22 #include "chrome/browser/search_engines/template_url_service_factory.h"
24 #include "chrome/browser/webdata/web_data_service_factory.h" 23 #include "chrome/browser/webdata/web_data_service_factory.h"
25 #include "chrome/common/importer/imported_bookmark_entry.h" 24 #include "chrome/common/importer/imported_bookmark_entry.h"
26 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
27 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 26 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
28 #include "components/bookmarks/browser/bookmark_model.h" 27 #include "components/bookmarks/browser/bookmark_model.h"
28 #include "components/favicon/core/browser/favicon_service.h"
29 #include "components/history/core/browser/history_service.h" 29 #include "components/history/core/browser/history_service.h"
30 #include "components/password_manager/core/browser/password_store.h" 30 #include "components/password_manager/core/browser/password_store.h"
31 #include "components/search_engines/template_url.h" 31 #include "components/search_engines/template_url.h"
32 #include "components/search_engines/template_url_service.h" 32 #include "components/search_engines/template_url_service.h"
33 33
34 #if defined(OS_WIN) 34 #if defined(OS_WIN)
35 #include "chrome/browser/webdata/web_data_service_factory.h" 35 #include "chrome/browser/webdata/web_data_service_factory.h"
36 #include "components/password_manager/core/browser/webdata/password_web_data_ser vice_win.h" 36 #include "components/password_manager/core/browser/webdata/password_web_data_ser vice_win.h"
37 #endif 37 #endif
38 38
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 void ProfileWriter::AddAutofillFormDataEntries( 338 void ProfileWriter::AddAutofillFormDataEntries(
339 const std::vector<autofill::AutofillEntry>& autofill_entries) { 339 const std::vector<autofill::AutofillEntry>& autofill_entries) {
340 scoped_refptr<autofill::AutofillWebDataService> web_data_service = 340 scoped_refptr<autofill::AutofillWebDataService> web_data_service =
341 WebDataServiceFactory::GetAutofillWebDataForProfile( 341 WebDataServiceFactory::GetAutofillWebDataForProfile(
342 profile_, ServiceAccessType::EXPLICIT_ACCESS); 342 profile_, ServiceAccessType::EXPLICIT_ACCESS);
343 if (web_data_service.get()) 343 if (web_data_service.get())
344 web_data_service->UpdateAutofillEntries(autofill_entries); 344 web_data_service->UpdateAutofillEntries(autofill_entries);
345 } 345 }
346 346
347 ProfileWriter::~ProfileWriter() {} 347 ProfileWriter::~ProfileWriter() {}
OLDNEW
« no previous file with comments | « chrome/browser/history/android/android_history_provider_service.cc ('k') | chrome/browser/jumplist_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698