| Index: ui/base/resource/resource_bundle.cc
|
| diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
|
| index c7e6834586bbde2c0e70cd6e9b46081ead31db2b..77abda294619bd0a6bde1349099a4ed11b776d22 100644
|
| --- a/ui/base/resource/resource_bundle.cc
|
| +++ b/ui/base/resource/resource_bundle.cc
|
| @@ -164,18 +164,12 @@ class ResourceBundle::ResourceBundleImageSource : public gfx::ImageSkiaSource {
|
|
|
| // static
|
| std::string ResourceBundle::InitSharedInstanceWithLocale(
|
| - const std::string& pref_locale, Delegate* delegate) {
|
| - InitSharedInstance(delegate);
|
| - g_shared_instance_->LoadCommonResources();
|
| - std::string result = g_shared_instance_->LoadLocaleResources(pref_locale);
|
| - InitDefaultFontList();
|
| - return result;
|
| -}
|
| -
|
| -// static
|
| -std::string ResourceBundle::InitSharedInstanceLocaleOnly(
|
| - const std::string& pref_locale, Delegate* delegate) {
|
| + const std::string& pref_locale,
|
| + Delegate* delegate,
|
| + bool should_load_common_resources) {
|
| InitSharedInstance(delegate);
|
| + if (should_load_common_resources)
|
| + g_shared_instance_->LoadCommonResources();
|
| std::string result = g_shared_instance_->LoadLocaleResources(pref_locale);
|
| InitDefaultFontList();
|
| return result;
|
| @@ -190,8 +184,7 @@ void ResourceBundle::InitSharedInstanceWithPakFileRegion(
|
| if (should_load_common_resources)
|
| g_shared_instance_->LoadCommonResources();
|
|
|
| - scoped_ptr<DataPack> data_pack(
|
| - new DataPack(SCALE_FACTOR_100P));
|
| + scoped_ptr<DataPack> data_pack(new DataPack(SCALE_FACTOR_100P));
|
| if (!data_pack->LoadFromFileRegion(pak_file.Pass(), region)) {
|
| NOTREACHED() << "failed to load pak file";
|
| return;
|
|
|