OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/extensions/extension_localization_peer.h" | 5 #include "chrome/common/extensions/extension_localization_peer.h" |
6 | 6 |
7 #include "app/l10n_util.h" | |
8 #include "base/string_util.h" | 7 #include "base/string_util.h" |
9 #include "chrome/common/extensions/extension_message_bundle.h" | 8 #include "chrome/common/extensions/extension_message_bundle.h" |
10 #include "chrome/common/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
11 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
12 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
13 #include "grit/renderer_resources.h" | 12 #include "grit/renderer_resources.h" |
14 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
15 #include "net/http/http_response_headers.h" | 14 #include "net/http/http_response_headers.h" |
16 #include "webkit/glue/webkit_glue.h" | 15 #include "webkit/glue/webkit_glue.h" |
17 | 16 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 113 |
115 l10n_messages = GetL10nMessagesMap(extension_id); | 114 l10n_messages = GetL10nMessagesMap(extension_id); |
116 } | 115 } |
117 | 116 |
118 std::string error; | 117 std::string error; |
119 if (ExtensionMessageBundle::ReplaceMessagesWithExternalDictionary( | 118 if (ExtensionMessageBundle::ReplaceMessagesWithExternalDictionary( |
120 *l10n_messages, &data_, &error)) { | 119 *l10n_messages, &data_, &error)) { |
121 data_.resize(data_.size()); | 120 data_.resize(data_.size()); |
122 } | 121 } |
123 } | 122 } |
OLD | NEW |