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

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: Fixed style nit 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/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..42af949cccd32523ad35591a96457dda4ffd8368 100644
--- a/chrome/browser/ui/webui/uber/uber_ui.cc
+++ b/chrome/browser/ui/webui/uber/uber_ui.cc
@@ -8,7 +8,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
+#include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h"
#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
#include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
#include "chrome/browser/ui/webui/extensions/extensions_ui.h"
@@ -123,7 +123,8 @@ ChromeWebUIDataSource* CreateUberFrameHTMLSource(Profile* profile) {
UberUI::UberUI(content::WebUI* web_ui) : WebUIController(web_ui) {
Profile* profile = Profile::FromWebUI(web_ui);
- profile->GetChromeURLDataManager()->AddDataSource(CreateUberHTMLSource());
+ ChromeURLDataManagerFactory::GetForProfile(profile)->
+ AddDataSource(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,8 +197,8 @@ 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(
- CreateUberFrameHTMLSource(profile));
+ ChromeURLDataManagerFactory::GetForProfile(profile)->
+ AddDataSource(CreateUberFrameHTMLSource(profile));
// Register as an observer for when extensions are loaded and unloaded.
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,

Powered by Google App Engine
This is Rietveld 408576698