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

Unified Diff: components/policy/core/common/remote_commands/testing_remote_commands_server.cc

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias 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: components/policy/core/common/remote_commands/testing_remote_commands_server.cc
diff --git a/components/policy/core/common/remote_commands/testing_remote_commands_server.cc b/components/policy/core/common/remote_commands/testing_remote_commands_server.cc
index 53db3e2c3d1f18c2e992d4e2cb9866bfcd28acf1..3f9a65b4e3260c1f646f194d05c77787e8bf476f 100644
--- a/components/policy/core/common/remote_commands/testing_remote_commands_server.cc
+++ b/components/policy/core/common/remote_commands/testing_remote_commands_server.cc
@@ -76,7 +76,7 @@ void TestingRemoteCommandsServer::IssueCommand(
TestingRemoteCommandsServer::RemoteCommands
TestingRemoteCommandsServer::FetchCommands(
- scoped_ptr<RemoteCommandJob::UniqueIDType> last_command_id,
+ std::unique_ptr<RemoteCommandJob::UniqueIDType> last_command_id,
const RemoteCommandResults& previous_job_results) {
base::AutoLock auto_lock(lock_);
@@ -135,7 +135,8 @@ TestingRemoteCommandsServer::FetchCommands(
return fetched_commands;
}
-void TestingRemoteCommandsServer::SetClock(scoped_ptr<base::TickClock> clock) {
+void TestingRemoteCommandsServer::SetClock(
+ std::unique_ptr<base::TickClock> clock) {
DCHECK(thread_checker_.CalledOnValidThread());
clock_ = std::move(clock);
}

Powered by Google App Engine
This is Rietveld 408576698