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

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

Issue 10270023: Add new ResourceBundle::Delegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « ui/aura/test/test_suite.cc ('k') | ui/base/resource/resource_bundle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util.cc
===================================================================
--- ui/base/l10n/l10n_util.cc (revision 135347)
+++ ui/base/l10n/l10n_util.cc (working copy)
@@ -240,7 +240,7 @@
if (!l10n_util::IsLocaleSupportedByOS(locale))
return false;
- return ResourceBundle::LocaleDataPakExists(locale);
+ return ResourceBundle::GetSharedInstance().LocaleDataPakExists(locale);
}
bool CheckAndResolveLocale(const std::string& locale,
@@ -446,9 +446,6 @@
return fallback_locale;
}
- // No locale data file was found; we shouldn't get here.
- NOTREACHED();
-
return std::string();
#endif
« no previous file with comments | « ui/aura/test/test_suite.cc ('k') | ui/base/resource/resource_bundle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698