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

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

Issue 173463: Update of the extension install UI: (Closed)
Patch Set: mpcompelte comments Created 11 years, 4 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
Index: chrome/common/extensions/user_script.h
diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h
index 57f85151fbbbf9c4dfc2cd6f77cb4a2cdd7d369f..7416472da708be9e1ceb345f4687273a3f8b6d53 100644
--- a/chrome/common/extensions/user_script.h
+++ b/chrome/common/extensions/user_script.h
@@ -19,6 +19,8 @@ class Pickle;
// extension.
class UserScript {
public:
+ typedef std::vector<URLPattern> PatternList;
+
// Locations that user scripts can be run inside the document.
enum RunLocation {
DOCUMENT_START, // After the documentElemnet is created, but before
@@ -97,7 +99,7 @@ class UserScript {
// The URLPatterns, if any, that determine which pages this script runs
// against.
- const std::vector<URLPattern>& url_patterns() const { return url_patterns_; }
+ const PatternList& url_patterns() const { return url_patterns_; }
void add_url_pattern(const URLPattern& pattern) {
url_patterns_.push_back(pattern);
}
@@ -139,7 +141,7 @@ class UserScript {
// URLPatterns that determine pages to inject the script into. These are
// only used with scripts that are part of extensions.
- std::vector<URLPattern> url_patterns_;
+ PatternList url_patterns_;
// List of js scripts defined in content_scripts
FileList js_scripts_;

Powered by Google App Engine
This is Rietveld 408576698