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

Unified Diff: ui/views/view_unittest.cc

Issue 1464503002: Fix resource-related issues in views_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make views_unittests independent from locale pak files Created 5 years, 1 month 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/views/controls/textfield/textfield_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_unittest.cc
diff --git a/ui/views/view_unittest.cc b/ui/views/view_unittest.cc
index cabf5d491bdd61a2b63acfd2777d1fc1247d6de9..c65eb9b6ce99dbd5c2163827ac66aaa5bce766fa 100644
--- a/ui/views/view_unittest.cc
+++ b/ui/views/view_unittest.cc
@@ -4,6 +4,7 @@
#include <map>
+#include "base/i18n/rtl.h"
#include "base/memory/scoped_ptr.h"
#include "base/rand_util.h"
#include "base/strings/string_util.h"
@@ -182,7 +183,7 @@ void ScrambleTree(views::View* view) {
class ScopedRTL {
public:
ScopedRTL() {
- locale_ = l10n_util::GetApplicationLocale(std::string());
+ locale_ = base::i18n::GetConfiguredLocale();
base::i18n::SetICUDefaultLocale("he");
}
~ScopedRTL() { base::i18n::SetICUDefaultLocale(locale_); }
« no previous file with comments | « ui/views/controls/textfield/textfield_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698