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

Unified Diff: chrome/browser/apps/app_window_registry_util.h

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/apps/app_window_registry_util.h
diff --git a/chrome/browser/apps/app_window_registry_util.h b/chrome/browser/apps/app_window_registry_util.h
index c84eaef749fe322b28fc57d110d4aa117b6b4e5e..8fd6b358cc8ca99fc8e9377bbbd8032773ad6cb2 100644
--- a/chrome/browser/apps/app_window_registry_util.h
+++ b/chrome/browser/apps/app_window_registry_util.h
@@ -18,10 +18,10 @@ class AppWindowRegistryUtil {
static extensions::AppWindow* GetAppWindowForNativeWindowAnyProfile(
gfx::NativeWindow window);
- // Returns true if the number of app windows registered across all browser
- // contexts is non-zero. |window_type_mask| is a bitwise OR filter of
+ // Returns true if the number of visible app windows registered across all
+ // browser contexts is non-zero. |window_type_mask| is a bitwise OR filter of
// AppWindow::WindowType, or 0 for any window type.
- static bool IsAppWindowRegisteredInAnyProfile(int window_type_mask);
+ static bool IsAppWindowVisibleInAnyProfile(int window_type_mask);
// Close all app windows in all profiles.
static void CloseAllAppWindows();

Powered by Google App Engine
This is Rietveld 408576698