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

Unified Diff: chrome/browser/background/background_contents_service.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: Moved path handling back to C++ 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/background/background_contents_service.cc
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index 687d87a3103434423a56b6021e37d3c9bd2bd2c5..6577441fbfd1e57ec37ca9d3238ab581a41250ed 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -129,7 +129,7 @@ class CrashNotificationDelegate : public NotificationDelegate {
RestartApplication(copied_extension_id);
} else {
extensions::ExtensionSystem::Get(profile_)->extension_service()->
- ReloadExtension(copied_extension_id);
+ ReloadExtension(copied_extension_id, true);
Devlin 2014/07/02 17:46:50 all of these should have anonymous bool comments..
gpdavis 2014/07/02 19:13:54 Not a problem! This is why I suggested overloadin
Devlin 2014/07/02 19:16:57 Our usual tactic for this is something like: Exten
}
// Closing the crash notification balloon for the app/extension here should
@@ -237,7 +237,7 @@ void ReloadExtension(const std::string& extension_id, Profile* profile) {
// been restarted successfully by someone else (the user).
return;
}
- extension_system->extension_service()->ReloadExtension(extension_id);
+ extension_system->extension_service()->ReloadExtension(extension_id, true);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698