diff options
author | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-22 11:12:23 +0000 |
---|---|---|
committer | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-22 11:12:23 +0000 |
commit | 411f8aef7e6db2fadec7205a220f24ec8b914486 (patch) | |
tree | 619e67df3f82fa12c572c50cba09ea35fd625896 /extensions/common/extension.h | |
parent | 128a45f650f3a12253c3c2984d0f6eb36ab2a27b (diff) | |
download | chromium_src-411f8aef7e6db2fadec7205a220f24ec8b914486.zip chromium_src-411f8aef7e6db2fadec7205a220f24ec8b914486.tar.gz chromium_src-411f8aef7e6db2fadec7205a220f24ec8b914486.tar.bz2 |
Moved IS_EPHEMERAL flag to extension prefs
This patch moves the IS_EPHEMERAL flag from the Extension class to
extension prefs. This is because an Extension object is immutable and
this flag needs to be changed after creation to quickly promote a
running ephemeral app to being installed. Otherwise the install must
be delayed until the ephemeral app is closed.
BUG=374018
TBR=sky@chromium.org
TEST=All automated tests
Review URL: https://codereview.chromium.org/282103003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272157 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension.h')
-rw-r--r-- | extensions/common/extension.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/extensions/common/extension.h b/extensions/common/extension.h index 6679252..e3d5dfc 100644 --- a/extensions/common/extension.h +++ b/extensions/common/extension.h @@ -165,8 +165,7 @@ class Extension : public base::RefCountedThreadSafe<Extension> { // Unused - was part of an abandoned experiment. REQUIRE_PERMISSIONS_CONSENT = 1 << 8, - // |IS_EPHEMERAL| identifies ephemeral apps (experimental), which are not - // permanently installed. + // Unused - this flag has been moved to ExtensionPrefs. IS_EPHEMERAL = 1 << 9, // |WAS_INSTALLED_BY_OEM| installed by an OEM (e.g on Chrome OS) and should @@ -340,7 +339,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> { bool was_installed_by_oem() const { return (creation_flags_ & WAS_INSTALLED_BY_OEM) != 0; } - bool is_ephemeral() const { return (creation_flags_ & IS_EPHEMERAL) != 0; } // App-related. bool is_app() const; |