| Index: chrome/browser/profiles/profile.cc
|
| diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
|
| index 39460e59bc79eba9697ea6a8f71854e57a763ae2..57043c75f8e2473a2bd3120b62c04bb01fbce069 100644
|
| --- a/chrome/browser/profiles/profile.cc
|
| +++ b/chrome/browser/profiles/profile.cc
|
| @@ -14,7 +14,7 @@
|
| #include "base/path_service.h"
|
| #include "base/string_util.h"
|
| #include "build/build_config.h"
|
| -#include "chrome/browser/background_contents_service.h"
|
| +#include "chrome/browser/background_contents_service_factory.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/content_settings/host_content_settings_map.h"
|
| #include "chrome/browser/download/download_manager.h"
|
| @@ -166,8 +166,7 @@ class OffTheRecordProfileImpl : public Profile,
|
|
|
| BrowserList::AddObserver(this);
|
|
|
| - background_contents_service_.reset(
|
| - new BackgroundContentsService(this, CommandLine::ForCurrentProcess()));
|
| + BackgroundContentsServiceFactory::GetForProfile(this);
|
|
|
| DCHECK(real_profile->GetPrefs()->GetBoolean(prefs::kIncognitoEnabled));
|
|
|
| @@ -267,10 +266,6 @@ class OffTheRecordProfileImpl : public Profile,
|
| return GetOriginalProfile()->GetExtensionService();
|
| }
|
|
|
| - virtual BackgroundContentsService* GetBackgroundContentsService() const {
|
| - return background_contents_service_.get();
|
| - }
|
| -
|
| virtual StatusTray* GetStatusTray() {
|
| return GetOriginalProfile()->GetStatusTray();
|
| }
|
| @@ -726,9 +721,6 @@ class OffTheRecordProfileImpl : public Profile,
|
|
|
| FilePath last_selected_directory_;
|
|
|
| - // Tracks all BackgroundContents running under this profile.
|
| - scoped_ptr<BackgroundContentsService> background_contents_service_;
|
| -
|
| scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
|
|
|
| // The file_system context for this profile.
|
|
|