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

Unified Diff: chrome/renderer/net/net_error_helper.cc

Issue 2649773006: Use explicit WebString conversions in renderer/net/net_error_helper.cc (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/net/net_error_helper.cc
diff --git a/chrome/renderer/net/net_error_helper.cc b/chrome/renderer/net/net_error_helper.cc
index 47316642460d597194255d32fe6f3c1bde6d84b2..1c3d935d64b2ba5825f33e89f7510f5eea9962ea 100644
--- a/chrome/renderer/net/net_error_helper.cc
+++ b/chrome/renderer/net/net_error_helper.cc
@@ -320,9 +320,7 @@ void NetErrorHelper::ReloadPage(bool bypass_cache) {
void NetErrorHelper::LoadPageFromCache(const GURL& page_url) {
blink::WebFrame* web_frame = render_frame()->GetWebFrame();
- DCHECK(!base::EqualsASCII(
- base::StringPiece16(web_frame->dataSource()->getRequest().httpMethod()),
- "POST"));
+ DCHECK_NE("POST", web_frame->dataSource()->getRequest().httpMethod().ascii());
blink::WebURLRequest request(page_url);
request.setCachePolicy(blink::WebCachePolicy::ReturnCacheDataDontLoad);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698