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

Unified Diff: remoting/host/gcd_state_updater.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/gcd_rest_client_unittest.cc ('k') | remoting/host/gcd_state_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/gcd_state_updater.h
diff --git a/remoting/host/gcd_state_updater.h b/remoting/host/gcd_state_updater.h
index 9801103db659cfa562d5032cb6d106d8db3d74c2..fda54c2b4ec24bfe2d27323a231c773b36a8798a 100644
--- a/remoting/host/gcd_state_updater.h
+++ b/remoting/host/gcd_state_updater.h
@@ -5,11 +5,11 @@
#ifndef REMOTING_HOST_GCD_STATE_UPDATER_H_
#define REMOTING_HOST_GCD_STATE_UPDATER_H_
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
#include "remoting/host/backoff_timer.h"
#include "remoting/host/gcd_rest_client.h"
@@ -37,7 +37,7 @@ class GcdStateUpdater : public SignalStrategy::Listener {
GcdStateUpdater(const base::Closure& on_update_successful_callback,
const base::Closure& on_unknown_host_id_error,
SignalStrategy* signal_strategy,
- scoped_ptr<GcdRestClient> gcd_client);
+ std::unique_ptr<GcdRestClient> gcd_client);
~GcdStateUpdater() override;
// See HeartbeatSender::SetHostOfflineReason.
@@ -57,7 +57,7 @@ class GcdStateUpdater : public SignalStrategy::Listener {
base::Closure on_update_successful_callback_;
base::Closure on_unknown_host_id_error_;
SignalStrategy* signal_strategy_;
- scoped_ptr<GcdRestClient> gcd_rest_client_;
+ std::unique_ptr<GcdRestClient> gcd_rest_client_;
BackoffTimer timer_;
base::ThreadChecker thread_checker_;
std::string pending_request_jid_;
« no previous file with comments | « remoting/host/gcd_rest_client_unittest.cc ('k') | remoting/host/gcd_state_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698