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

Unified Diff: trunk/src/apps/app_lifetime_monitor.cc

Issue 163913004: Revert 250826 "Remove Profile dependency from apps::ShellWindow" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 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 | trunk/src/apps/app_shim/app_shim_handler_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/apps/app_lifetime_monitor.cc
===================================================================
--- trunk/src/apps/app_lifetime_monitor.cc (revision 251093)
+++ trunk/src/apps/app_lifetime_monitor.cc (working copy)
@@ -82,8 +82,8 @@
return;
ShellWindowRegistry::ShellWindowList windows =
- ShellWindowRegistry::Get(shell_window->browser_context())
- ->GetShellWindowsForApp(shell_window->extension_id());
+ ShellWindowRegistry::Get(shell_window->profile())->
+ GetShellWindowsForApp(shell_window->extension_id());
if (windows.size() == 1)
NotifyAppActivated(shell_window->extension_id());
}
@@ -92,8 +92,8 @@
void AppLifetimeMonitor::OnShellWindowRemoved(ShellWindow* shell_window) {
ShellWindowRegistry::ShellWindowList windows =
- ShellWindowRegistry::Get(shell_window->browser_context())
- ->GetShellWindowsForApp(shell_window->extension_id());
+ ShellWindowRegistry::Get(shell_window->profile())->
+ GetShellWindowsForApp(shell_window->extension_id());
if (windows.empty())
NotifyAppDeactivated(shell_window->extension_id());
}
« no previous file with comments | « no previous file | trunk/src/apps/app_shim/app_shim_handler_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698