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

Unified Diff: net/filter/mock_filter_context.cc

Issue 206503006: Fix content-encoding handling with buggy servers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 9 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: net/filter/mock_filter_context.cc
diff --git a/net/filter/mock_filter_context.cc b/net/filter/mock_filter_context.cc
index ec6db0111c62b1951ceae4bf59564288808dd7e3..9eb56d8d5847b8592a4b4f103b63a5db2e513cc3 100644
--- a/net/filter/mock_filter_context.cc
+++ b/net/filter/mock_filter_context.cc
@@ -27,6 +27,13 @@ bool MockFilterContext::GetURL(GURL* gurl) const {
return true;
}
+bool MockFilterContext::GetFilename(std::string* filename) const {
+ if (filename_.empty())
+ return false;
+ *filename = filename_;
+ return true;
+}
+
// What was this data requested from a server?
base::Time MockFilterContext::GetRequestTime() const {
return request_time_;

Powered by Google App Engine
This is Rietveld 408576698