Index: components/sessions/ios/ios_live_tab.mm |
diff --git a/components/sessions/ios/ios_live_tab.mm b/components/sessions/ios/ios_live_tab.mm |
index 584b5238dfcec7d7ed226bc3f4f5348331bcb069..0d0b1c90d39309beb641d4875a47f07acc531e73 100644 |
--- a/components/sessions/ios/ios_live_tab.mm |
+++ b/components/sessions/ios/ios_live_tab.mm |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "components/sessions/ios/ios_live_tab.h" |
+#include "base/memory/ptr_util.h" |
#include "ios/web/public/navigation_manager.h" |
namespace { |
@@ -17,7 +18,7 @@ std::string IOSLiveTab::user_agent_override_; |
IOSLiveTab* IOSLiveTab::GetForWebState(web::WebState* web_state) { |
if (!web_state->GetUserData(kIOSLiveTabWebStateUserDataKey)) { |
web_state->SetUserData(kIOSLiveTabWebStateUserDataKey, |
- new IOSLiveTab(web_state)); |
+ base::WrapUnique(new IOSLiveTab(web_state))); |
} |
return static_cast<IOSLiveTab*>( |