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

Unified Diff: chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc

Issue 9188056: Start splitting out WebUI into an implementation class and an interface that each page implements... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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/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());
}
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_ui.h ('k') | chrome/browser/ui/webui/chromeos/proxy_settings_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698