| 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(
|
|
|