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

Unified Diff: chrome/browser/ui/search_engines/template_url_table_model.cc

Issue 10828263: Moving FaviconService to a ProfileKeyedService. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: resyncing with library after revert Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/search_engines/template_url_table_model.cc
===================================================================
--- chrome/browser/ui/search_engines/template_url_table_model.cc (revision 152993)
+++ chrome/browser/ui/search_engines/template_url_table_model.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/stl_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/favicon/favicon_service.h"
+#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_service.h"
@@ -75,9 +76,8 @@
void LoadFavicon() {
load_state_ = LOADED;
- FaviconService* favicon_service =
- model_->template_url_service()->profile()->GetFaviconService(
- Profile::EXPLICIT_ACCESS);
+ FaviconService* favicon_service = FaviconServiceFactory::GetForProfile(
+ model_->template_url_service()->profile(), Profile::EXPLICIT_ACCESS);
if (!favicon_service)
return;
GURL favicon_url = template_url()->favicon_url();

Powered by Google App Engine
This is Rietveld 408576698