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

Side by Side Diff: trunk/src/ui/base/l10n/l10n_util_posix.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/ui/base/l10n/l10n_util.cc ('k') | trunk/src/ui/base/l10n/l10n_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 5 #include <string>
6 6
7 #if defined(OS_CHROMEOS) 7 #if defined(OS_CHROMEOS)
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #endif 10 #endif
11 11
12 namespace l10n_util { 12 namespace l10n_util {
13 13
14 // Return true blindly for now. 14 // Return true blindly for now.
15 bool IsLocaleSupportedByOS(const std::string& locale) { 15 bool IsLocaleSupportedByOS(const std::string& locale) {
16 #if !defined(OS_CHROMEOS) 16 #if !defined(OS_CHROMEOS)
17 return true; 17 return true;
18 #else 18 #else
19 // We don't have translations yet for am, and sw. 19 // We don't have translations yet for am, and sw.
20 // TODO(jungshik): Once the above issues are resolved, change this back 20 // TODO(jungshik): Once the above issues are resolved, change this back
21 // to return true. 21 // to return true.
22 static const char* kUnsupportedLocales[] = {"am", "sw"}; 22 static const char* kUnsupportedLocales[] = {"am", "sw"};
23 for (size_t i = 0; i < arraysize(kUnsupportedLocales); ++i) { 23 for (size_t i = 0; i < arraysize(kUnsupportedLocales); ++i) {
24 if (base::LowerCaseEqualsASCII(locale, kUnsupportedLocales[i])) 24 if (LowerCaseEqualsASCII(locale, kUnsupportedLocales[i]))
25 return false; 25 return false;
26 } 26 }
27 return true; 27 return true;
28 #endif 28 #endif
29 } 29 }
30 30
31 } // namespace l10n_util 31 } // namespace l10n_util
OLDNEW
« no previous file with comments | « trunk/src/ui/base/l10n/l10n_util.cc ('k') | trunk/src/ui/base/l10n/l10n_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698