This source file includes following definitions.
- IsLocaleSupportedByOS
#include <string>
#if defined(OS_CHROMEOS)
#include "base/basictypes.h"
#include "base/strings/string_util.h"
#endif
namespace l10n_util {
bool IsLocaleSupportedByOS(const std::string& locale) {
#if !defined(OS_CHROMEOS)
return true;
#else
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
}
}