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

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. 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.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
This is Rietveld 408576698