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

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

Issue 2763893004: arc: Fix regression in handling ARC shelf item. (Closed)
Patch Set: comments updated Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
index d6bffcdd19917853d75e8643e8ff8159873f1ab3..9a273987523ca90586e7fc2fbab7c011a1bb41b5 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
@@ -566,6 +566,9 @@ void ArcAppWindowLauncherController::OnTaskOrientationLockRequested(
AppWindowLauncherItemController*
ArcAppWindowLauncherController::ControllerForWindow(aura::Window* window) {
+ if (!window)
+ return nullptr;
+
AppWindow* app_window = GetAppWindowForTask(active_task_id_);
if (app_window &&
app_window->widget() == views::Widget::GetWidgetForNativeWindow(window)) {
@@ -588,6 +591,8 @@ void ArcAppWindowLauncherController::OnWindowActivated(
aura::client::ActivationChangeObserver::ActivationReason reason,
aura::Window* gained_active,
aura::Window* lost_active) {
+ AppWindowLauncherController::OnWindowActivated(reason, gained_active,
+ lost_active);
OnTaskSetActive(active_task_id_);
}
« no previous file with comments | « no previous file | chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698