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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h

Issue 2345043002: arc: Prevent showing Arc app window for secondary user profile. (Closed)
Patch Set: Created 4 years, 3 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/ash/launcher/arc_app_window_launcher_controller.h
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h
index 30a1793c1fcf9bde35fa4c2960298f2409ba96f3..e56766540813f74f9bf60170a5e66efc193851ee 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h
@@ -58,7 +58,9 @@ class ArcAppWindowLauncherController : public AppWindowLauncherController,
void OnWindowInitialized(aura::Window* window) override;
// aura::WindowObserver:
- void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
+ void OnWindowPropertyChanged(aura::Window* window,
+ const void* key,
+ intptr_t old) override;
void OnWindowDestroying(aura::Window* window) override;
// aura::client::ActivationChangeObserver:
@@ -99,7 +101,8 @@ class ArcAppWindowLauncherController : public AppWindowLauncherController,
AppWindow* GetAppWindowForTask(int task_id);
- void AttachControllerToWindowIfNeeded(aura::Window* window);
+ // Returns true if the window has been attached to a controller.
+ bool AttachControllerToWindowIfNeeded(aura::Window* window);
void AttachControllerToWindowsIfNeeded();
void SetOrientationLockForAppWindow(AppWindow* app_window);

Powered by Google App Engine
This is Rietveld 408576698