Index: content/browser/renderer_host/render_widget_host_view_android.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc |
index 0a30eafc252fbf60769c6cf52509f44bb42cfcd8..e33bf428721dbf13f1e8c90d1e2a322b0b68f3e8 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
@@ -245,14 +245,14 @@ std::unique_ptr<ui::TouchSelectionController> CreateSelectionController( |
config.enable_longpress_drag_selection = |
base::CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableLongpressDragSelection); |
- return base::WrapUnique(new ui::TouchSelectionController(client, config)); |
+ return base::MakeUnique<ui::TouchSelectionController>(client, config); |
} |
std::unique_ptr<OverscrollControllerAndroid> CreateOverscrollController( |
ContentViewCoreImpl* content_view_core, |
float dpi_scale) { |
- return base::WrapUnique( |
- new OverscrollControllerAndroid(content_view_core, dpi_scale)); |
+ return base::MakeUnique<OverscrollControllerAndroid>(content_view_core, |
+ dpi_scale); |
} |
gfx::RectF GetSelectionRect(const ui::TouchSelectionController& controller) { |