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

Unified Diff: chrome/common/extensions/message_bundle.cc

Issue 12319073: Delete the extensions i18n message map when extension unload is received. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed to i18n_apitest and fixed up misc Created 7 years, 10 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/common/extensions/message_bundle.cc
diff --git a/chrome/common/extensions/message_bundle.cc b/chrome/common/extensions/message_bundle.cc
index 0a71b3199259ed8ca516deec5b1b5974fdda9ac6..6dbbdfa2b19d60f69869d3d4147b0f6bc2e9d209 100644
--- a/chrome/common/extensions/message_bundle.cc
+++ b/chrome/common/extensions/message_bundle.cc
@@ -341,4 +341,7 @@ L10nMessagesMap* GetL10nMessagesMap(const std::string& extension_id) {
return NULL;
}
+void EraseL10nMessagesMap(const std::string& extension_id) {
+ g_extension_to_messages_map.Get().messages_map.erase(extension_id);
+}
Devlin 2013/02/27 23:10:41 nit: Insert newline here.
Patrick Riordan 2013/03/01 17:29:22 Done.
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698