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

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

Issue 7605001: Extensions installed by policy overrun previously installed extensions. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: More tests. Created 9 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/pending_extension_manager.h
diff --git a/chrome/browser/extensions/pending_extension_manager.h b/chrome/browser/extensions/pending_extension_manager.h
index 6efbdeb575d8a5704534ffb22a4af67128815476..e80392b25aa3241ed8a60a631873eb2706d2fc74 100644
--- a/chrome/browser/extensions/pending_extension_manager.h
+++ b/chrome/browser/extensions/pending_extension_manager.h
@@ -72,9 +72,12 @@ class PendingExtensionManager {
// Given an extension id and an update URL, schedule the extension
// to be fetched, installed, and activated.
+ // If |overwrite| is true, an existing extension with the same id will
+ // be replaced by the extension fetched.
void AddFromExternalUpdateUrl(const std::string& id,
const GURL& update_url,
- Extension::Location location);
+ Extension::Location location,
+ bool overwrite);
// Add a pending extension record for an external CRX file.
void AddFromExternalFile(

Powered by Google App Engine
This is Rietveld 408576698