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

Unified Diff: chrome/common/extensions/user_script.cc

Issue 412008: Introduce a new 'all_frames' property to content scripts and (Closed)
Patch Set: responses to comments Created 11 years, 1 month 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 | « chrome/common/extensions/user_script.h ('k') | chrome/renderer/user_script_slave.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/user_script.cc
diff --git a/chrome/common/extensions/user_script.cc b/chrome/common/extensions/user_script.cc
index 10d0b60eef0d06167703de1bec38604108cc5b4b..96f7dd4bcc5e5d6341fee786e504f8ee084de832 100644
--- a/chrome/common/extensions/user_script.cc
+++ b/chrome/common/extensions/user_script.cc
@@ -84,6 +84,9 @@ void UserScript::Pickle(::Pickle* pickle) const {
// Write Greasemonkey emulation.
pickle->WriteBool(emulate_greasemonkey());
+ // Write match all frames
+ pickle->WriteBool(match_all_frames());
+
// Write globs.
std::vector<std::string>::const_iterator glob;
pickle->WriteSize(globs_.size());
@@ -130,6 +133,9 @@ void UserScript::Unpickle(const ::Pickle& pickle, void** iter) {
// Read Greasemonkey emulation.
CHECK(pickle.ReadBool(iter, &emulate_greasemonkey_));
+ // Read match all frames
+ CHECK(pickle.ReadBool(iter, &match_all_frames_));
+
// Read globs.
size_t num_globs = 0;
CHECK(pickle.ReadSize(iter, &num_globs));
« no previous file with comments | « chrome/common/extensions/user_script.h ('k') | chrome/renderer/user_script_slave.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698