summaryrefslogtreecommitdiff
path: root/chromium/base/i18n/timezone.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/i18n/timezone.h')
-rw-r--r--chromium/base/i18n/timezone.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chromium/base/i18n/timezone.h b/chromium/base/i18n/timezone.h
index f7fda941188..7557d44f364 100644
--- a/chromium/base/i18n/timezone.h
+++ b/chromium/base/i18n/timezone.h
@@ -11,9 +11,12 @@
namespace base {
-// Checks the system timezone and turns it into a two-character ASCII country
-// code. This may fail (for example, it will always fail on Android), in which
-// case it will return an empty string.
+// Checks the system timezone and turns it into a two-character ISO 3166 country
+// code. This may fail (for example, it used to always fail on Android), in
+// which case it will return an empty string. It'll also return an empty string
+// when the timezone is Etc/UTC or Etc/UCT, but will return 'GB" for Etc/GMT
+// because people in the UK tends to select Etc/GMT by mistake instead of
+// Europe/London (British Time).
BASE_I18N_EXPORT std::string CountryCodeForCurrentTimezone();
} // namespace base