| Index: chrome/browser/bookmarks/bookmark_model.cc
|
| ===================================================================
|
| --- chrome/browser/bookmarks/bookmark_model.cc (revision 152993)
|
| +++ chrome/browser/bookmarks/bookmark_model.cc (working copy)
|
| @@ -18,6 +18,7 @@
|
| #include "chrome/browser/bookmarks/bookmark_storage.h"
|
| #include "chrome/browser/bookmarks/bookmark_utils.h"
|
| #include "chrome/browser/browser_process.h"
|
| +#include "chrome/browser/favicon/favicon_service_factory.h"
|
| #include "chrome/browser/history/history_notifications.h"
|
| #include "chrome/browser/history/history_service_factory.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| @@ -779,7 +780,8 @@
|
| history::FaviconData favicon) {
|
| BookmarkNode* node =
|
| load_consumer_.GetClientData(
|
| - profile_->GetFaviconService(Profile::EXPLICIT_ACCESS), handle);
|
| + FaviconServiceFactory::GetForProfile(
|
| + profile_, Profile::EXPLICIT_ACCESS), handle);
|
| DCHECK(node);
|
| node->set_favicon_load_handle(0);
|
| if (favicon.is_valid()) {
|
| @@ -798,12 +800,12 @@
|
| return;
|
|
|
| DCHECK(node->url().is_valid());
|
| - FaviconService* favicon_service =
|
| - profile_->GetFaviconService(Profile::EXPLICIT_ACCESS);
|
| + FaviconService* favicon_service = FaviconServiceFactory::GetForProfile(
|
| + profile_, Profile::EXPLICIT_ACCESS);
|
| if (!favicon_service)
|
| return;
|
| FaviconService::Handle handle = favicon_service->GetFaviconForURL(
|
| - node->url(), history::FAVICON, &load_consumer_,
|
| + profile_, node->url(), history::FAVICON, &load_consumer_,
|
| base::Bind(&BookmarkModel::OnFaviconDataAvailable,
|
| base::Unretained(this)));
|
| load_consumer_.SetClientData(favicon_service, handle, node);
|
| @@ -817,8 +819,8 @@
|
|
|
| void BookmarkModel::CancelPendingFaviconLoadRequests(BookmarkNode* node) {
|
| if (node->favicon_load_handle()) {
|
| - FaviconService* favicon_service =
|
| - profile_->GetFaviconService(Profile::EXPLICIT_ACCESS);
|
| + FaviconService* favicon_service = FaviconServiceFactory::GetForProfile(
|
| + profile_, Profile::EXPLICIT_ACCESS);
|
| if (favicon_service)
|
| favicon_service->CancelRequest(node->favicon_load_handle());
|
| node->set_favicon_load_handle(0);
|
|
|