| Index: chrome/browser/ui/webui/ntp/favicon_webui_handler.cc
|
| diff --git a/chrome/browser/ui/webui/ntp/favicon_webui_handler.cc b/chrome/browser/ui/webui/ntp/favicon_webui_handler.cc
|
| index 72466c4e3b6da7625aef726d45d2d473dfcc9c26..71a82f547cc5c963df4ced53ae644109b4b106c7 100644
|
| --- a/chrome/browser/ui/webui/ntp/favicon_webui_handler.cc
|
| +++ b/chrome/browser/ui/webui/ntp/favicon_webui_handler.cc
|
| @@ -36,7 +36,7 @@ void FaviconWebUIHandler::HandleGetFaviconDominantColor(const ListValue* args) {
|
| CHECK(args->GetDouble(1, &id));
|
|
|
| FaviconService* favicon_service =
|
| - web_ui_->GetProfile()->GetFaviconService(Profile::EXPLICIT_ACCESS);
|
| + Profile::FromWebUI(web_ui_)->GetFaviconService(Profile::EXPLICIT_ACCESS);
|
| if (!favicon_service || path.empty())
|
| return;
|
|
|
| @@ -52,7 +52,7 @@ void FaviconWebUIHandler::OnFaviconDataAvailable(
|
| FaviconService::Handle request_handle,
|
| history::FaviconData favicon) {
|
| FaviconService* favicon_service =
|
| - web_ui_->GetProfile()->GetFaviconService(Profile::EXPLICIT_ACCESS);
|
| + Profile::FromWebUI(web_ui_)->GetFaviconService(Profile::EXPLICIT_ACCESS);
|
| int id = consumer_.GetClientData(favicon_service, request_handle);
|
| FundamentalValue id_value(id);
|
| scoped_ptr<StringValue> color_value;
|
|
|