diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-19 06:23:39 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-19 06:23:39 +0000 |
commit | acc3c7c23af18f877392ce335fe861a89b24bc42 (patch) | |
tree | 361910088d677f8738d9a8defe012c6d11824daa /extensions/common/extension.h | |
parent | 4b1af1b6aa4bb1c75bc3bfdc1b9e677671f16d8f (diff) | |
download | chromium_src-acc3c7c23af18f877392ce335fe861a89b24bc42.zip chromium_src-acc3c7c23af18f877392ce335fe861a89b24bc42.tar.gz chromium_src-acc3c7c23af18f877392ce335fe861a89b24bc42.tar.bz2 |
Support for OEM Folder in the App List
BUG=343378
Review URL: https://codereview.chromium.org/197403005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257871 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension.h')
-rw-r--r-- | extensions/common/extension.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/common/extension.h b/extensions/common/extension.h index f1fe7d7..c7b8458 100644 --- a/extensions/common/extension.h +++ b/extensions/common/extension.h @@ -164,6 +164,11 @@ class Extension : public base::RefCountedThreadSafe<Extension> { // |IS_EPHEMERAL| identifies ephemeral apps (experimental), which are not // permanently installed. IS_EPHEMERAL = 1 << 9, + + // |WAS_INSTALLED_BY_OEM| installed by an OEM (e.g on Chrome OS) and should + // be placed in a special OEM folder in the App Launcher. Note: OEM apps are + // also installed by Default (i.e. WAS_INSTALLED_BY_DEFAULT is also true). + WAS_INSTALLED_BY_OEM = 1 << 10, }; static scoped_refptr<Extension> Create(const base::FilePath& path, @@ -323,6 +328,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> { bool was_installed_by_default() const { return (creation_flags_ & WAS_INSTALLED_BY_DEFAULT) != 0; } + 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. |