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

Unified Diff: base/i18n/rtl.cc

Issue 232773008: More removal of GTK code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: base/i18n/rtl.cc
diff --git a/base/i18n/rtl.cc b/base/i18n/rtl.cc
index 84dc51fd5d6f05e0e38575c362da8eef3556c255..d878c40da025b8845f2dc3d227efd27b5f64f789 100644
--- a/base/i18n/rtl.cc
+++ b/base/i18n/rtl.cc
@@ -14,10 +14,6 @@
#include "third_party/icu/source/common/unicode/uscript.h"
#include "third_party/icu/source/i18n/unicode/coll.h"
-#if defined(TOOLKIT_GTK)
-#include <gtk/gtk.h>
-#endif
-
namespace {
// Extract language, country and variant, but ignore keywords. For example,
@@ -123,12 +119,7 @@ void SetICUDefaultLocale(const std::string& locale_string) {
}
bool IsRTL() {
-#if defined(TOOLKIT_GTK)
- GtkTextDirection gtk_dir = gtk_widget_get_default_direction();
- return gtk_dir == GTK_TEXT_DIR_RTL;
-#else
return ICUIsRTL();
-#endif
}
bool ICUIsRTL() {

Powered by Google App Engine
This is Rietveld 408576698