| Index: chrome/browser/safe_browsing/download_feedback_service.cc
|
| diff --git a/chrome/browser/safe_browsing/download_feedback_service.cc b/chrome/browser/safe_browsing/download_feedback_service.cc
|
| index 379bcda41e5c2bc496a194946988fbc83558cf8f..7be796619acec2f83d7a89d5612c916624484be1 100644
|
| --- a/chrome/browser/safe_browsing/download_feedback_service.cc
|
| +++ b/chrome/browser/safe_browsing/download_feedback_service.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/bind.h"
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/metrics/histogram_macros.h"
|
| #include "base/supports_user_data.h"
|
| #include "base/task_runner.h"
|
| @@ -62,9 +63,8 @@ void DownloadFeedbackPings::CreateForDownload(
|
| content::DownloadItem* download,
|
| const std::string& ping_request,
|
| const std::string& ping_response) {
|
| - DownloadFeedbackPings* pings = new DownloadFeedbackPings(ping_request,
|
| - ping_response);
|
| - download->SetUserData(kPingKey, pings);
|
| + download->SetUserData(kPingKey, base::MakeUnique<DownloadFeedbackPings>(
|
| + ping_request, ping_response));
|
| }
|
|
|
| // static
|
|
|