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

Unified Diff: chrome/browser/extensions/crx_installer.h

Issue 8423003: Enable experimental permissions for extensions from the store. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: little cleanup Created 9 years, 2 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 | « no previous file | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/crx_installer.h
diff --git a/chrome/browser/extensions/crx_installer.h b/chrome/browser/extensions/crx_installer.h
index e83342d7041c317a9f5e1ee66c78ad40fe86ae9b..450dd5ed60607807d8d46234281bcc69b15b936d 100644
--- a/chrome/browser/extensions/crx_installer.h
+++ b/chrome/browser/extensions/crx_installer.h
@@ -137,8 +137,13 @@ class CrxInstaller
bool allow_silent_install() const { return allow_silent_install_; }
void set_allow_silent_install(bool val) { allow_silent_install_ = val; }
- bool is_gallery_install() const { return is_gallery_install_; }
- void set_is_gallery_install(bool val) { is_gallery_install_ = val; }
+ bool is_gallery_install() const {
+ return creation_flags_ & Extension::FROM_WEBSTORE;
Matt Perry 2011/10/31 18:55:14 was this a functional change, or just a cleanup?
Aaron Boodman 2011/10/31 20:04:12 The overall change is a functional addition. The p
+ }
+ void set_is_gallery_install(bool val) {
+ if (val) creation_flags_ |= Extension::FROM_WEBSTORE;
+ else creation_flags_ &= ~Extension::FROM_WEBSTORE;
+ }
// The original download URL should be set when the WebstoreInstaller is
// tracking the installation. The WebstoreInstaller uses this URL to match
@@ -247,9 +252,6 @@ class CrxInstaller
// to false.
bool delete_source_;
- // Whether the install originated from the gallery.
- bool is_gallery_install_;
-
// The download URL, before redirects, if this is a gallery install.
GURL original_download_url_;
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698