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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/site_isolation_policy_browsertest.cc ('k') | content/child/web_url_loader_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 2bd4bb1a549651c7bea55f9975a9cf0a71149e51..b787f93b4b176000bd729b24645be40ee2335b14 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -437,7 +437,7 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
// contains the body of the response. The request has already been made by the
// browser.
if (stream_override_.get()) {
- CHECK(CommandLine::ForCurrentProcess()->HasSwitch(
+ CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBrowserSideNavigation));
DCHECK(!sync_load_response);
DCHECK_NE(WebURLRequest::FrameTypeNone, request.frameType());
@@ -447,8 +447,8 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
// PlzNavigate: the only navigation requests going through the WebURLLoader
// are the ones created by CommitNavigation.
- DCHECK(!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableBrowserSideNavigation) ||
+ DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableBrowserSideNavigation) ||
stream_override_.get() ||
request.frameType() == WebURLRequest::FrameTypeNone);
@@ -587,7 +587,7 @@ void WebURLLoaderImpl::Context::OnReceivedResponse(
// PlzNavigate: during navigations, the ResourceResponse has already been
// received on the browser side, and has been passed down to the renderer.
if (stream_override_.get()) {
- CHECK(CommandLine::ForCurrentProcess()->HasSwitch(
+ CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBrowserSideNavigation));
info = stream_override_->response;
}
« no previous file with comments | « content/child/site_isolation_policy_browsertest.cc ('k') | content/child/web_url_loader_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698