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; |
} |