Chromium Code Reviews

Unified Diff: webrtc/base/file.cc

Issue 2558693002: Add WriteIsolatedOutput() functions (Closed)
Patch Set: Resolve review comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « webrtc/base/file.h ('k') | webrtc/base/file_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/file.cc
diff --git a/webrtc/base/file.cc b/webrtc/base/file.cc
index 8b5df9e9be4f74ae31cac62ff80aa340323bfad5..983eb8b8da673fdb849b87c0782dcaa9d67e6f36 100644
--- a/webrtc/base/file.cc
+++ b/webrtc/base/file.cc
@@ -61,6 +61,21 @@ File File::Create(const Pathname& path) {
return Create(Pathname(path));
}
+// static
+bool File::Remove(const std::string& path) {
+ return RemoveFile(path);
+}
+
+// static
+bool File::Remove(Pathname&& path) {
+ return Remove(NormalizePathname(std::move(path)));
+}
+
+// static
+bool File::Remove(const Pathname& path) {
+ return Remove(Pathname(path));
+}
+
File::File(File&& other) : file_(other.file_) {
other.file_ = kInvalidPlatformFileValue;
}
« no previous file with comments | « webrtc/base/file.h ('k') | webrtc/base/file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine