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

Side by Side Diff: chrome/browser/ui/webui/chromeos/choose_mobile_network_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, 8 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) 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/choose_mobile_network_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 } 210 }
211 211
212 } // namespace 212 } // namespace
213 213
214 ChooseMobileNetworkUI::ChooseMobileNetworkUI(content::WebUI* web_ui) 214 ChooseMobileNetworkUI::ChooseMobileNetworkUI(content::WebUI* web_ui)
215 : WebUIController(web_ui) { 215 : WebUIController(web_ui) {
216 ChooseMobileNetworkHandler* handler = new ChooseMobileNetworkHandler(); 216 ChooseMobileNetworkHandler* handler = new ChooseMobileNetworkHandler();
217 web_ui->AddMessageHandler(handler); 217 web_ui->AddMessageHandler(handler);
218 // Set up the "chrome://choose-mobile-network" source. 218 // Set up the "chrome://choose-mobile-network" source.
219 Profile* profile = Profile::FromWebUI(web_ui); 219 Profile* profile = Profile::FromWebUI(web_ui);
220 profile->GetChromeURLDataManager()->AddDataSource( 220 ChromeURLDataManager::AddDataSource(profile,
221 CreateChooseMobileNetworkUIHTMLSource()); 221 CreateChooseMobileNetworkUIHTMLSource());
222 } 222 }
223 223
224 } // namespace chromeos 224 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698