Index: content/public/test/test_service.cc |
diff --git a/content/public/test/test_service.cc b/content/public/test/test_service.cc |
index b2790bc32a06bae20b4879a5cf5135259b83de26..1d1b1c7bba43873c82c570dcdce4ef334b9bcd78 100644 |
--- a/content/public/test/test_service.cc |
+++ b/content/public/test/test_service.cc |
@@ -37,27 +37,25 @@ void TestService::Create(const service_manager::BindSourceInfo& source_info, |
service_binding_.Bind(std::move(request)); |
} |
-void TestService::DoSomething(const DoSomethingCallback& callback) { |
- callback.Run(); |
+void TestService::DoSomething(DoSomethingCallback callback) { |
+ std::move(callback).Run(); |
base::MessageLoop::current()->QuitWhenIdle(); |
} |
-void TestService::DoTerminateProcess( |
- const DoTerminateProcessCallback& callback) { |
+void TestService::DoTerminateProcess(DoTerminateProcessCallback callback) { |
NOTREACHED(); |
} |
-void TestService::CreateFolder(const CreateFolderCallback& callback) { |
+void TestService::CreateFolder(CreateFolderCallback callback) { |
NOTREACHED(); |
} |
-void TestService::GetRequestorName(const GetRequestorNameCallback& callback) { |
- callback.Run(requestor_name_); |
+void TestService::GetRequestorName(GetRequestorNameCallback callback) { |
+ std::move(callback).Run(requestor_name_); |
} |
-void TestService::CreateSharedBuffer( |
- const std::string& message, |
- const CreateSharedBufferCallback& callback) { |
+void TestService::CreateSharedBuffer(const std::string& message, |
+ CreateSharedBufferCallback callback) { |
NOTREACHED(); |
} |