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

Side by Side Diff: content/public/test/content_browser_test.cc

Issue 790423002: Add the main frame routing ID to WebContentsDelegate, use it in BackgroundContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content shell Created 6 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 unified diff | Download patch
« no previous file with comments | « content/public/browser/web_contents_delegate.cc ('k') | content/shell/android/shell_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/public/test/content_browser_test.h" 5 #include "content/public/test/content_browser_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 Shell::CloseAllWindows(); 156 Shell::CloseAllWindows();
157 } 157 }
158 158
159 Shell* ContentBrowserTest::CreateBrowser() { 159 Shell* ContentBrowserTest::CreateBrowser() {
160 return Shell::CreateNewWindow( 160 return Shell::CreateNewWindow(
161 ShellContentBrowserClient::Get()->browser_context(), 161 ShellContentBrowserClient::Get()->browser_context(),
162 GURL(url::kAboutBlankURL), 162 GURL(url::kAboutBlankURL),
163 NULL, 163 NULL,
164 MSG_ROUTING_NONE,
165 gfx::Size()); 164 gfx::Size());
166 } 165 }
167 166
168 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() { 167 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() {
169 return Shell::CreateNewWindow( 168 return Shell::CreateNewWindow(
170 ShellContentBrowserClient::Get()->off_the_record_browser_context(), 169 ShellContentBrowserClient::Get()->off_the_record_browser_context(),
171 GURL(url::kAboutBlankURL), 170 GURL(url::kAboutBlankURL),
172 NULL, 171 NULL,
173 MSG_ROUTING_NONE,
174 gfx::Size()); 172 gfx::Size());
175 } 173 }
176 174
177 } // namespace content 175 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.cc ('k') | content/shell/android/shell_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698