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

Unified Diff: chrome/browser/ui/browser.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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 3e0ce26be53db3c179f8d10dd5b93e9286221789..42e694ca9a8448b0fa73ff9ea4b66dc8aa32258f 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1448,7 +1448,7 @@ void Browser::AddNewContents(WebContents* source,
void Browser::ActivateContents(WebContents* contents, bool user_gesture) {
tab_strip_model_->ActivateTabAt(
tab_strip_model_->GetIndexOfWebContents(contents), false);
- window_->Activate();
+ window_->Activate(user_gesture);
}
void Browser::DeactivateContents(WebContents* contents) {

Powered by Google App Engine
This is Rietveld 408576698