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

Unified Diff: google_apis/gcm/engine/heartbeat_manager.cc

Issue 1873663002: Convert //google_apis from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: google_apis/gcm/engine/heartbeat_manager.cc
diff --git a/google_apis/gcm/engine/heartbeat_manager.cc b/google_apis/gcm/engine/heartbeat_manager.cc
index c7ccea1f66a0ec497b5972b81cdf73d2e74d3cf9..83b9977d5b121b46155e41f08aee8464b7778693 100644
--- a/google_apis/gcm/engine/heartbeat_manager.cc
+++ b/google_apis/gcm/engine/heartbeat_manager.cc
@@ -122,7 +122,8 @@ base::TimeTicks HeartbeatManager::GetNextHeartbeatTime() const {
return base::TimeTicks();
}
-void HeartbeatManager::UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) {
+void HeartbeatManager::UpdateHeartbeatTimer(
+ std::unique_ptr<base::Timer> timer) {
bool was_running = heartbeat_timer_->IsRunning();
base::TimeDelta remaining_delay =
heartbeat_timer_->desired_run_time() - base::TimeTicks::Now();

Powered by Google App Engine
This is Rietveld 408576698