| Index: chrome/browser/safe_browsing/srt_fetcher_win.cc
|
| diff --git a/chrome/browser/safe_browsing/srt_fetcher_win.cc b/chrome/browser/safe_browsing/srt_fetcher_win.cc
|
| index a242a1ad2b23bfdcab28bf42c2433164a5710a70..b00f64a8ab0d66e74dae9f05ab9756332c7c0efb 100644
|
| --- a/chrome/browser/safe_browsing/srt_fetcher_win.cc
|
| +++ b/chrome/browser/safe_browsing/srt_fetcher_win.cc
|
| @@ -18,6 +18,7 @@
|
| #include "base/debug/leak_annotations.h"
|
| #include "base/files/file_path.h"
|
| #include "base/macros.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/metrics/field_trial.h"
|
| #include "base/metrics/histogram_macros.h"
|
| #include "base/metrics/sparse_histogram.h"
|
| @@ -527,7 +528,7 @@ void DisplaySRTPrompt(const base::FilePath& download_path) {
|
|
|
| // Ownership of |global_error| is passed to the service. The error removes
|
| // itself from the service and self-destructs when done.
|
| - global_error_service->AddGlobalError(global_error);
|
| + global_error_service->AddOwnedGlobalError(base::WrapUnique(global_error));
|
|
|
| bool show_bubble = true;
|
| PrefService* local_state = g_browser_process->local_state();
|
|
|