| Index: extensions/renderer/user_script_set.cc
|
| diff --git a/extensions/renderer/user_script_set.cc b/extensions/renderer/user_script_set.cc
|
| index e95843d392880bebd48ce1b26bdfebce5b903951..96d542ea99b36d7c75620baf133984e0df9616fc 100644
|
| --- a/extensions/renderer/user_script_set.cc
|
| +++ b/extensions/renderer/user_script_set.cc
|
| @@ -110,7 +110,7 @@
|
| size_t num_scripts = 0;
|
| Pickle pickle(reinterpret_cast<char*>(shared_memory_->memory()), pickle_size);
|
| PickleIterator iter(pickle);
|
| - CHECK(iter.ReadSizeT(&num_scripts));
|
| + CHECK(pickle.ReadSizeT(&iter, &num_scripts));
|
|
|
| scripts_.clear();
|
| scripts_.reserve(num_scripts);
|
| @@ -124,14 +124,14 @@
|
| for (size_t j = 0; j < script->js_scripts().size(); ++j) {
|
| const char* body = NULL;
|
| int body_length = 0;
|
| - CHECK(iter.ReadData(&body, &body_length));
|
| + CHECK(pickle.ReadData(&iter, &body, &body_length));
|
| script->js_scripts()[j].set_external_content(
|
| base::StringPiece(body, body_length));
|
| }
|
| for (size_t j = 0; j < script->css_scripts().size(); ++j) {
|
| const char* body = NULL;
|
| int body_length = 0;
|
| - CHECK(iter.ReadData(&body, &body_length));
|
| + CHECK(pickle.ReadData(&iter, &body, &body_length));
|
| script->css_scripts()[j].set_external_content(
|
| base::StringPiece(body, body_length));
|
| }
|
|
|