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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h" 5 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_commands.h" 9 #include "chrome/browser/ui/browser_commands.h"
10 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void FullscreenControllerTest::Reload() { 81 void FullscreenControllerTest::Reload() {
82 content::TestNavigationObserver observer( 82 content::TestNavigationObserver observer(
83 browser()->tab_strip_model()->GetActiveWebContents(), 1); 83 browser()->tab_strip_model()->GetActiveWebContents(), 1);
84 chrome::Reload(browser(), WindowOpenDisposition::CURRENT_TAB); 84 chrome::Reload(browser(), WindowOpenDisposition::CURRENT_TAB);
85 observer.Wait(); 85 observer.Wait();
86 } 86 }
87 87
88 void FullscreenControllerTest::SetPrivilegedFullscreen(bool is_privileged) { 88 void FullscreenControllerTest::SetPrivilegedFullscreen(bool is_privileged) {
89 GetFullscreenController()->SetPrivilegedFullscreenForTesting(is_privileged); 89 GetFullscreenController()->SetPrivilegedFullscreenForTesting(is_privileged);
90 } 90 }
91
92 void FullscreenControllerTest::EnterActiveTabFullscreen() {
93 WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents();
94 FullscreenNotificationObserver fullscreen_observer;
95 browser()->EnterFullscreenModeForTab(tab, GURL());
96 fullscreen_observer.Wait();
97 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698