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

Unified Diff: extensions/common/extension.h

Issue 2892403002: Introduce lock screen app context to extension features (Closed)
Patch Set: . Created 3 years, 7 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 | « extensions/browser/process_map_unittest.cc ('k') | extensions/common/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension.h
diff --git a/extensions/common/extension.h b/extensions/common/extension.h
index 89e9a26b39c035b17527e03730ff585f5151d525..0d0e2e9fbbed06b74c7c0d0446d76697c39213f4 100644
--- a/extensions/common/extension.h
+++ b/extensions/common/extension.h
@@ -157,6 +157,13 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// before they are fully installed and enabled.
MAY_BE_UNTRUSTED = 1 << 12,
+ // |RUN_ON_LOCK_SCREEN| indicates that this extension will be run on lock
+ // screen. It's primarily set for lock screen action handler platform apps.
+ // The apps will be able to create a window on top of Chrome OS lock screen
+ // and will have resticted access to extension APIs. The apps will be
+ // installed in a browser context not associated with any user.
+ RUNS_ON_LOCK_SCREEN = 1 << 13,
Devlin 2017/05/23 16:51:53 I'm not sure we want a creation flag for this, but
tbarzic 2017/05/23 17:30:23 I'll add code that uses the flag in later cls. Th
Devlin 2017/05/25 20:42:02 Sorry for the delay. I'd prefer we don't have thi
+
// When adding new flags, make sure to update kInitFromValueFlagBits.
};
@@ -324,6 +331,10 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
return (creation_flags_ & WAS_INSTALLED_BY_OEM) != 0;
}
+ bool runs_on_lock_screen() const {
+ return (creation_flags_ & RUNS_ON_LOCK_SCREEN) != 0;
+ }
+
// Type-related queries. These are all mutually exclusive.
//
// The differences between the types of Extension are documented here:
« no previous file with comments | « extensions/browser/process_map_unittest.cc ('k') | extensions/common/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698