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

Unified Diff: base/base_paths_mac.mm

Issue 11252: Move more code to using FilePath. (Closed)
Patch Set: rebased Created 12 years, 1 month 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 | « base/base_paths_linux.cc ('k') | base/base_paths_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_paths_mac.mm
diff --git a/base/base_paths_mac.mm b/base/base_paths_mac.mm
index b9830513e1e4014469876184668cbc64cc108219..5dbbe30751e2cf6d7858c33718461a7ffa425fa1 100644
--- a/base/base_paths_mac.mm
+++ b/base/base_paths_mac.mm
@@ -13,7 +13,7 @@
namespace base {
-bool PathProviderMac(int key, std::wstring* result) {
+bool PathProviderMac(int key, FilePath* result) {
std::wstring cur;
switch (key) {
case base::FILE_EXE:
@@ -49,7 +49,7 @@ bool PathProviderMac(int key, std::wstring* result) {
return false;
}
- result->swap(cur);
+ *result = FilePath::FromWStringHack(cur);
return true;
}
« no previous file with comments | « base/base_paths_linux.cc ('k') | base/base_paths_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698