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

Unified Diff: chrome/browser/ui/webui/ntp/shown_sections_handler.cc

Issue 7554008: Removal of Profile from content part 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Profile helper function, rebase Created 9 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/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);
}
}

Powered by Google App Engine
This is Rietveld 408576698