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

Unified Diff: ui/base/resource/resource_bundle.h

Issue 457103003: Merge ResourceBundle's InitSharedInstanceLocaleOnly with InitSharedInstanceWithLocale(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « remoting/base/resources_mac.cc ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle.h
diff --git a/ui/base/resource/resource_bundle.h b/ui/base/resource/resource_bundle.h
index b0e9cdb1738bf4fa6df2c116e1929eb90eff3ad4..e552ee62099a5ac89cf5fe2d1b5adcd248624858 100644
--- a/ui/base/resource/resource_bundle.h
+++ b/ui/base/resource/resource_bundle.h
@@ -124,13 +124,12 @@ class UI_BASE_EXPORT ResourceBundle {
// There is no way to specify which resource files are loaded, i.e. names of
// the files are hardcoded in ResourceBundle. Fix it to allow to specify which
// files are loaded (e.g. add a new method in Delegate).
+ // |should_load_common_resources| controls whether or not LoadCommonResources
+ // is called.
static std::string InitSharedInstanceWithLocale(
- const std::string& pref_locale, Delegate* delegate);
-
- // Same as InitSharedInstanceWithLocale(), but loads only localized resources,
- // without default resource packs.
- static std::string InitSharedInstanceLocaleOnly(
- const std::string& pref_locale, Delegate* delegate);
+ const std::string& pref_locale,
+ Delegate* delegate,
+ bool should_load_common_resources);
tony 2014/08/11 16:25:56 It would be better if this were an enum { LOAD_COM
tfarina 2014/08/12 04:01:01 Done.
// Initialize the ResourceBundle using the given file region. If |region| is
// MemoryMappedFile::Region::kWholeFile, the entire |pak_file| is used.
« no previous file with comments | « remoting/base/resources_mac.cc ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698