| 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_; | 
|  |