diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-12 21:11:45 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-12 21:11:45 +0000 |
commit | c0336d30f5a822ebc55a49f019e00a2104aced18 (patch) | |
tree | 16bd873562d7de18bdd6c17333cc2d9e12b8f69c /app/resource_bundle_win.cc | |
parent | f36d009a08cb5eaddde1e3c891b793b1c5b3495e (diff) | |
download | chromium_src-c0336d30f5a822ebc55a49f019e00a2104aced18.zip chromium_src-c0336d30f5a822ebc55a49f019e00a2104aced18.tar.gz chromium_src-c0336d30f5a822ebc55a49f019e00a2104aced18.tar.bz2 |
Cleanup: Put #ifdefed typedef below non-#ifdefed declarations. Reorder definitions to match declarations. Use STL util function. Eliminate pointless comment.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6224005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/resource_bundle_win.cc')
-rw-r--r-- | app/resource_bundle_win.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/resource_bundle_win.cc b/app/resource_bundle_win.cc index 865f903..89a68e1 100644 --- a/app/resource_bundle_win.cc +++ b/app/resource_bundle_win.cc @@ -41,14 +41,6 @@ ResourceBundle::~ResourceBundle() { resources_data_ = NULL; } -void ResourceBundle::UnloadLocaleResources() { - if (locale_resources_data_) { - BOOL rv = FreeLibrary(locale_resources_data_); - DCHECK(rv); - locale_resources_data_ = NULL; - } -} - void ResourceBundle::LoadCommonResources() { // As a convenience, set resources_data_ to the current resource module. DCHECK(NULL == resources_data_) << "common resources already loaded"; @@ -75,6 +67,14 @@ std::string ResourceBundle::LoadLocaleResources( return app_locale; } +void ResourceBundle::UnloadLocaleResources() { + if (locale_resources_data_) { + BOOL rv = FreeLibrary(locale_resources_data_); + DCHECK(rv); + locale_resources_data_ = NULL; + } +} + // static FilePath ResourceBundle::GetLocaleFilePath(const std::string& app_locale) { FilePath locale_path; |