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

Unified Diff: chrome/renderer/render_thread.cc

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/render_thread.cc
===================================================================
--- chrome/renderer/render_thread.cc (revision 27238)
+++ chrome/renderer/render_thread.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/renderer/render_thread.h"
#include <algorithm>
+#include <map>
#include <vector>
#include "base/command_line.h"
@@ -238,6 +239,12 @@
ExtensionProcessBindings::SetHostPermissions(extension_url, permissions);
}
+void RenderThread::OnExtensionSetL10nMessages(
+ const std::string& extension_id,
+ const std::map<std::string, std::string>& l10n_messages) {
+ ExtensionProcessBindings::SetL10nMessages(extension_id, l10n_messages);
+}
+
void RenderThread::OnControlMessageReceived(const IPC::Message& msg) {
// App cache messages are handled by a delegate.
if (appcache_dispatcher_->OnMessageReceived(msg))
@@ -273,6 +280,8 @@
OnExtensionSetAPIPermissions)
IPC_MESSAGE_HANDLER(ViewMsg_Extension_SetHostPermissions,
OnExtensionSetHostPermissions)
+ IPC_MESSAGE_HANDLER(ViewMsg_Extension_SetL10nMessages,
+ OnExtensionSetL10nMessages)
IPC_END_MESSAGE_MAP()
}

Powered by Google App Engine
This is Rietveld 408576698