Chromium Code Reviews| Index: chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc |
| diff --git a/chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc b/chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc |
| index a4478fa65ffaf91f87414ac5617b8c4dfdc10655..543f4fd14a76ebaea47c752a3b9fd6c2b7c689b5 100644 |
| --- a/chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc |
| +++ b/chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc |
| @@ -4,6 +4,7 @@ |
| #include "chrome/browser/ntp_snippets/bookmark_last_visit_updater.h" |
| +#include "base/memory/ptr_util.h" |
| #include "components/bookmarks/browser/bookmark_model.h" |
| #include "components/bookmarks/browser/bookmark_node.h" |
| #include "components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h" |
| @@ -38,8 +39,9 @@ void BookmarkLastVisitUpdater::MaybeCreateForWebContentsWithBookmarkModel( |
| if (!bookmark_model || browser_context->IsOffTheRecord()) { |
| return; |
| } |
| - web_contents->SetUserData(UserDataKey(), new BookmarkLastVisitUpdater( |
| - web_contents, bookmark_model)); |
| + web_contents->SetUserData(UserDataKey(), |
| + base::WrapUnique(new BookmarkLastVisitUpdater( |
|
Nico
2017/05/02 20:54:10
Same question
|
| + web_contents, bookmark_model))); |
| } |
| BookmarkLastVisitUpdater::BookmarkLastVisitUpdater( |