Index: extensions/common/user_script.cc |
diff --git a/extensions/common/user_script.cc b/extensions/common/user_script.cc |
index 4f51504ef1ee8c47b1ea991a4a2dc8244d947a20..128ac55b5a52c4afc6ad20b9779aa265ff567078 100644 |
--- a/extensions/common/user_script.cc |
+++ b/extensions/common/user_script.cc |
@@ -70,6 +70,7 @@ UserScript::File::~File() {} |
UserScript::UserScript() |
: run_location_(DOCUMENT_IDLE), |
+ user_script_id_(-1), |
emulate_greasemonkey_(false), |
match_all_frames_(false), |
match_about_blank_(false), |
@@ -127,6 +128,7 @@ void UserScript::Pickle(::Pickle* pickle) const { |
// Write the simple types to the pickle. |
pickle->WriteInt(run_location()); |
pickle->WriteString(extension_id()); |
+ pickle->WriteInt64(user_script_id_); |
pickle->WriteBool(emulate_greasemonkey()); |
pickle->WriteBool(match_all_frames()); |
pickle->WriteBool(match_about_blank()); |
@@ -176,6 +178,7 @@ void UserScript::Unpickle(const ::Pickle& pickle, PickleIterator* iter) { |
run_location_ = static_cast<RunLocation>(run_location); |
CHECK(pickle.ReadString(iter, &extension_id_)); |
+ CHECK(pickle.ReadInt64(iter, &user_script_id_)); |
CHECK(pickle.ReadBool(iter, &emulate_greasemonkey_)); |
CHECK(pickle.ReadBool(iter, &match_all_frames_)); |
CHECK(pickle.ReadBool(iter, &match_about_blank_)); |