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

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

Issue 10875027: Restart running apps when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 8 years, 3 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
Index: chrome/browser/extensions/extension_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index 7da47b69f3ee9c59133d51349d856ca2b62cbae4..933f8b8044fdd225494c7f2cca74293799e8b5fa 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -289,6 +289,13 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
const DictionaryValue* GetFilteredEvents(
const std::string& extension_id) const;
+ // Records whether or not this extension is currently running.
+ void SetExtensionRunning(const std::string& extension_id, bool is_running);
+
+ // Returns whether or not this extension is marked as running. This is used to
+ // restart apps across browser restarts.
+ bool IsExtensionRunning(const std::string& extension_id);
+
// Controls the omnibox default suggestion as set by the extension.
ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion(
const std::string& extension_id);

Powered by Google App Engine
This is Rietveld 408576698