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

Unified Diff: chrome/browser/ui/apps/apps_metro_handler_win.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/apps/apps_metro_handler_win.cc
diff --git a/chrome/browser/ui/apps/apps_metro_handler_win.cc b/chrome/browser/ui/apps/apps_metro_handler_win.cc
index e4d1c0e4011c948882f969c7b3a4754f4862f562..fa371ad194e591dadf342265d67a5fe1cf95a433 100644
--- a/chrome/browser/ui/apps/apps_metro_handler_win.cc
+++ b/chrome/browser/ui/apps/apps_metro_handler_win.cc
@@ -17,8 +17,8 @@ bool VerifyASHSwitchForApps(gfx::NativeWindow parent_window,
DCHECK(win_restart_command_id == IDC_WIN_DESKTOP_RESTART ||
win_restart_command_id == IDC_WIN8_METRO_RESTART ||
win_restart_command_id == IDC_WIN_CHROMEOS_RESTART);
- if (!AppWindowRegistryUtil::IsAppWindowRegisteredInAnyProfile(
- extensions::AppWindow::WINDOW_TYPE_DEFAULT)) {
+ if (!AppWindowRegistryUtil::IsAppWindowVisibleInAnyProfile(
+ extensions::AppWindow::WINDOW_TYPE_DEFAULT)) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698