| Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/ntp/app_launcher_handler.cc (revision 152993)
|
| +++ chrome/browser/ui/webui/ntp/app_launcher_handler.cc (working copy)
|
| @@ -25,6 +25,7 @@
|
| #include "chrome/browser/extensions/extension_service.h"
|
| #include "chrome/browser/extensions/extension_sorting.h"
|
| #include "chrome/browser/extensions/extension_system.h"
|
| +#include "chrome/browser/favicon/favicon_service_factory.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/prefs/scoped_user_pref_update.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| @@ -691,7 +692,7 @@
|
|
|
| Profile* profile = Profile::FromWebUI(web_ui());
|
| FaviconService* favicon_service =
|
| - profile->GetFaviconService(Profile::EXPLICIT_ACCESS);
|
| + FaviconServiceFactory::GetForProfile(profile, Profile::EXPLICIT_ACCESS);
|
| if (!favicon_service) {
|
| LOG(ERROR) << "No favicon service";
|
| return;
|
| @@ -704,7 +705,7 @@
|
| install_info->page_ordinal = page_ordinal;
|
|
|
| FaviconService::Handle h = favicon_service->GetFaviconForURL(
|
| - launch_url, history::FAVICON, &favicon_consumer_,
|
| + profile, launch_url, history::FAVICON, &favicon_consumer_,
|
| base::Bind(&AppLauncherHandler::OnFaviconForApp, base::Unretained(this)));
|
| favicon_consumer_.SetClientData(favicon_service, h, install_info.release());
|
| }
|
|
|