Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Unified Diff: ui/base/l10n/l10n_util.h

Issue 23095006: If user profile doesn't contain language setting, default to his Google account settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix shared build. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/l10n/l10n_util.h
diff --git a/ui/base/l10n/l10n_util.h b/ui/base/l10n/l10n_util.h
index 7c26b80346714764111bdb1039333808b662eec3..ac0e9d7b1a1edde3ff51b3377d14e0069431c950 100644
--- a/ui/base/l10n/l10n_util.h
+++ b/ui/base/l10n/l10n_util.h
@@ -21,6 +21,12 @@
namespace l10n_util {
+#if !defined(OS_MACOSX)
+// This method translates generic locale name to one of locally defined ones.
+// Returns true if succeeded.
+UI_EXPORT bool CheckAndResolveLocale(const std::string& locale,
+ std::string* resolved_locale);
+#endif
// This method is responsible for determining the locale as defined below. In
// nearly all cases you shouldn't call this, rather use GetApplicationLocale
// defined on browser_process.

Powered by Google App Engine
This is Rietveld 408576698