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

Unified Diff: chrome/renderer/extensions/extension_localization_peer.cc

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 years, 5 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 | chrome/renderer/extensions/extension_localization_peer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_localization_peer.cc
diff --git a/chrome/renderer/extensions/extension_localization_peer.cc b/chrome/renderer/extensions/extension_localization_peer.cc
index 87b623ca4c0588b7a9750485555843b4763ea399..b1b72fd673f1cc76e1c81b5a9ee26b9ce79f81cb 100644
--- a/chrome/renderer/extensions/extension_localization_peer.cc
+++ b/chrome/renderer/extensions/extension_localization_peer.cc
@@ -27,7 +27,10 @@ class StringData final : public content::RequestPeer::ReceivedData {
const char* payload() const override { return data_.data(); }
int length() const override { return data_.size(); }
- int encoded_length() const override { return -1; }
+ int encoded_data_length() const override { return -1; }
+ // The original data has substitutions applied, so the original
+ // encoded_body_length no longer applies.
+ int encoded_body_length() const override { return data_.size(); }
private:
std::string data_;
« no previous file with comments | « no previous file | chrome/renderer/extensions/extension_localization_peer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698