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

Unified Diff: client/settings.cc

Issue 1001713002: Use new ScopedGeneric move support. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 9 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 | util/mach/child_port_handshake.cc » ('j') | util/mach/child_port_handshake.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/settings.cc
diff --git a/client/settings.cc b/client/settings.cc
index ca101d2d89dc2ae17cf287381428dace2e5a8f72..b4e5f434b44e12a60e85a46665c585d0774d7df9 100644
--- a/client/settings.cc
+++ b/client/settings.cc
@@ -216,7 +216,7 @@ bool Settings::WriteSettings(FileHandle handle, const Data& data) {
bool Settings::RecoverSettings(FileHandle handle, Data* out_data) {
ScopedFileHandle scoped_handle;
if (handle == kInvalidFileHandle) {
- scoped_handle.reset(OpenForReadingAndWriting().release());
+ scoped_handle = OpenForReadingAndWriting();
handle = scoped_handle.get();
// Test if the file has already been recovered now that the exclusive lock
« no previous file with comments | « no previous file | util/mach/child_port_handshake.cc » ('j') | util/mach/child_port_handshake.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698