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

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

Issue 1149263003: Add user_gesture param to BaseWindow::Activate Base URL: https://chromium.googlesource.com/chromium/src.git@ug2_WebContentsDelegate_ActivateContents
Patch Set: Update callers Created 5 years, 7 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/app_window_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
index 490703aca50f421d37d23857a983dff6a05e7bac..8d6e695175a32cb887910edf5b23558ecba3a015 100644
--- a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
@@ -139,7 +139,7 @@ AppWindowLauncherItemController::Activate(ash::LaunchSource source) {
DCHECK(!app_windows_.empty());
AppWindow* window_to_activate =
last_active_app_window_ ? last_active_app_window_ : app_windows_.back();
- window_to_activate->GetBaseWindow()->Activate();
+ window_to_activate->GetBaseWindow()->Activate(true /* user_gesture */);
return kExistingWindowActivated;
}

Powered by Google App Engine
This is Rietveld 408576698