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

Unified Diff: handler/prune_crash_reports_thread.cc

Issue 1562793002: Use std::move() in PruneCrashReportThread (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 4 years, 11 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: handler/prune_crash_reports_thread.cc
diff --git a/handler/prune_crash_reports_thread.cc b/handler/prune_crash_reports_thread.cc
index be3631f36e65a683d2fa070269614c9fa3761da0..e6f3a8b02649ff83559c977d0200b64e62c5e2e6 100644
--- a/handler/prune_crash_reports_thread.cc
+++ b/handler/prune_crash_reports_thread.cc
@@ -14,6 +14,8 @@
#include "handler/prune_crash_reports_thread.h"
+#include <utility>
+
#include "client/prune_crash_reports.h"
namespace crashpad {
@@ -22,7 +24,7 @@ PruneCrashReportThread::PruneCrashReportThread(
CrashReportDatabase* database,
scoped_ptr<PruneCondition> condition)
: thread_(60 * 60 * 24, this),
- condition_(condition.Pass()),
+ condition_(std::move(condition)),
database_(database) {}
PruneCrashReportThread::~PruneCrashReportThread() {}
« 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