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

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

Issue 1887253002: Rate limit programmatic update checks for extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index f924d0ae1e3573e39803dc584a20a2fe72be3422..3ce6a461845ecfc6afa260fc791c1dd7935add5c 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -519,7 +519,8 @@ bool ExtensionService::UpdateExtension(const extensions::CRXFileInfo& file,
<< " because it is not installed or pending";
// Delete extension_path since we're not creating a CrxInstaller
// that would do it for us.
- if (!GetFileTaskRunner()->PostTask(
+ if (file_ownership_passed &&
+ !GetFileTaskRunner()->PostTask(
FROM_HERE,
base::Bind(&extensions::file_util::DeleteFile, file.path, false)))
NOTREACHED();
@@ -692,12 +693,12 @@ void ExtensionService::ReloadExtensionImpl(
}
void ExtensionService::ReloadExtension(const std::string& extension_id) {
- ReloadExtensionImpl(extension_id, true); // be_noisy
+ ReloadExtensionImpl(extension_id, true); // be_noisy
}
void ExtensionService::ReloadExtensionWithQuietFailure(
const std::string& extension_id) {
- ReloadExtensionImpl(extension_id, false); // be_noisy
+ ReloadExtensionImpl(extension_id, false); // be_noisy
}
bool ExtensionService::UninstallExtension(

Powered by Google App Engine
This is Rietveld 408576698