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

Unified Diff: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.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 | « chrome/browser/download/download_query.cc ('k') | chrome/browser/media/media_stream_capture_indicator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc
===================================================================
--- chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc (revision 192622)
+++ chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc (working copy)
@@ -351,8 +351,7 @@
test_navigation_listener_ = new TestNavigationListener();
content_browser_client_.reset(
new TestContentBrowserClient(test_navigation_listener_.get()));
- original_content_browser_client_ = content::GetContentClient()->browser();
- content::GetContentClient()->set_browser_for_testing(
+ original_content_browser_client_ = content::SetBrowserClientForTesting(
content_browser_client_.get());
FrameNavigationState::set_allow_extension_scheme(true);
@@ -366,8 +365,7 @@
virtual void TearDownInProcessBrowserTestFixture() OVERRIDE {
ExtensionApiTest::TearDownInProcessBrowserTestFixture();
- content::GetContentClient()->set_browser_for_testing(
- original_content_browser_client_);
+ content::SetBrowserClientForTesting(original_content_browser_client_);
}
TestNavigationListener* test_navigation_listener() {
« no previous file with comments | « chrome/browser/download/download_query.cc ('k') | chrome/browser/media/media_stream_capture_indicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698