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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 1213193003: Remove DCHECK_IMPLIES and CHECK_IMPLIES (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 37c99e03bfc366deeb63b405f3b8dacdcbc8b997..5cc7a17f9be6fe165862254712f1f9b35b7771f6 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -456,10 +456,10 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
// the WebURLLoader are the ones created by CommitNavigation. Several browser
// tests load HTML directly through a data url which will be handled by the
// block above.
- DCHECK_IMPLIES(base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableBrowserSideNavigation),
- stream_override_.get() ||
- request.frameType() == WebURLRequest::FrameTypeNone);
+ DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableBrowserSideNavigation) ||
+ (stream_override_.get() ||
+ request.frameType() == WebURLRequest::FrameTypeNone));
GURL referrer_url(
request.httpHeaderField(WebString::fromUTF8("Referer")).latin1());

Powered by Google App Engine
This is Rietveld 408576698