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

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

Issue 342003005: Show alert failure for reloading unpacked extensions with bad manifest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed be_noisy, support interaction with multiple failures Created 6 years, 6 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_util.cc
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc
index 6b27885445973a01fb41f875222c267a0e1e99c6..92018d0b9f21addbf4f1664d26829f440da523ef 100644
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -113,7 +113,7 @@ void SetIsIncognitoEnabled(const std::string& extension_id,
// by const ref everywhere. Make a copy to be safe.
std::string id = extension_id;
if (extension_is_enabled)
- service->ReloadExtension(id);
+ service->ReloadExtension(id, true);
// Reloading the extension invalidates the |extension| pointer.
extension = service->GetInstalledExtension(id);
@@ -167,7 +167,7 @@ void SetAllowFileAccess(const std::string& extension_id,
bool extension_is_enabled = service->extensions()->Contains(extension_id);
if (extension_is_enabled)
- service->ReloadExtension(extension_id);
+ service->ReloadExtension(extension_id, true);
}
bool AllowedScriptingOnAllUrls(const std::string& extension_id,

Powered by Google App Engine
This is Rietveld 408576698