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

Unified Diff: remoting/host/gcd_state_updater.cc

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_state_updater.h ('k') | remoting/host/gcd_state_updater_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/gcd_state_updater.cc
diff --git a/remoting/host/gcd_state_updater.cc b/remoting/host/gcd_state_updater.cc
index c6cc22a4ed12f4d23c247dd2b338b1257254a7a2..d7d57c9005ff073b3d4e5a76b697b09654c0257e 100644
--- a/remoting/host/gcd_state_updater.cc
+++ b/remoting/host/gcd_state_updater.cc
@@ -28,7 +28,7 @@ GcdStateUpdater::GcdStateUpdater(
const base::Closure& on_update_successful_callback,
const base::Closure& on_unknown_host_id_error,
SignalStrategy* signal_strategy,
- scoped_ptr<GcdRestClient> gcd_rest_client)
+ std::unique_ptr<GcdRestClient> gcd_rest_client)
: on_update_successful_callback_(on_update_successful_callback),
on_unknown_host_id_error_(on_unknown_host_id_error),
signal_strategy_(signal_strategy),
@@ -113,8 +113,8 @@ void GcdStateUpdater::MaybeSendStateUpdate() {
}
// Construct an update to the remote state.
- scoped_ptr<base::DictionaryValue> patch(new base::DictionaryValue);
- scoped_ptr<base::DictionaryValue> base_state(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> patch(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> base_state(new base::DictionaryValue);
pending_request_jid_ = signal_strategy_->GetLocalJid();
base_state->SetString("_jabberId", pending_request_jid_);
base_state->SetString("_hostVersion", STRINGIZE(VERSION));
« no previous file with comments | « remoting/host/gcd_state_updater.h ('k') | remoting/host/gcd_state_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698