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

Unified Diff: chrome/browser/chromeos/policy/remote_commands/device_commands_factory_chromeos.cc

Issue 2257103002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/chromeos/policy/remote_commands/device_commands_factory_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/remote_commands/device_commands_factory_chromeos.cc b/chrome/browser/chromeos/policy/remote_commands/device_commands_factory_chromeos.cc
index 094254a044e1f16b36ae3e5921d5e69914fb0aa6..cd414ddd36d37bc2024f0ff4ac2fa36dec322327 100644
--- a/chrome/browser/chromeos/policy/remote_commands/device_commands_factory_chromeos.cc
+++ b/chrome/browser/chromeos/policy/remote_commands/device_commands_factory_chromeos.cc
@@ -33,11 +33,11 @@ DeviceCommandsFactoryChromeOS::BuildJobForType(em::RemoteCommand_Type type) {
return base::WrapUnique<RemoteCommandJob>(new DeviceCommandRebootJob(
chromeos::DBusThreadManager::Get()->GetPowerManagerClient()));
case em::RemoteCommand_Type_DEVICE_SCREENSHOT:
- return base::WrapUnique<RemoteCommandJob>(new DeviceCommandScreenshotJob(
- base::WrapUnique(new ScreenshotDelegate(
+ return base::WrapUnique<RemoteCommandJob>(
+ new DeviceCommandScreenshotJob(base::MakeUnique<ScreenshotDelegate>(
content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
content::BrowserThread::GetBlockingPool()
- ->GetSequenceToken())))));
+ ->GetSequenceToken()))));
default:
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698