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

Unified Diff: chrome/test/base/browser_with_test_window_test.cc

Issue 83343006: Enable immersive fullscreen for hosted apps part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « chrome/test/base/browser_with_test_window_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/browser_with_test_window_test.cc
diff --git a/chrome/test/base/browser_with_test_window_test.cc b/chrome/test/base/browser_with_test_window_test.cc
index 16f22df321bcf66d05a3f40d39ceb96fd1a2cd64..bf97a7914eebfbfbf000c1746d8dea7c33368eb7 100644
--- a/chrome/test/base/browser_with_test_window_test.cc
+++ b/chrome/test/base/browser_with_test_window_test.cc
@@ -65,9 +65,7 @@ void BrowserWithTestWindowTest::SetUp() {
// is responsible for cleaning it up (usually by NativeWidget destruction).
window_.reset(CreateBrowserWindow());
- Browser::CreateParams params(profile(), host_desktop_type_);
- params.window = window_.get();
- browser_.reset(new Browser(params));
+ browser_.reset(CreateBrowser(profile(), host_desktop_type_, window_.get()));
}
void BrowserWithTestWindowTest::TearDown() {
@@ -195,3 +193,12 @@ void BrowserWithTestWindowTest::DestroyProfile(TestingProfile* profile) {
BrowserWindow* BrowserWithTestWindowTest::CreateBrowserWindow() {
return new TestBrowserWindow();
}
+
+Browser* BrowserWithTestWindowTest::CreateBrowser(
+ Profile* profile,
+ chrome::HostDesktopType host_desktop_type,
+ BrowserWindow* browser_window) {
+ Browser::CreateParams params(profile, host_desktop_type);
+ params.window = browser_window;
+ return new Browser(params);
+}
« no previous file with comments | « chrome/test/base/browser_with_test_window_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698