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

Unified Diff: chrome/browser/ui/webui/about_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: Added static ChromeURLDataManager::AddSource() 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
Index: chrome/browser/ui/webui/about_ui.cc
diff --git a/chrome/browser/ui/webui/about_ui.cc b/chrome/browser/ui/webui/about_ui.cc
index e6c31837ff5a50c0dfa796575101a070a63e82e6..2170b9b9f9bb5dd8cd6f0625577cf07b6ddc67f2 100644
--- a/chrome/browser/ui/webui/about_ui.cc
+++ b/chrome/browser/ui/webui/about_ui.cc
@@ -1511,6 +1511,7 @@ AboutUI::AboutUI(content::WebUI* web_ui, const std::string& name)
Profile* profile = Profile::FromWebUI(web_ui);
ChromeURLDataManager::DataSource* source =
new AboutUIHTMLSource(name, profile);
- if (source)
- profile->GetChromeURLDataManager()->AddDataSource(source);
+ if (source) {
+ ChromeURLDataManager::AddDataSource(profile, source);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698