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

Unified Diff: app/resource_bundle_win.cc

Issue 193047: Fix to use FilePath version of PathService::Get.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « no previous file | base/file_version_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/resource_bundle_win.cc
===================================================================
--- app/resource_bundle_win.cc (revision 25670)
+++ app/resource_bundle_win.cc (working copy)
@@ -74,14 +74,14 @@
void ResourceBundle::LoadThemeResources() {
DCHECK(NULL == theme_data_) << "theme dll already loaded";
- std::wstring theme_data_path;
+ FilePath theme_data_path;
PathService::Get(app::DIR_THEMES, &theme_data_path);
- file_util::AppendToPath(&theme_data_path, L"default.dll");
+ theme_data_path = theme_data_path.AppendASCII("default.dll");
// The dll should only have resources, not executable code.
- theme_data_ = LoadLibraryEx(theme_data_path.c_str(), NULL,
- GetDataDllLoadFlags());
- DCHECK(theme_data_ != NULL) << "unable to load " << theme_data_path;
+ theme_data_ = LoadLibraryEx(theme_data_path.value().c_str(), NULL,
+ GetDataDllLoadFlags());
+ DCHECK(theme_data_ != NULL) << "unable to load " << theme_data_path.value();
}
/* static */
« no previous file with comments | « no previous file | base/file_version_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698