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

Unified Diff: chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc

Issue 800473006: Don't include hidden windows in IsAppWindowRegisteredInAnyProfile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 years, 11 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/ui/cocoa/apps/quit_with_apps_controller_mac.cc
diff --git a/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc b/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc
index 010767274aaaccc4c0fd03e4f1ef69e1267bb8e4..7c09672090c7dffcc9d07782e1f507c3452231a1 100644
--- a/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc
+++ b/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc
@@ -151,7 +151,7 @@ bool QuitWithAppsController::ShouldQuit() {
// Quit immediately if there are no packaged app windows or hosted apps open
// or the confirmation has been suppressed. Ignore panels.
- if (!AppWindowRegistryUtil::IsAppWindowRegisteredInAnyProfile(
+ if (!AppWindowRegistryUtil::IsAppWindowVisibleInAnyProfile(
extensions::AppWindow::WINDOW_TYPE_DEFAULT) &&
!hosted_apps_open) {
return true;
@@ -159,7 +159,7 @@ bool QuitWithAppsController::ShouldQuit() {
} else {
// Quit immediately if there are no windows or the confirmation has been
// suppressed.
- if (!AppWindowRegistryUtil::IsAppWindowRegisteredInAnyProfile(
+ if (!AppWindowRegistryUtil::IsAppWindowVisibleInAnyProfile(
extensions::AppWindow::WINDOW_TYPE_DEFAULT))
return true;
}

Powered by Google App Engine
This is Rietveld 408576698