diff options
author | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 10:18:44 +0000 |
---|---|---|
committer | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 10:18:44 +0000 |
commit | d2fad141ca242fa4dc011a2bc8b75b49a8840acc (patch) | |
tree | 5830c915dc8bada5530d9d6545f3c6c4613255a7 /chrome/browser/task_manager/task_manager_browsertest.cc | |
parent | 28bad33ea09251ddc6477fc77a0065b75eda6c43 (diff) | |
download | chromium_src-d2fad141ca242fa4dc011a2bc8b75b49a8840acc.zip chromium_src-d2fad141ca242fa4dc011a2bc8b75b49a8840acc.tar.gz chromium_src-d2fad141ca242fa4dc011a2bc8b75b49a8840acc.tar.bz2 |
Profile shouldn't own background page stuff.
BackgroundContentsService and BackgroundModeManager now have factories
which own them, using Profile as a key. This uses the
ProfileKeyedService infrastructure.
BUG=77155
TEST=existing tests
Review URL: http://codereview.chromium.org/6831016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager/task_manager_browsertest.cc')
-rw-r--r-- | chrome/browser/task_manager/task_manager_browsertest.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/task_manager/task_manager_browsertest.cc b/chrome/browser/task_manager/task_manager_browsertest.cc index d5854b9..6d68ac7 100644 --- a/chrome/browser/task_manager/task_manager_browsertest.cc +++ b/chrome/browser/task_manager/task_manager_browsertest.cc @@ -7,6 +7,7 @@ #include "base/file_path.h" #include "base/utf_string_conversions.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/extensions/extension_browsertest.h" #include "chrome/browser/extensions/extension_service.h" @@ -159,7 +160,7 @@ IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, NoticeBGContentsChanges) { FilePath(kTitle1File))); BackgroundContentsService* service = - browser()->profile()->GetBackgroundContentsService(); + BackgroundContentsServiceFactory::GetForProfile(browser()->profile()); string16 application_id(ASCIIToUTF16("test_app_id")); service->LoadBackgroundContents(browser()->profile(), url, @@ -187,7 +188,7 @@ IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, KillBGContents) { FilePath(kTitle1File))); BackgroundContentsService* service = - browser()->profile()->GetBackgroundContentsService(); + BackgroundContentsServiceFactory::GetForProfile(browser()->profile()); string16 application_id(ASCIIToUTF16("test_app_id")); service->LoadBackgroundContents(browser()->profile(), url, |