Chromium Code Reviews| Index: chrome/browser/renderer_host/chrome_render_message_filter.cc |
| diff --git a/chrome/browser/renderer_host/chrome_render_message_filter.cc b/chrome/browser/renderer_host/chrome_render_message_filter.cc |
| index b7f1cfe1bc646992679b1549b3252042188cb47f..21ac9d6e519cd8cadb2986adbafb54b028712f49 100644 |
| --- a/chrome/browser/renderer_host/chrome_render_message_filter.cc |
| +++ b/chrome/browser/renderer_host/chrome_render_message_filter.cc |
| @@ -321,25 +321,14 @@ void ChromeRenderMessageFilter::OnGetExtensionMessageBundleOnFileThread( |
| IPC::Message* reply_msg) { |
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); |
| - std::map<std::string, std::string> dictionary_map; |
| - if (!default_locale.empty()) { |
| - // Touch disk only if extension is localized. |
| - std::string error; |
| - scoped_ptr<ExtensionMessageBundle> bundle( |
| - extension_file_util::LoadExtensionMessageBundle( |
| - extension_path, default_locale, &error)); |
| - |
| - if (bundle.get()) |
| - 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)); |
| + scoped_ptr<std::map<std::string, std::string> > dictionary_map( |
|
Nebojša Ćirić
2011/08/16 17:40:24
Is it possible to use ExtensionSet::ExtensionPathA
adriansc
2011/08/16 22:13:51
Changed return type to ExtensionMessageBundle::Sub
|
| + extension_file_util::LoadExtensionMessageBundleSubstitutionMap( |
| + extension_path, |
| + extension_id, |
| + default_locale)); |
| ExtensionHostMsg_GetMessageBundle::WriteReplyParams( |
| - reply_msg, dictionary_map); |
| + reply_msg, *dictionary_map); |
| Send(reply_msg); |
| } |