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

Unified Diff: chrome/browser/task_manager/task_manager_browsertest.cc

Issue 6831016: Profile shouldn't own background page stuff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/task_manager/task_manager_browsertest.cc
diff --git a/chrome/browser/task_manager/task_manager_browsertest.cc b/chrome/browser/task_manager/task_manager_browsertest.cc
index d5854b9b6dddab2efb6f3b8c62ededdfae50b9c0..6d68ac7e43be79c43fcf33074eaa9cfff6a4451a 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,

Powered by Google App Engine
This is Rietveld 408576698