OLD | NEW |
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/test/content_browser_test.h" | 5 #include "content/test/content_browser_test.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 } | 131 } |
132 | 132 |
133 Shell* ContentBrowserTest::CreateBrowser() { | 133 Shell* ContentBrowserTest::CreateBrowser() { |
134 ShellContentBrowserClient* browser_client = | 134 ShellContentBrowserClient* browser_client = |
135 static_cast<ShellContentBrowserClient*>(GetContentClient()->browser()); | 135 static_cast<ShellContentBrowserClient*>(GetContentClient()->browser()); |
136 return Shell::CreateNewWindow( | 136 return Shell::CreateNewWindow( |
137 browser_client->browser_context(), | 137 browser_client->browser_context(), |
138 GURL(chrome::kAboutBlankURL), | 138 GURL(chrome::kAboutBlankURL), |
139 NULL, | 139 NULL, |
140 MSG_ROUTING_NONE, | 140 MSG_ROUTING_NONE, |
141 NULL); | 141 gfx::Size()); |
142 } | 142 } |
143 | 143 |
144 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() { | 144 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() { |
145 ShellContentBrowserClient* browser_client = | 145 ShellContentBrowserClient* browser_client = |
146 static_cast<ShellContentBrowserClient*>(GetContentClient()->browser()); | 146 static_cast<ShellContentBrowserClient*>(GetContentClient()->browser()); |
147 return Shell::CreateNewWindow( | 147 return Shell::CreateNewWindow( |
148 browser_client->off_the_record_browser_context(), | 148 browser_client->off_the_record_browser_context(), |
149 GURL(chrome::kAboutBlankURL), | 149 GURL(chrome::kAboutBlankURL), |
150 NULL, | 150 NULL, |
151 MSG_ROUTING_NONE, | 151 MSG_ROUTING_NONE, |
152 NULL); | 152 gfx::Size()); |
153 } | 153 } |
154 | 154 |
155 } // namespace content | 155 } // namespace content |
OLD | NEW |