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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_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/chrome_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
index 0e6b955ca7a33a7ad24c4ca7b359b655f1ffe04c..d23e988e762b0c7e744a49d58ef0cba0619f50a6 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
@@ -1108,7 +1108,7 @@ ChromeLauncherController::ActivateWindowOrMinimizeIfActive(
ash::MultiProfileUMA::RecordTeleportAction(
ash::MultiProfileUMA::TELEPORT_WINDOW_RETURN_BY_LAUNCHER);
manager->ShowWindowForUser(native_window, current_user);
- window->Activate();
+ window->Activate(true /* user_gesture */);
return ash::ShelfItemDelegate::kExistingWindowActivated;
}
}
@@ -1124,7 +1124,7 @@ ChromeLauncherController::ActivateWindowOrMinimizeIfActive(
}
} else {
window->Show();
- window->Activate();
+ window->Activate(true /* user_gesture */);
return ash::ShelfItemDelegate::kExistingWindowActivated;
}
return ash::ShelfItemDelegate::kNoAction;

Powered by Google App Engine
This is Rietveld 408576698