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

Side by Side Diff: net/disk_cache/cache_util_win.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 <windows.h> 7 #include <windows.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool DeleteCacheFile(const FilePath& name) { 58 bool DeleteCacheFile(const FilePath& name) {
59 // We do a simple delete, without ever falling back to SHFileOperation, as the 59 // We do a simple delete, without ever falling back to SHFileOperation, as the
60 // version from base does. 60 // version from base does.
61 return DeleteFile(name.value().c_str()) ? true : false; 61 return DeleteFile(name.value().c_str()) ? true : false;
62 } 62 }
63 63
64 void DeleteCache(const std::wstring& path, bool remove_folder) { 64 void DeleteCache(const std::wstring& path, bool remove_folder) {
65 DeleteCache(FilePath::FromWStringHack(path), remove_folder); 65 DeleteCache(FilePath::FromWStringHack(path), remove_folder);
66 } 66 }
67 67
68 bool DeleteCacheFile(const std::wstring& name) {
69 return DeleteCacheFile(FilePath::FromWStringHack(name));
70 }
71
72 } // namespace disk_cache 68 } // namespace disk_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698