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

Unified Diff: webrtc/base/file_win.cc

Issue 2347473003: Removing, opening and creating files in platform_file and file (Closed)
Patch Set: Comments Created 4 years, 3 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
« no previous file with comments | « webrtc/base/file_unittest.cc ('k') | webrtc/base/platform_file.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/file_win.cc
diff --git a/webrtc/base/file_win.cc b/webrtc/base/file_win.cc
index 72a680c88f4b14a7e91fee8d6b6f02b4ff1bb659..71e6effde641141143c5fc0b8474f20241fdab45 100644
--- a/webrtc/base/file_win.cc
+++ b/webrtc/base/file_win.cc
@@ -19,13 +19,6 @@
namespace rtc {
-File File::Open(const std::string& path) {
- HANDLE handle =
- ::CreateFile(ToUtf16(path).c_str(), GENERIC_READ | GENERIC_WRITE, 0,
- nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
- return File(handle);
-}
-
size_t File::Write(const uint8_t* data, size_t length) {
RTC_DCHECK_LT(length, std::numeric_limits<DWORD>::max());
size_t total_written = 0;
« no previous file with comments | « webrtc/base/file_unittest.cc ('k') | webrtc/base/platform_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698