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

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

Issue 6772022: Make <all_urls> and file:///* in permissions trigger "Allow file access" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing Created 9 years, 9 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 | « chrome/common/extensions/url_pattern.cc ('k') | chrome/common/extensions/user_script.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/user_script.h
diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h
index 3be2f1133e0a772472d7961099679f517dca7320..3d91de16f2dcea6d2cb1903ace91a57d2acea255 100644
--- a/chrome/common/extensions/user_script.h
+++ b/chrome/common/extensions/user_script.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -152,7 +152,6 @@ class UserScript {
// against.
const PatternList& url_patterns() const { return url_patterns_; }
void add_url_pattern(const URLPattern& pattern);
- void clear_url_patterns();
// List of js scripts for this user script
FileList& js_scripts() { return js_scripts_; }
@@ -168,9 +167,6 @@ class UserScript {
bool is_incognito_enabled() const { return incognito_enabled_; }
void set_incognito_enabled(bool enabled) { incognito_enabled_ = enabled; }
- bool allow_file_access() const { return allow_file_access_; }
- void set_allow_file_access(bool allowed) { allow_file_access_ = allowed; }
-
bool is_standalone() const { return extension_id_.empty(); }
// Returns true if the script should be applied to the specified URL, false
@@ -233,9 +229,6 @@ class UserScript {
// True if the script should be injected into an incognito tab.
bool incognito_enabled_;
-
- // True if the user agreed to allow this script access to file URLs.
- bool allow_file_access_;
};
typedef std::vector<UserScript> UserScriptList;
« no previous file with comments | « chrome/common/extensions/url_pattern.cc ('k') | chrome/common/extensions/user_script.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698