Index: chrome/browser/sync/sessions/sync_sessions_router_tab_helper.cc |
diff --git a/chrome/browser/sync/sessions/sync_sessions_router_tab_helper.cc b/chrome/browser/sync/sessions/sync_sessions_router_tab_helper.cc |
index 2a84102bc3b1ae98e63a66dcfb03795e22d1d3ef..2dafed9567b642ff492e46aa813065f62a06d069 100644 |
--- a/chrome/browser/sync/sessions/sync_sessions_router_tab_helper.cc |
+++ b/chrome/browser/sync/sessions/sync_sessions_router_tab_helper.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/sync/sessions/sync_sessions_router_tab_helper.h" |
+#include "base/memory/ptr_util.h" |
#include "chrome/browser/sessions/session_tab_helper.h" |
#include "chrome/browser/sync/sessions/sync_sessions_web_contents_router.h" |
#include "components/sync_sessions/synced_tab_delegate.h" |
@@ -21,8 +22,9 @@ void SyncSessionsRouterTabHelper::CreateForWebContents( |
SyncSessionsWebContentsRouter* router) { |
DCHECK(web_contents); |
if (!FromWebContents(web_contents)) { |
- web_contents->SetUserData( |
- UserDataKey(), new SyncSessionsRouterTabHelper(web_contents, router)); |
+ web_contents->SetUserData(UserDataKey(), |
+ base::WrapUnique(new SyncSessionsRouterTabHelper( |
+ web_contents, router))); |
} |
} |