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

Unified Diff: apps/app_lifetime_monitor.cc

Issue 23524005: Introduce AppsClient and use it in apps to get the loaded profiles list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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
« no previous file with comments | « no previous file | apps/apps.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_lifetime_monitor.cc
diff --git a/apps/app_lifetime_monitor.cc b/apps/app_lifetime_monitor.cc
index 8547be91c3dab268daf6d1da6aacf8324a3b71dd..e43fb6baa12e59df11fa633b5253030639c28486 100644
--- a/apps/app_lifetime_monitor.cc
+++ b/apps/app_lifetime_monitor.cc
@@ -7,6 +7,7 @@
#include "apps/shell_window.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/extensions/extension_host.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/extension.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_service.h"
@@ -29,7 +30,7 @@ AppLifetimeMonitor::AppLifetimeMonitor(Profile* profile)
content::NotificationService::AllSources());
ShellWindowRegistry* shell_window_registry =
- ShellWindowRegistry::Factory::GetForProfile(
+ ShellWindowRegistry::Factory::GetForBrowserContext(
profile_, false /* create */);
DCHECK(shell_window_registry);
shell_window_registry->AddObserver(this);
@@ -99,7 +100,7 @@ void AppLifetimeMonitor::OnShellWindowRemoved(ShellWindow* shell_window) {
void AppLifetimeMonitor::Shutdown() {
ShellWindowRegistry* shell_window_registry =
- ShellWindowRegistry::Factory::GetForProfile(
+ ShellWindowRegistry::Factory::GetForBrowserContext(
profile_, false /* create */);
if (shell_window_registry)
shell_window_registry->RemoveObserver(this);
« no previous file with comments | « no previous file | apps/apps.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698