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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device_unittest.cc

Issue 2256173002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace a WrapUnique() nested inside a MakeUnique() 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: content/browser/media/capture/web_contents_video_capture_device_unittest.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
index 54e1633cf424785127439bb1baac78a8aced63c0..8d43e1b864cf82ee6fd80c1c804f25d329ddb64a 100644
--- a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
@@ -276,11 +276,11 @@ class CaptureTestRenderViewHost : public TestRenderViewHost {
bool swapped_out,
CaptureTestSourceController* controller)
: TestRenderViewHost(instance,
- base::WrapUnique(new CaptureTestRenderWidgetHost(
+ base::MakeUnique<CaptureTestRenderWidgetHost>(
widget_delegate,
instance->GetProcess(),
routing_id,
- controller)),
+ controller),
delegate,
main_frame_routing_id,
swapped_out) {

Powered by Google App Engine
This is Rietveld 408576698