| 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,
|
|
|