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

Unified Diff: chrome/renderer/resources/extension_process_bindings.js

Issue 225009: Implementing chrome.i18n.getMessage call, that loads message from the extensi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/renderer/resources/extension_process_bindings.js
===================================================================
--- chrome/renderer/resources/extension_process_bindings.js (revision 27238)
+++ chrome/renderer/resources/extension_process_bindings.js (working copy)
@@ -20,6 +20,7 @@
native function GetNextRequestId();
native function OpenChannelToTab();
native function GetRenderViewId();
+ native function GetL10nMessage();
if (!chrome)
chrome = {};
@@ -316,6 +317,11 @@
return tabIdProxy;
}
+ apiFunctions["i18n.getMessage"].handleRequest =
+ function(message_name, placeholders) {
+ return GetL10nMessage(message_name, placeholders);
+ }
+
setupPageActionEvents(extensionId);
setupToolstripEvents(GetRenderViewId());
});

Powered by Google App Engine
This is Rietveld 408576698