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

Side by Side Diff: net/disk_cache/cache_util_posix.cc

Issue 274012: Convert BlockFiles to use FilePath instead of wstring. (Closed)
Patch Set: rebase Created 11 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/disk_cache/cache_util.h" 5 #include "net/disk_cache/cache_util.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 10
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 bool DeleteCacheFile(const FilePath& name) { 33 bool DeleteCacheFile(const FilePath& name) {
34 return file_util::Delete(name, false); 34 return file_util::Delete(name, false);
35 } 35 }
36 36
37 void DeleteCache(const std::wstring& path, bool remove_folder) { 37 void DeleteCache(const std::wstring& path, bool remove_folder) {
38 DeleteCache(FilePath::FromWStringHack(path), remove_folder); 38 DeleteCache(FilePath::FromWStringHack(path), remove_folder);
39 } 39 }
40 40
41 bool DeleteCacheFile(const std::wstring& name) {
42 return DeleteCacheFile(FilePath::FromWStringHack(name));
43 }
44
45 } // namespace disk_cache 41 } // namespace disk_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698