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

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

Issue 246573003: Move the flush in AppendCommandsToFile outside the loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | 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 fa51c884b4539bc00d6b264a09a1eba6c934e55a..9c214c80b886162b4c155d4fdd9ab6f029df1c90 100644
--- a/chrome/browser/sessions/session_backend.cc
+++ b/chrome/browser/sessions/session_backend.cc
@@ -333,12 +333,10 @@ bool SessionBackend::AppendCommandsToFile(base::File* 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->Flush();
+ file->Flush();
#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