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

Unified Diff: content/test/test_render_view_host_factory.cc

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | content/test/web_gesture_curve_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_view_host_factory.cc
diff --git a/content/test/test_render_view_host_factory.cc b/content/test/test_render_view_host_factory.cc
index 5f4fb4dd70e9650d873d67d43d377a45bb9c1214..defc6613641b2b906eff971d7dde51e641e14c09 100644
--- a/content/test/test_render_view_host_factory.cc
+++ b/content/test/test_render_view_host_factory.cc
@@ -4,6 +4,7 @@
#include "content/test/test_render_view_host_factory.h"
+#include "base/memory/ptr_util.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/site_instance_impl.h"
#include "content/public/browser/render_process_host_factory.h"
@@ -35,7 +36,7 @@ RenderViewHost* TestRenderViewHostFactory::CreateRenderViewHost(
int32_t main_frame_routing_id,
bool swapped_out) {
return new TestRenderViewHost(instance,
- make_scoped_ptr(new RenderWidgetHostImpl(
+ base::WrapUnique(new RenderWidgetHostImpl(
widget_delegate, instance->GetProcess(),
routing_id, false /* hidden */)),
delegate, main_frame_routing_id, swapped_out);
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | content/test/web_gesture_curve_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698