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

Unified Diff: chrome/browser/ui/webui/uber/uber_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/tracing_ui.cc ('k') | chrome/browser/ui/webui/web_ui_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/uber/uber_ui.cc
diff --git a/chrome/browser/ui/webui/uber/uber_ui.cc b/chrome/browser/ui/webui/uber/uber_ui.cc
index 873d74f78b850a1cc929ad0d010f3ec383fc1bf8..47b6e8170bd8f67a74f3c4e767e9ab8cbf7d5080 100644
--- a/chrome/browser/ui/webui/uber/uber_ui.cc
+++ b/chrome/browser/ui/webui/uber/uber_ui.cc
@@ -123,7 +123,7 @@ ChromeWebUIDataSource* CreateUberFrameHTMLSource(Profile* profile) {
UberUI::UberUI(content::WebUI* web_ui) : WebUIController(web_ui) {
Profile* profile = Profile::FromWebUI(web_ui);
- profile->GetChromeURLDataManager()->AddDataSource(CreateUberHTMLSource());
+ ChromeURLDataManager::AddDataSource(profile, CreateUberHTMLSource());
// The user may use a virtual (short) URL to get to the page. To avoid
// duplicate uber tabs, clear the virtual URL so that the omnibox will show
@@ -196,7 +196,7 @@ bool UberUI::OverrideHandleWebUIMessage(const GURL& source_url,
UberFrameUI::UberFrameUI(content::WebUI* web_ui) : WebUIController(web_ui) {
Profile* profile = Profile::FromWebUI(web_ui);
- profile->GetChromeURLDataManager()->AddDataSource(
+ ChromeURLDataManager::AddDataSource(profile,
CreateUberFrameHTMLSource(profile));
// Register as an observer for when extensions are loaded and unloaded.
« no previous file with comments | « chrome/browser/ui/webui/tracing_ui.cc ('k') | chrome/browser/ui/webui/web_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698