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

Unified Diff: remoting/host/backoff_timer.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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
« no previous file with comments | « remoting/host/audio_pump_unittest.cc ('k') | remoting/host/backoff_timer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/backoff_timer.h
diff --git a/remoting/host/backoff_timer.h b/remoting/host/backoff_timer.h
index a75a8d30bdf38616be69099bda8df1208f8a4705..5f4ab36e039bf5836e64b11c6b822d288cf124ab 100644
--- a/remoting/host/backoff_timer.h
+++ b/remoting/host/backoff_timer.h
@@ -5,9 +5,10 @@
#ifndef REMOTING_HOST_BACKOFF_TIMER_H_
#define REMOTING_HOST_BACKOFF_TIMER_H_
+#include <memory>
+
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/timer/timer.h"
#include "net/base/backoff_entry.h"
@@ -33,17 +34,17 @@ class BackoffTimer {
// Returns true if the user task may be invoked in the future.
bool IsRunning() const { return !!backoff_entry_; }
- void SetTimerForTest(scoped_ptr<base::Timer> timer);
+ void SetTimerForTest(std::unique_ptr<base::Timer> timer);
private:
void StartTimer();
void OnTimerFired();
- scoped_ptr<base::Timer> timer_;
+ std::unique_ptr<base::Timer> timer_;
base::Closure user_task_;
tracked_objects::Location posted_from_;
net::BackoffEntry::Policy backoff_policy_ = {};
- scoped_ptr<net::BackoffEntry> backoff_entry_;
+ std::unique_ptr<net::BackoffEntry> backoff_entry_;
DISALLOW_COPY_AND_ASSIGN(BackoffTimer);
};
« no previous file with comments | « remoting/host/audio_pump_unittest.cc ('k') | remoting/host/backoff_timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698