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

Unified Diff: chrome/browser/ui/webui/options/handler_options_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/options/handler_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/handler_options_handler.cc b/chrome/browser/ui/webui/options/handler_options_handler.cc
index 721968927f1fe24c823ec7bd5e1ac4e6cc64370f..440ff23cbd29a975d0017274ab0c9317389f36ee 100644
--- a/chrome/browser/ui/webui/options/handler_options_handler.cc
+++ b/chrome/browser/ui/webui/options/handler_options_handler.cc
@@ -45,7 +45,7 @@ void HandlerOptionsHandler::Initialize() {
UpdateHandlerList();
notification_registrar_.Add(
this, chrome::NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED,
- Source<Profile>(web_ui_->GetProfile()));
+ Source<Profile>(Profile::FromWebUI(web_ui_)));
}
void HandlerOptionsHandler::RegisterMessages() {
@@ -64,7 +64,7 @@ void HandlerOptionsHandler::RegisterMessages() {
ProtocolHandlerRegistry* HandlerOptionsHandler::GetProtocolHandlerRegistry() {
DCHECK(web_ui_);
- return web_ui_->GetProfile()->GetProtocolHandlerRegistry();
+ return Profile::FromWebUI(web_ui_)->GetProtocolHandlerRegistry();
}
static void GetHandlersAsListValue(
« no previous file with comments | « chrome/browser/ui/webui/options/font_settings_handler.cc ('k') | chrome/browser/ui/webui/options/import_data_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698