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

Unified Diff: chrome/browser/chromeos/login/language_switch_menu.cc

Issue 8233029: More Aura fixes to build with chromeos==1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied sky's comments. Created 9 years, 2 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: chrome/browser/chromeos/login/language_switch_menu.cc
diff --git a/chrome/browser/chromeos/login/language_switch_menu.cc b/chrome/browser/chromeos/login/language_switch_menu.cc
index 2c0f370555300218faffdf8c2c88f0d3e2f053ac..80fa6df8d4b9fbbaaaee934a7bf6429091116b31 100644
--- a/chrome/browser/chromeos/login/language_switch_menu.cc
+++ b/chrome/browser/chromeos/login/language_switch_menu.cc
@@ -133,6 +133,7 @@ bool LanguageSwitchMenu::SwitchLanguage(const std::string& locale) {
// static
void LanguageSwitchMenu::LoadFontsForCurrentLocale() {
+#if defined(TOOLKIT_USES_GTK)
std::string gtkrc = l10n_util::GetStringUTF8(IDS_LOCALE_GTKRC);
// Read locale-specific gtkrc. Ideally we'd discard all the previously read
@@ -145,6 +146,10 @@ void LanguageSwitchMenu::LoadFontsForCurrentLocale() {
gtk_rc_parse_string(gtkrc.c_str());
else
gtk_rc_parse("/etc/gtk-2.0/gtkrc");
+#else
+ // TODO(saintlou): Need to figure out an Aura equivalent.
+ NOTIMPLEMENTED();
+#endif
// Switch the font.
gfx::PlatformFontPango::ReloadDefaultFont();
« no previous file with comments | « chrome/browser/chromeos/login/html_page_screen.cc ('k') | chrome/browser/chromeos/login/registration_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698