| Index: chrome/browser/profiles/off_the_record_profile_impl.cc
|
| diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
|
| index 57503472ba4a4c2d77806c26977ac1ebe454dbdd..31953def5689648ee28b93978f9e34e981d7cc2f 100644
|
| --- a/chrome/browser/profiles/off_the_record_profile_impl.cc
|
| +++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
|
| @@ -34,7 +34,7 @@
|
| #include "chrome/browser/profiles/profile_dependency_manager.h"
|
| #include "chrome/browser/themes/theme_service.h"
|
| #include "chrome/browser/transport_security_persister.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/extensions/extension_icon_source.h"
|
| #include "chrome/common/chrome_constants.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| @@ -102,7 +102,7 @@ void OffTheRecordProfileImpl::Init() {
|
|
|
| // Make the chrome//extension-icon/ resource available.
|
| ExtensionIconSource* icon_source = new ExtensionIconSource(profile_);
|
| - GetChromeURLDataManager()->AddDataSource(icon_source);
|
| + ChromeURLDataManagerFactory::GetForProfile(this)->AddDataSource(icon_source);
|
|
|
| ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
|
| PluginPrefs::GetForProfile(this), io_data_.GetResourceContextNoInit());
|
| @@ -410,13 +410,6 @@ void OffTheRecordProfileImpl::InitChromeOSPreferences() {
|
| }
|
| #endif // defined(OS_CHROMEOS)
|
|
|
| -ChromeURLDataManager* OffTheRecordProfileImpl::GetChromeURLDataManager() {
|
| - if (!chrome_url_data_manager_.get())
|
| - chrome_url_data_manager_.reset(new ChromeURLDataManager(
|
| - io_data_.GetChromeURLDataManagerBackendGetter()));
|
| - return chrome_url_data_manager_.get();
|
| -}
|
| -
|
| #if defined(OS_CHROMEOS)
|
| void OffTheRecordProfileImpl::ChangeAppLocale(const std::string& locale,
|
| AppLocaleChangedVia) {
|
| @@ -496,3 +489,8 @@ Profile* Profile::CreateOffTheRecordProfile() {
|
| profile->Init();
|
| return profile;
|
| }
|
| +
|
| +base::Callback<ChromeURLDataManagerBackend*(void)>
|
| + OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
|
| + return io_data_.GetChromeURLDataManagerBackendGetter();
|
| +}
|
|
|