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

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

Issue 11411227: Garbage collect extensions only if there are no pending extension installs that could still be usin… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/pending_extension_manager.cc
diff --git a/chrome/browser/extensions/pending_extension_manager.cc b/chrome/browser/extensions/pending_extension_manager.cc
index e0ed9a1dc37c1955d9ed91be432bf2f5ca4b8135..b86b0eb38f3cb2f321568ffcb6ac65b4b7481f9d 100644
--- a/chrome/browser/extensions/pending_extension_manager.cc
+++ b/chrome/browser/extensions/pending_extension_manager.cc
@@ -73,6 +73,10 @@ bool PendingExtensionManager::IsIdPending(const std::string& id) const {
return false;
}
+bool PendingExtensionManager::HasPendingExtensions() const {
+ return !pending_extension_list_.empty();
+}
+
bool PendingExtensionManager::HasPendingExtensionFromSync() const {
PendingExtensionList::const_iterator iter;
for (iter = pending_extension_list_.begin();

Powered by Google App Engine
This is Rietveld 408576698