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

Unified Diff: chrome/browser/ui/webui/devtools_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/crashes_ui.cc ('k') | chrome/browser/ui/webui/downloads_dom_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/devtools_ui.cc
diff --git a/chrome/browser/ui/webui/devtools_ui.cc b/chrome/browser/ui/webui/devtools_ui.cc
index 4a9f686376d94613dfad215d9d36fb1384d8313d..14b04f4735e22e750ac903fcb170030ec1541ce7 100644
--- a/chrome/browser/ui/webui/devtools_ui.cc
+++ b/chrome/browser/ui/webui/devtools_ui.cc
@@ -93,7 +93,7 @@ void DevToolsUI::RegisterDevToolsDataSource(Profile* profile) {
static bool registered = false;
if (!registered) {
DevToolsDataSource* data_source = new DevToolsDataSource();
- profile->GetChromeURLDataManager()->AddDataSource(data_source);
+ ChromeURLDataManager::AddDataSource(profile, data_source);
registered = true;
}
}
@@ -101,7 +101,7 @@ void DevToolsUI::RegisterDevToolsDataSource(Profile* profile) {
DevToolsUI::DevToolsUI(content::WebUI* web_ui) : WebUIController(web_ui) {
DevToolsDataSource* data_source = new DevToolsDataSource();
Profile* profile = Profile::FromWebUI(web_ui);
- profile->GetChromeURLDataManager()->AddDataSource(data_source);
+ ChromeURLDataManager::AddDataSource(profile, data_source);
}
void DevToolsUI::RenderViewCreated(
« no previous file with comments | « chrome/browser/ui/webui/crashes_ui.cc ('k') | chrome/browser/ui/webui/downloads_dom_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698