summaryrefslogtreecommitdiffstats
path: root/base/file_util_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util_mac.mm')
-rw-r--r--base/file_util_mac.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/file_util_mac.mm b/base/file_util_mac.mm
index bb4975d..0638167 100644
--- a/base/file_util_mac.mm
+++ b/base/file_util_mac.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/file_path.h"
+#include "base/mac/foundation_util.h"
#include "base/string_util.h"
#include "base/threading/thread_restrictions.h"
@@ -18,7 +19,7 @@ bool GetTempDir(FilePath* path) {
NSString* tmp = NSTemporaryDirectory();
if (tmp == nil)
return false;
- *path = FilePath([tmp fileSystemRepresentation]);
+ *path = base::mac::NSStringToFilePath(tmp);
return true;
}