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

Side by Side Diff: chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc

Issue 8949061: Move a bunch of methods from TabContents into the WebContents interface. This change either moves... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 new MobileSetupUIHTMLSource(service_path); 1371 new MobileSetupUIHTMLSource(service_path);
1372 1372
1373 // Set up the chrome://mobilesetup/ source. 1373 // Set up the chrome://mobilesetup/ source.
1374 Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext()); 1374 Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext());
1375 profile->GetChromeURLDataManager()->AddDataSource(html_source); 1375 profile->GetChromeURLDataManager()->AddDataSource(html_source);
1376 } 1376 }
1377 1377
1378 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) { 1378 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) {
1379 ChromeWebUI::RenderViewCreated(host); 1379 ChromeWebUI::RenderViewCreated(host);
1380 // Destroyed by the corresponding RenderViewHost. 1380 // Destroyed by the corresponding RenderViewHost.
1381 new PortalFrameLoadObserver(host, tab_contents()->web_ui()); 1381 new PortalFrameLoadObserver(host, tab_contents()->GetWebUI());
1382 } 1382 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698