| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/message_bundle.h" | 5 #include "extensions/common/message_bundle.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| 11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| 12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "base/strings/string_util.h" |
| 16 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/values.h" | 19 #include "base/values.h" |
| 19 #include "chrome/common/extensions/extension_l10n_util.h" | |
| 20 #include "extensions/common/error_utils.h" | 20 #include "extensions/common/error_utils.h" |
| 21 #include "extensions/common/extension_l10n_util.h" |
| 21 #include "extensions/common/manifest_constants.h" | 22 #include "extensions/common/manifest_constants.h" |
| 22 #include "ui/base/l10n/l10n_util.h" | |
| 23 | 23 |
| 24 namespace extensions { | 24 namespace extensions { |
| 25 | 25 |
| 26 namespace errors = manifest_errors; | 26 namespace errors = manifest_errors; |
| 27 | 27 |
| 28 const char* MessageBundle::kContentKey = "content"; | 28 const char* MessageBundle::kContentKey = "content"; |
| 29 const char* MessageBundle::kMessageKey = "message"; | 29 const char* MessageBundle::kMessageKey = "message"; |
| 30 const char* MessageBundle::kPlaceholdersKey = "placeholders"; | 30 const char* MessageBundle::kPlaceholdersKey = "placeholders"; |
| 31 | 31 |
| 32 const char* MessageBundle::kPlaceholderBegin = "$"; | 32 const char* MessageBundle::kPlaceholderBegin = "$"; |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 return &(it->second); | 339 return &(it->second); |
| 340 | 340 |
| 341 return NULL; | 341 return NULL; |
| 342 } | 342 } |
| 343 | 343 |
| 344 void EraseL10nMessagesMap(const std::string& extension_id) { | 344 void EraseL10nMessagesMap(const std::string& extension_id) { |
| 345 g_extension_to_messages_map.Get().messages_map.erase(extension_id); | 345 g_extension_to_messages_map.Get().messages_map.erase(extension_id); |
| 346 } | 346 } |
| 347 | 347 |
| 348 } // namespace extensions | 348 } // namespace extensions |
| OLD | NEW |