OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser/extensions/extension_l10n_util.h" | 5 #include "chrome/browser/extensions/extension_l10n_util.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/extensions/extension_message_bundle.h" | |
16 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
17 #include "chrome/common/extensions/extension_constants.h" | 16 #include "chrome/common/extensions/extension_constants.h" |
| 17 #include "chrome/common/extensions/extension_message_bundle.h" |
18 #include "chrome/common/json_value_serializer.h" | 18 #include "chrome/common/json_value_serializer.h" |
19 | 19 |
20 namespace errors = extension_manifest_errors; | 20 namespace errors = extension_manifest_errors; |
21 namespace keys = extension_manifest_keys; | 21 namespace keys = extension_manifest_keys; |
22 | 22 |
23 namespace extension_l10n_util { | 23 namespace extension_l10n_util { |
24 | 24 |
25 std::string GetDefaultLocaleFromManifest(const DictionaryValue& manifest, | 25 std::string GetDefaultLocaleFromManifest(const DictionaryValue& manifest, |
26 std::string* error) { | 26 std::string* error) { |
27 std::string default_locale; | 27 std::string default_locale; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 app_catalog.reset(new DictionaryValue); | 138 app_catalog.reset(new DictionaryValue); |
139 error->clear(); | 139 error->clear(); |
140 } | 140 } |
141 | 141 |
142 return ExtensionMessageBundle::Create(*default_catalog, | 142 return ExtensionMessageBundle::Create(*default_catalog, |
143 *app_catalog, | 143 *app_catalog, |
144 error); | 144 error); |
145 } | 145 } |
146 | 146 |
147 } // namespace extension_l10n_util | 147 } // namespace extension_l10n_util |
OLD | NEW |