Index: chrome/browser/extensions/extensions_service.cc |
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc |
index e807637a5331104a038f2875c4fc7051bb180e3c..88d97d26de279edfc493c3c8f075e9532db8ee3e 100644 |
--- a/chrome/browser/extensions/extensions_service.cc |
+++ b/chrome/browser/extensions/extensions_service.cc |
@@ -597,6 +597,22 @@ ExtensionsService::ExtensionsService(Profile* profile, |
0, kOmniboxIconPaddingRight)); |
} |
+const ExtensionList* ExtensionsService::extensions() const { |
+ return &extensions_; |
+} |
+ |
+const ExtensionList* ExtensionsService::disabled_extensions() const { |
+ return &disabled_extensions_; |
+} |
+ |
+const PendingExtensionMap& ExtensionsService::pending_extensions() const { |
+ return pending_extensions_; |
+} |
+ |
+bool ExtensionsService::HasInstalledExtensions() { |
+ return !(extensions_.empty() && disabled_extensions_.empty()); |
+} |
+ |
ExtensionsService::~ExtensionsService() { |
DCHECK(!profile_); // Profile should have told us it's going away. |
UnloadAllExtensions(); |
@@ -1356,6 +1372,10 @@ void ExtensionsService::DestroyingProfile() { |
toolbar_model_.DestroyingProfile(); |
} |
+ExtensionPrefs* ExtensionsService::extension_prefs() { |
+ return extension_prefs_; |
+} |
+ |
void ExtensionsService::CheckAdminBlacklist() { |
std::vector<std::string> to_be_removed; |
// Loop through extensions list, unload installed extensions. |