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

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

Issue 16206002: Add more support for FreeBSD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use os_posix and exclude other platforms as needed 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.cc
diff --git a/ui/base/l10n/l10n_util.cc b/ui/base/l10n/l10n_util.cc
index 513a615a14166e5e335b59203ab5899e1f7e4402..bffb898ecb6b58a5262fda4c83eed46573c7b646 100644
--- a/ui/base/l10n/l10n_util.cc
+++ b/ui/base/l10n/l10n_util.cc
@@ -35,7 +35,8 @@
#include "ui/base/l10n/l10n_util_android.h"
#endif
-#if defined(OS_LINUX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) && \
+ !defined(OS_NACL)
#include <glib.h>
#endif
@@ -452,7 +453,7 @@ std::string GetApplicationLocale(const std::string& pref_locale) {
// On Android, query java.util.Locale for the default locale.
candidates.push_back(GetDefaultLocale());
-#elif defined(OS_LINUX)
+#elif defined(OS_POSIX) && !defined(OS_NACL)
// If we're on a different Linux system, we have glib.
// GLib implements correct environment variable parsing with
« chrome/browser/chrome_content_browser_client.cc ('K') | « tools/clang/scripts/plugin_flags.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698