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

Unified Diff: components/page_load_metrics/renderer/page_timing_metrics_sender.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 years 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
Index: components/page_load_metrics/renderer/page_timing_metrics_sender.cc
diff --git a/components/page_load_metrics/renderer/page_timing_metrics_sender.cc b/components/page_load_metrics/renderer/page_timing_metrics_sender.cc
index 84fdb45a580674abf49c95efe40a5606792c3f01..52d87704aa3ee2ed79f2be6d7ff2acddf4f2e967 100644
--- a/components/page_load_metrics/renderer/page_timing_metrics_sender.cc
+++ b/components/page_load_metrics/renderer/page_timing_metrics_sender.cc
@@ -2,11 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/page_load_metrics/renderer/page_timing_metrics_sender.h"
+
+#include <utility>
+
#include "base/callback.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "components/page_load_metrics/common/page_load_metrics_messages.h"
-#include "components/page_load_metrics/renderer/page_timing_metrics_sender.h"
#include "ipc/ipc_sender.h"
namespace page_load_metrics {
@@ -18,7 +21,9 @@ const int kTimerDelayMillis = 1000;
PageTimingMetricsSender::PageTimingMetricsSender(IPC::Sender* ipc_sender,
int routing_id,
scoped_ptr<base::Timer> timer)
- : ipc_sender_(ipc_sender), routing_id_(routing_id), timer_(timer.Pass()) {}
+ : ipc_sender_(ipc_sender),
+ routing_id_(routing_id),
+ timer_(std::move(timer)) {}
// On destruction, we want to send any data we have if we have a timer
// currently running (and thus are talking to a browser process)

Powered by Google App Engine
This is Rietveld 408576698