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

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

Issue 10832237: Allow chrome.management.setEnabled() to re-enable crashed extensions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index c326490a1a8cb6f32e3d039fe3a0dcb5e02b4897..1a9d8c6287cf40c9afcccc6eb186f7d2401d01ce 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -89,6 +89,8 @@ class SyncData;
class SyncErrorFactory;
}
+typedef std::map<std::string, FilePath> UnloadedExtensionPathMap;
+
// This is an interface class to encapsulate the dependencies that
// various classes have on ExtensionService. This allows easy mocking.
class ExtensionServiceInterface : public syncer::SyncableService {
@@ -457,7 +459,6 @@ class ExtensionService
const extensions::ExtensionSyncData& extension_sync_data);
bool ProcessAppSyncData(const extensions::AppSyncData& app_sync_data);
-
void set_extensions_enabled(bool enabled) { extensions_enabled_ = enabled; }
bool extensions_enabled() { return extensions_enabled_; }
@@ -469,6 +470,10 @@ class ExtensionService
return show_extensions_prompts_;
}
+ const UnloadedExtensionPathMap& unloaded_extension_paths() const {
+ return unloaded_extension_paths_;
+ }
+
Profile* profile();
// TODO(skerner): Change to const ExtensionPrefs& extension_prefs() const,
@@ -768,7 +773,6 @@ class ExtensionService
// Map unloaded extensions' ids to their paths. When a temporarily loaded
// extension is unloaded, we lose the information about it and don't have
// any in the extension preferences file.
- typedef std::map<std::string, FilePath> UnloadedExtensionPathMap;
UnloadedExtensionPathMap unloaded_extension_paths_;
// Map disabled extensions' ids to their paths. When a temporarily loaded

Powered by Google App Engine
This is Rietveld 408576698