| Index: chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc (revision 117388)
|
| +++ chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc (working copy)
|
| @@ -1386,11 +1386,10 @@
|
| //
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|
| -MobileSetupUI::MobileSetupUI(WebContents* contents) : WebUI(contents) {
|
| +MobileSetupUI::MobileSetupUI(WebContents* contents) : WebUI(contents, this) {
|
| chromeos::CellularNetwork* network = GetCellularNetwork();
|
| std::string service_path = network ? network->service_path() : std::string();
|
| - MobileSetupHandler* handler = new MobileSetupHandler(service_path);
|
| - AddMessageHandler(handler);
|
| + AddMessageHandler(new MobileSetupHandler(service_path));
|
| MobileSetupUIHTMLSource* html_source =
|
| new MobileSetupUIHTMLSource(service_path);
|
|
|
| @@ -1400,7 +1399,6 @@
|
| }
|
|
|
| void MobileSetupUI::RenderViewCreated(RenderViewHost* host) {
|
| - WebUI::RenderViewCreated(host);
|
| // Destroyed by the corresponding RenderViewHost.
|
| new PortalFrameLoadObserver(host, web_contents()->GetWebUI());
|
| }
|
|
|