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

Unified Diff: chrome/renderer/page_load_histograms.cc

Issue 334983008: Remove proxy checking while evaluating via headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« 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/page_load_histograms.cc
diff --git a/chrome/renderer/page_load_histograms.cc b/chrome/renderer/page_load_histograms.cc
index 9f7d85186b5a93f75a1a15e88c0fbb449ce5a3dd..ad0e879308137ae1de4f3e82e0089748cc1a2530 100644
--- a/chrome/renderer/page_load_histograms.cc
+++ b/chrome/renderer/page_load_histograms.cc
@@ -142,16 +142,9 @@ URLPattern::SchemeMasks GetSupportedSchemeType(const GURL& url) {
}
// Helper function to check for string in 'via' header. Returns true if
-// |via_value| is one of the values listed in the Via header and the response
-// was fetched via a proxy.
+// |via_value| is one of the values listed in the Via header.
bool ViaHeaderContains(WebFrame* frame, const std::string& via_value) {
const char kViaHeaderName[] = "Via";
-
- DocumentState* document_state =
- DocumentState::FromDataSource(frame->dataSource());
- if (!document_state->was_fetched_via_proxy())
- return false;
-
std::vector<std::string> values;
// Multiple via headers have already been coalesced and hence each value
// separated by a comma corresponds to a proxy. The value added by a proxy is
« 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