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

Unified Diff: extensions/common/user_script.cc

Issue 226663003: Allow content script insertion on about:-URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move GetEffectiveDocumentURL to ScriptContext Created 6 years, 7 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 | « extensions/common/user_script.h ('k') | extensions/renderer/script_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/user_script.cc
diff --git a/extensions/common/user_script.cc b/extensions/common/user_script.cc
index 84c1236c604045ee0e8dc82ecdafa9556918364a..4f51504ef1ee8c47b1ea991a4a2dc8244d947a20 100644
--- a/extensions/common/user_script.cc
+++ b/extensions/common/user_script.cc
@@ -69,9 +69,11 @@ UserScript::File::File() {}
UserScript::File::~File() {}
UserScript::UserScript()
- : run_location_(DOCUMENT_IDLE), emulate_greasemonkey_(false),
- match_all_frames_(false), incognito_enabled_(false) {
-}
+ : run_location_(DOCUMENT_IDLE),
+ emulate_greasemonkey_(false),
+ match_all_frames_(false),
+ match_about_blank_(false),
+ incognito_enabled_(false) {}
UserScript::~UserScript() {
}
@@ -127,6 +129,7 @@ void UserScript::Pickle(::Pickle* pickle) const {
pickle->WriteString(extension_id());
pickle->WriteBool(emulate_greasemonkey());
pickle->WriteBool(match_all_frames());
+ pickle->WriteBool(match_about_blank());
pickle->WriteBool(is_incognito_enabled());
PickleGlobs(pickle, globs_);
@@ -175,6 +178,7 @@ void UserScript::Unpickle(const ::Pickle& pickle, PickleIterator* iter) {
CHECK(pickle.ReadString(iter, &extension_id_));
CHECK(pickle.ReadBool(iter, &emulate_greasemonkey_));
CHECK(pickle.ReadBool(iter, &match_all_frames_));
+ CHECK(pickle.ReadBool(iter, &match_about_blank_));
CHECK(pickle.ReadBool(iter, &incognito_enabled_));
UnpickleGlobs(pickle, iter, &globs_);
« no previous file with comments | « extensions/common/user_script.h ('k') | extensions/renderer/script_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698