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

Unified Diff: chrome/browser/android/bottombar/overlay_panel_content.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky 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 | « no previous file | chrome/browser/android/compositor/tab_content_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/bottombar/overlay_panel_content.cc
diff --git a/chrome/browser/android/bottombar/overlay_panel_content.cc b/chrome/browser/android/bottombar/overlay_panel_content.cc
index 2ec9bdae6bfdef998a64f6338f19ab62e1cd0d84..10f41df28fe9f8cf259cce54b8e5eb86b8e11dda 100644
--- a/chrome/browser/android/bottombar/overlay_panel_content.cc
+++ b/chrome/browser/android/bottombar/overlay_panel_content.cc
@@ -130,8 +130,8 @@ void OverlayPanelContent::SetInterceptNavigationDelegate(
DCHECK(web_contents);
navigation_interception::InterceptNavigationDelegate::Associate(
web_contents,
- base::WrapUnique(new navigation_interception::InterceptNavigationDelegate(
- env, delegate)));
+ base::MakeUnique<navigation_interception::InterceptNavigationDelegate>(
+ env, delegate));
}
bool RegisterOverlayPanelContent(JNIEnv* env) {
« no previous file with comments | « no previous file | chrome/browser/android/compositor/tab_content_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698