Index: components/guest_view/browser/guest_view_manager.cc |
diff --git a/components/guest_view/browser/guest_view_manager.cc b/components/guest_view/browser/guest_view_manager.cc |
index 1c68e13912c2dfa7cc842bab169029c58677811a..e2acc278fa1f78e2343d05633bf3aa53c87a3a5f 100644 |
--- a/components/guest_view/browser/guest_view_manager.cc |
+++ b/components/guest_view/browser/guest_view_manager.cc |
@@ -8,6 +8,7 @@ |
#include <utility> |
#include "base/macros.h" |
+#include "base/memory/ptr_util.h" |
#include "base/metrics/user_metrics.h" |
#include "base/strings/stringprintf.h" |
#include "components/guest_view/browser/guest_view_base.h" |
@@ -87,7 +88,8 @@ GuestViewManager* GuestViewManager::CreateWithDelegate( |
} else { |
guest_manager = new GuestViewManager(context, std::move(delegate)); |
} |
- context->SetUserData(kGuestViewManagerKeyName, guest_manager); |
+ context->SetUserData(kGuestViewManagerKeyName, |
+ base::WrapUnique(guest_manager)); |
} |
return guest_manager; |
} |