| Index: chrome/browser/ui/webui/ntp/shown_sections_handler.cc
|
| diff --git a/chrome/browser/ui/webui/ntp/shown_sections_handler.cc b/chrome/browser/ui/webui/ntp/shown_sections_handler.cc
|
| index 0a3f35c2786ba2c6778a252f6eb98702b3be8a8f..9e6835b264b362b83016afea32dd5735ef557ca3 100644
|
| --- a/chrome/browser/ui/webui/ntp/shown_sections_handler.cc
|
| +++ b/chrome/browser/ui/webui/ntp/shown_sections_handler.cc
|
| @@ -87,7 +87,7 @@ void ShownSectionsHandler::HandleSetShownSections(const ListValue* args) {
|
| int old_mode = pref_service_->GetInteger(prefs::kNTPShownSections);
|
|
|
| if (old_mode != mode) {
|
| - NotifySectionDisabled(mode, old_mode, web_ui_->GetProfile());
|
| + NotifySectionDisabled(mode, old_mode, Profile::FromWebUI(web_ui_));
|
| pref_service_->SetInteger(prefs::kNTPShownSections, mode);
|
| }
|
| }
|
|
|