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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/resource_context_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/resource_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698