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

Unified Diff: chrome/browser/printing/cloud_print/privet_device_lister_unittest.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky Created 4 years, 3 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: chrome/browser/printing/cloud_print/privet_device_lister_unittest.cc
diff --git a/chrome/browser/printing/cloud_print/privet_device_lister_unittest.cc b/chrome/browser/printing/cloud_print/privet_device_lister_unittest.cc
index f620b0ccf5c523cd96786a91e518cb1898ddc06b..19e2e2da9cdb8a0908dcfb60a0432ab61c6a3332 100644
--- a/chrome/browser/printing/cloud_print/privet_device_lister_unittest.cc
+++ b/chrome/browser/printing/cloud_print/privet_device_lister_unittest.cc
@@ -120,8 +120,8 @@ class MockServiceDiscoveryClient : public ServiceDiscoveryClient {
std::unique_ptr<ServiceWatcher> CreateServiceWatcher(
const std::string& service_type,
const ServiceWatcher::UpdatedCallback& callback) override {
- return base::WrapUnique(
- new MockServiceWatcher(service_type, callback, mock_delegate_));
+ return base::MakeUnique<MockServiceWatcher>(service_type, callback,
+ mock_delegate_);
}
// Create a service resolver object for getting detailed service information
@@ -129,8 +129,8 @@ class MockServiceDiscoveryClient : public ServiceDiscoveryClient {
std::unique_ptr<ServiceResolver> CreateServiceResolver(
const std::string& service_name,
const ServiceResolver::ResolveCompleteCallback& callback) override {
- return base::WrapUnique(
- new MockServiceResolver(service_name, callback, mock_delegate_));
+ return base::MakeUnique<MockServiceResolver>(service_name, callback,
+ mock_delegate_);
}
// Not used in this test.

Powered by Google App Engine
This is Rietveld 408576698