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

Unified Diff: extensions/browser/extension_prefs.h

Issue 282103003: Moved IS_EPHEMERAL flag to extension prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up file header Created 6 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/event_router.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_prefs.h
diff --git a/extensions/browser/extension_prefs.h b/extensions/browser/extension_prefs.h
index c6066c3f0aebac4a885e395999b1b9e8aa33509f..9ffcf11c0059a4483408f2dd8d14695b9db756e3 100644
--- a/extensions/browser/extension_prefs.h
+++ b/extensions/browser/extension_prefs.h
@@ -190,6 +190,7 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
void OnExtensionInstalled(const Extension* extension,
Extension::State initial_state,
bool blacklisted_for_malware,
+ bool is_ephemeral,
const syncer::StringOrdinal& page_ordinal,
const std::string& install_parameter);
@@ -442,6 +443,7 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
void SetDelayedInstallInfo(const Extension* extension,
Extension::State initial_state,
bool blacklisted_for_malware,
+ bool is_ephemeral,
DelayReason delay_reason,
const syncer::StringOrdinal& page_ordinal,
const std::string& install_parameter);
@@ -475,6 +477,9 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
// Permanently remove the preferences for an evicted ephemeral app.
void RemoveEvictedEphemeralApp(const std::string& extension_id);
+ // Returns true if the extension is an ephemeral app.
+ bool IsEphemeralApp(const std::string& extension_id) const;
+
// Returns true if the user repositioned the app on the app launcher via drag
// and drop.
bool WasAppDraggedByUser(const std::string& extension_id);
@@ -681,6 +686,7 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
const base::Time install_time,
Extension::State initial_state,
bool blacklisted_for_malware,
+ bool is_ephemeral,
const std::string& install_parameter,
base::DictionaryValue* extension_dict);
« no previous file with comments | « extensions/browser/event_router.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698