Index: chrome/renderer/extensions/dispatcher.cc |
diff --git a/chrome/renderer/extensions/dispatcher.cc b/chrome/renderer/extensions/dispatcher.cc |
index 94a90d6dd15e027f56171962a0c3e7041b9f7f32..9f32b9175f39c12330ba5dbc9170f06316f1d34e 100644 |
--- a/chrome/renderer/extensions/dispatcher.cc |
+++ b/chrome/renderer/extensions/dispatcher.cc |
@@ -15,6 +15,7 @@ |
#include "chrome/common/extensions/extension.h" |
#include "chrome/common/extensions/extension_messages.h" |
#include "chrome/common/extensions/manifest.h" |
+#include "chrome/common/extensions/message_bundle.h" |
#include "chrome/common/extensions/permissions/permission_set.h" |
#include "chrome/common/url_constants.h" |
#include "chrome/common/view_type.h" |
@@ -514,6 +515,10 @@ void Dispatcher::OnUnloaded(const std::string& id) { |
v8_context_set_.OnExtensionUnloaded(id); |
+ // Invalidates messages map for id incase extension is reloaded with |
Devlin
2013/02/22 19:59:07
"Invalidates _the_ messages map for the extension
Patrick Riordan
2013/02/26 05:05:20
Done.
|
+ // new messages map. |
+ EraseL10nMessagesMap(id); |
+ |
// We don't do anything with existing platform-app stylesheets. They will |
// stay resident, but the URL pattern corresponding to the unloaded |
// extension's URL just won't match anything anymore. |