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

Unified Diff: chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc

Issue 2850403002: Fix crash under ExclusiveAccessBubbleViews::AnimationProgressed(). (Closed)
Patch Set: respond to comments Created 3 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/exclusive_access/fullscreen_controller_test.cc
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc b/chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc
index 55e44ee9dd9210b3f20c2ed14701d015584f1d85..784d16d6489f41ee984f32fa2f2c9843814c7f37 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc
@@ -88,3 +88,10 @@ void FullscreenControllerTest::Reload() {
void FullscreenControllerTest::SetPrivilegedFullscreen(bool is_privileged) {
GetFullscreenController()->SetPrivilegedFullscreenForTesting(is_privileged);
}
+
+void FullscreenControllerTest::EnterActiveTabFullscreen() {
+ WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents();
+ FullscreenNotificationObserver fullscreen_observer;
+ browser()->EnterFullscreenModeForTab(tab, GURL());
+ fullscreen_observer.Wait();
+}

Powered by Google App Engine
This is Rietveld 408576698