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

Unified Diff: net/disk_cache/cache_util_win.cc

Issue 3781009: Move the windows-specific scoped_* stuff from base to base/win and in the bas... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« chrome/installer/util/wmi.cc ('K') | « chrome_frame/chrome_frame_activex.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/cache_util_win.cc
===================================================================
--- net/disk_cache/cache_util_win.cc (revision 62693)
+++ net/disk_cache/cache_util_win.cc (working copy)
@@ -8,7 +8,6 @@
#include "base/logging.h"
#include "base/message_loop.h"
-#include "base/scoped_handle.h"
#include "base/file_util.h"
namespace {
@@ -19,8 +18,8 @@
file_util::AppendToPath(&name, search_name);
WIN32_FIND_DATA data;
- ScopedFindFileHandle handle(FindFirstFile(name.c_str(), &data));
- if (!handle.IsValid())
+ HANDLE handle = FindFirstFile(name.c_str(), &data);
+ if (handle == INVALID_HANDLE_VALUE)
return;
std::wstring adjusted_path(path);
@@ -33,6 +32,8 @@
current += data.cFileName;
DeleteFile(current.c_str());
} while (FindNextFile(handle, &data));
+
+ FindClose(handle);
}
} // namespace
« chrome/installer/util/wmi.cc ('K') | « chrome_frame/chrome_frame_activex.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698