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

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

Issue 10196004: Changed ChromeURLDataManager to a ProfileKeyedService and made a Factory for it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Made ChromeURLDataManager's destructor virtual Created 8 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 MobileSetupUI::MobileSetupUI(content::WebUI* web_ui) 1396 MobileSetupUI::MobileSetupUI(content::WebUI* web_ui)
1397 : WebUIController(web_ui) { 1397 : WebUIController(web_ui) {
1398 chromeos::CellularNetwork* network = GetCellularNetwork(); 1398 chromeos::CellularNetwork* network = GetCellularNetwork();
1399 std::string service_path = network ? network->service_path() : std::string(); 1399 std::string service_path = network ? network->service_path() : std::string();
1400 web_ui->AddMessageHandler(new MobileSetupHandler(service_path)); 1400 web_ui->AddMessageHandler(new MobileSetupHandler(service_path));
1401 MobileSetupUIHTMLSource* html_source = 1401 MobileSetupUIHTMLSource* html_source =
1402 new MobileSetupUIHTMLSource(service_path); 1402 new MobileSetupUIHTMLSource(service_path);
1403 1403
1404 // Set up the chrome://mobilesetup/ source. 1404 // Set up the chrome://mobilesetup/ source.
1405 Profile* profile = Profile::FromWebUI(web_ui); 1405 Profile* profile = Profile::FromWebUI(web_ui);
1406 profile->GetChromeURLDataManager()->AddDataSource(html_source); 1406 ChromeURLDataManager::AddDataSource(profile, html_source);
1407 } 1407 }
1408 1408
1409 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) { 1409 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) {
1410 // Destroyed by the corresponding RenderViewHost 1410 // Destroyed by the corresponding RenderViewHost
1411 new PortalFrameLoadObserver(AsWeakPtr(), host); 1411 new PortalFrameLoadObserver(AsWeakPtr(), host);
1412 } 1412 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698