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

Unified Diff: base/files/file.cc

Issue 231703002: Base: Make FileProxy automaticaly close the file on a worker thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix initialization order Created 6 years, 8 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 | « no previous file | base/files/file_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file.cc
diff --git a/base/files/file.cc b/base/files/file.cc
index 2a2f84330ea9b4e32050ff9e1d2fca0200037086..da261d625bd411221a9ffee6cacdf9e70de632b6 100644
--- a/base/files/file.cc
+++ b/base/files/file.cc
@@ -60,6 +60,8 @@ File::File(RValue other)
}
File::~File() {
+ // Go through the AssertIOAllowed logic.
+ Close();
}
File& File::operator=(RValue other) {
« no previous file with comments | « no previous file | base/files/file_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698