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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.cc

Issue 628009: Adding @@extension_id reserved message to l10n message map for extension.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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/browser/renderer_host/resource_message_filter.cc
===================================================================
--- chrome/browser/renderer_host/resource_message_filter.cc (revision 39251)
+++ chrome/browser/renderer_host/resource_message_filter.cc (working copy)
@@ -1359,11 +1359,12 @@
ChromeThread::FILE, FROM_HERE,
NewRunnableMethod(
this, &ResourceMessageFilter::OnGetExtensionMessageBundleOnFileThread,
- extension_path, default_locale, reply_msg));
+ extension_path, extension_id, default_locale, reply_msg));
}
void ResourceMessageFilter::OnGetExtensionMessageBundleOnFileThread(
const FilePath& extension_path,
+ const std::string& extension_id,
const std::string& default_locale,
IPC::Message* reply_msg) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE));
@@ -1380,6 +1381,11 @@
dictionary_map = *bundle->dictionary();
}
+ // Add @@extension_id reserved message here, so it's available to
+ // non-localized extensions too.
+ dictionary_map.insert(
+ std::make_pair(ExtensionMessageBundle::kExtensionIdKey, extension_id));
+
ViewHostMsg_GetExtensionMessageBundle::WriteReplyParams(
reply_msg, dictionary_map);
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.h ('k') | chrome/common/extensions/extension_message_bundle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698