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

Unified Diff: content/test/content_browser_test.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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
« no previous file with comments | « content/shell/webkit_test_controller.cc ('k') | content/test/content_test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_browser_test.cc
===================================================================
--- content/test/content_browser_test.cc (revision 192622)
+++ content/test/content_browser_test.cc (working copy)
@@ -60,8 +60,7 @@
// and set up renderer.
if (command_line->HasSwitch(switches::kSingleProcess)) {
single_process_renderer_client_.reset(new ShellContentRendererClient);
- GetContentClient()->set_renderer_for_testing(
- single_process_renderer_client_.get());
+ SetRendererClientForTesting(single_process_renderer_client_.get());
}
#if defined(OS_MACOSX)
@@ -131,10 +130,8 @@
}
Shell* ContentBrowserTest::CreateBrowser() {
- ShellContentBrowserClient* browser_client =
- static_cast<ShellContentBrowserClient*>(GetContentClient()->browser());
return Shell::CreateNewWindow(
- browser_client->browser_context(),
+ ShellContentBrowserClient::Get()->browser_context(),
GURL(chrome::kAboutBlankURL),
NULL,
MSG_ROUTING_NONE,
@@ -142,10 +139,8 @@
}
Shell* ContentBrowserTest::CreateOffTheRecordBrowser() {
- ShellContentBrowserClient* browser_client =
- static_cast<ShellContentBrowserClient*>(GetContentClient()->browser());
return Shell::CreateNewWindow(
- browser_client->off_the_record_browser_context(),
+ ShellContentBrowserClient::Get()->off_the_record_browser_context(),
GURL(chrome::kAboutBlankURL),
NULL,
MSG_ROUTING_NONE,
« no previous file with comments | « content/shell/webkit_test_controller.cc ('k') | content/test/content_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698