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

Unified Diff: ui/base/l10n/l10n_util_posix.cc

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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
« no previous file with comments | « ui/base/l10n/l10n_util_plurals.cc ('k') | ui/base/l10n/l10n_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util_posix.cc
diff --git a/ui/base/l10n/l10n_util_posix.cc b/ui/base/l10n/l10n_util_posix.cc
deleted file mode 100644
index 5c65977a59c9d883c1b7db4ae4aece88ef365491..0000000000000000000000000000000000000000
--- a/ui/base/l10n/l10n_util_posix.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <string>
-
-#if defined(OS_CHROMEOS)
-#include "base/basictypes.h"
-#include "base/strings/string_util.h"
-#endif
-
-namespace l10n_util {
-
-// Return true blindly for now.
-bool IsLocaleSupportedByOS(const std::string& locale) {
-#if !defined(OS_CHROMEOS)
- return true;
-#else
- // We don't have translations yet for am, and sw.
- // TODO(jungshik): Once the above issues are resolved, change this back
- // to return true.
- static const char* kUnsupportedLocales[] = {"am", "sw"};
- for (size_t i = 0; i < arraysize(kUnsupportedLocales); ++i) {
- if (LowerCaseEqualsASCII(locale, kUnsupportedLocales[i]))
- return false;
- }
- return true;
-#endif
-}
-
-} // namespace l10n_util
« no previous file with comments | « ui/base/l10n/l10n_util_plurals.cc ('k') | ui/base/l10n/l10n_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698