summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_l10n_util.h
diff options
context:
space:
mode:
authorgroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 19:49:13 +0000
committergroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 19:49:13 +0000
commitea03f782964ebb5f2692b7aa48328bad623a35d6 (patch)
tree7811be6f6e3e061f0dd9af47f3ce22ffe4c55624 /chrome/common/extensions/extension_l10n_util.h
parent367dcafc13c988c7e48de403eb685a105d9284f6 (diff)
downloadchromium_src-ea03f782964ebb5f2692b7aa48328bad623a35d6.zip
chromium_src-ea03f782964ebb5f2692b7aa48328bad623a35d6.tar.gz
chromium_src-ea03f782964ebb5f2692b7aa48328bad623a35d6.tar.bz2
[Web Intents] Localization of intent titles for CWS suggestions
This is a re-upload of patch from issue 10790087, which got reverted for a memory leak in the tests. This CL fixes the test. R=mpcomplete@chromium.org,gbillock@chromium.org BUG=130432 TEST=CWSIntentsRegistryTest.LocalizeMatchingLocale:ExtensionL10nUtil.GetAllFallbackLocales:ExtensionL10nUtil.LoadMessageCatalogs* Review URL: https://chromiumcodereview.appspot.com/10828085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149472 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_l10n_util.h')
-rw-r--r--chrome/common/extensions/extension_l10n_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_l10n_util.h b/chrome/common/extensions/extension_l10n_util.h
index 1ccf6c3..a080693 100644
--- a/chrome/common/extensions/extension_l10n_util.h
+++ b/chrome/common/extensions/extension_l10n_util.h
@@ -68,6 +68,13 @@ std::string CurrentLocaleOrDefault();
// proper fallback.
void GetAllLocales(std::set<std::string>* all_locales);
+// Provides a vector of all fallback locales for message localization.
+// The vector is ordered by priority of locale - |application_locale|,
+// first_parent, ..., |default_locale|.
+void GetAllFallbackLocales(const std::string& application_locale,
+ const std::string& default_locale,
+ std::vector<std::string>* all_fallback_locales);
+
// Adds valid locales to the extension.
// 1. Do nothing if _locales directory is missing (not an error).
// 2. Get list of Chrome locales.