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

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

Issue 10905306: Revert 156659 - Restart running apps when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/extensions/extension_prefs.h ('k') | chrome/browser/extensions/platform_app_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_prefs.cc
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc
index e0450220ef2d2dcaa065071527065a7dab949130..3b536c0064e02ec4ec87ea3d52e3432c1f82d19b 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -36,9 +36,6 @@ namespace {
// Additional preferences keys
-// Whether this extension was running when chrome last shutdown.
-const char kPrefRunning[] = "running";
-
// Where an extension was installed from. (see Extension::Location)
const char kPrefLocation[] = "location";
@@ -1100,21 +1097,6 @@ void ExtensionPrefs::SetRegisteredEvents(
UpdateExtensionPref(extension_id, kRegisteredEvents, value);
}
-void ExtensionPrefs::SetExtensionRunning(const std::string& extension_id,
- bool is_running) {
- Value* value = Value::CreateBooleanValue(is_running);
- UpdateExtensionPref(extension_id, kPrefRunning, value);
-}
-
-bool ExtensionPrefs::IsExtensionRunning(const std::string& extension_id) {
- const DictionaryValue* extension = GetExtensionPref(extension_id);
- if (!extension)
- return false;
- bool running = false;
- extension->GetBoolean(kPrefRunning, &running);
- return running;
-}
-
ExtensionOmniboxSuggestion
ExtensionPrefs::GetOmniboxDefaultSuggestion(const std::string& extension_id) {
ExtensionOmniboxSuggestion suggestion;
« no previous file with comments | « chrome/browser/extensions/extension_prefs.h ('k') | chrome/browser/extensions/platform_app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698