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

Unified Diff: chrome/browser/ui/panels/base_panel_browser_test.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/panels/base_panel_browser_test.cc
diff --git a/chrome/browser/ui/panels/base_panel_browser_test.cc b/chrome/browser/ui/panels/base_panel_browser_test.cc
index 071f2f7e7621fef18d8826fd1f956207396c691b..7b1f19fab3f9222c2a4a5a49d36fc6c5e7b1af81 100644
--- a/chrome/browser/ui/panels/base_panel_browser_test.cc
+++ b/chrome/browser/ui/panels/base_panel_browser_test.cc
@@ -381,7 +381,7 @@ Panel* BasePanelBrowserTest::CreatePanelWithParams(
// the activated notification is consumed before we wait for the panel
// to become inactive.
WaitForPanelActiveState(panel, SHOW_AS_ACTIVE);
- browser()->window()->Activate();
+ browser()->window()->Activate(false /* user_gesture */);
}
#endif
// More waiting, because gaining or losing focus may require inter-process
@@ -501,7 +501,7 @@ void BasePanelBrowserTest::ActivatePanel(Panel* panel) {
}
#endif
- panel->Activate();
+ panel->Activate(false /* user_gesture */);
}
void BasePanelBrowserTest::DeactivatePanel(Panel* panel) {

Powered by Google App Engine
This is Rietveld 408576698