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

Unified Diff: chrome/browser/background_page_tracker.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/background_page_tracker.cc
diff --git a/chrome/browser/background_page_tracker.cc b/chrome/browser/background_page_tracker.cc
index 5a41c8d2ee293582dc3dd46b7c4fad89c54167e7..de6c04d175e3f5e4a108d1cf8cb9e6d90c3e4b31 100644
--- a/chrome/browser/background_page_tracker.cc
+++ b/chrome/browser/background_page_tracker.cc
@@ -13,6 +13,7 @@
#include "base/values.h"
#include "chrome/browser/background_application_list_model.h"
#include "chrome/browser/background_contents_service.h"
+#include "chrome/browser/background_contents_service_factory.h"
#include "chrome/browser/background_mode_manager.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/extension_service.h"
@@ -233,7 +234,7 @@ bool BackgroundPageTracker::UpdateExtensionList() {
// Add all apps with background contents also.
BackgroundContentsService* background_contents_service =
- profile->GetBackgroundContentsService();
+ BackgroundContentsServiceFactory::GetForProfile(profile);
std::vector<BackgroundContents*> background_contents =
background_contents_service->GetBackgroundContents();
for (std::vector<BackgroundContents*>::const_iterator iter =
« no previous file with comments | « chrome/browser/background_mode_manager_factory.cc ('k') | chrome/browser/extensions/app_background_page_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698