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

Unified Diff: components/guest_view/browser/test_guest_view_manager.cc

Issue 2707743002: Use std::unique_ptr instead of linked_ptr in //components/guest_view (Closed)
Patch Set: Created 3 years, 10 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 | « components/guest_view/browser/test_guest_view_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/guest_view/browser/test_guest_view_manager.cc
diff --git a/components/guest_view/browser/test_guest_view_manager.cc b/components/guest_view/browser/test_guest_view_manager.cc
index 66961b3aeac10d0e1fabcba984f83dcf3fab8117..efaacbcc5db84cc9520a4ea081fbb64ed798de1e 100644
--- a/components/guest_view/browser/test_guest_view_manager.cc
+++ b/components/guest_view/browser/test_guest_view_manager.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "base/memory/ptr_util.h"
#include "components/guest_view/browser/guest_view_manager_delegate.h"
namespace guest_view {
@@ -96,8 +97,8 @@ void TestGuestViewManager::AddGuest(int guest_instance_id,
GuestViewManager::AddGuest(guest_instance_id, guest_web_contents);
guest_web_contents_watchers_.push_back(
- linked_ptr<content::WebContentsDestroyedWatcher>(
- new content::WebContentsDestroyedWatcher(guest_web_contents)));
+ base::MakeUnique<content::WebContentsDestroyedWatcher>(
+ guest_web_contents));
if (created_message_loop_runner_.get())
created_message_loop_runner_->Quit();
« no previous file with comments | « components/guest_view/browser/test_guest_view_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698