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

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

Issue 466012: Don't ping for extension blacklist when no extensions are installed.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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_updater_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extensions_service.h
===================================================================
--- chrome/browser/extensions/extensions_service.h (revision 33298)
+++ chrome/browser/extensions/extensions_service.h (working copy)
@@ -51,6 +51,7 @@
bool include_disabled) = 0;
virtual void UpdateExtensionBlacklist(
const std::vector<std::string>& blacklist) = 0;
+ virtual bool HasInstalledExtensions() = 0;
};
// Manages installed and running Chromium extensions.
@@ -88,6 +89,11 @@
return &disabled_extensions_;
}
+ // Returns true if any extensions are installed.
+ virtual bool HasInstalledExtensions() {
+ return !(extensions_.empty() && disabled_extensions_.empty());
+ }
+
const FilePath& install_directory() const { return install_directory_; }
// Initialize and start all installed extensions.
« no previous file with comments | « chrome/browser/extensions/extension_updater_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698