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

Unified Diff: chrome/browser/sessions/session_backend.cc

Issue 15937015: This reverts the removal of a Flush that is correlated with file corruption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added TODO Created 7 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_backend.cc
diff --git a/chrome/browser/sessions/session_backend.cc b/chrome/browser/sessions/session_backend.cc
index 8b0d58dc9357f44a7fc428ce88b8d66af0f37199..9492b75bd56c9ca36396fa09bcbf690cc088eb05 100644
--- a/chrome/browser/sessions/session_backend.cc
+++ b/chrome/browser/sessions/session_backend.cc
@@ -337,6 +337,11 @@ bool SessionBackend::AppendCommandsToFile(net::FileStream* file,
return false;
}
}
+#if defined(OS_CHROMEOS)
+ // TODO(gspencer): Remove this once we find a better place to do it.
+ // See issue http://crbug.com/245015
+ file->FlushSync();
+#endif
}
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698