Index: content/browser/background_fetch/background_fetch_test_base.cc |
diff --git a/content/browser/background_fetch/background_fetch_test_base.cc b/content/browser/background_fetch/background_fetch_test_base.cc |
index 2463393c05ea99010d1164b2a10bc9a3b3cdcf16..9314f19e96e0d83b7c51618bc1d88b115e0d4e58 100644 |
--- a/content/browser/background_fetch/background_fetch_test_base.cc |
+++ b/content/browser/background_fetch/background_fetch_test_base.cc |
@@ -14,6 +14,7 @@ |
#include "base/files/scoped_temp_dir.h" |
#include "base/guid.h" |
#include "base/logging.h" |
+#include "base/memory/ptr_util.h" |
#include "base/memory/weak_ptr.h" |
#include "base/run_loop.h" |
#include "base/time/time.h" |
@@ -213,8 +214,8 @@ void BackgroundFetchTestBase::SetUp() { |
// The |download_manager_| ownership is given to the BrowserContext, and the |
// BrowserContext will take care of deallocating it. |
- BrowserContext::SetDownloadManagerForTesting(browser_context(), |
- download_manager_); |
+ BrowserContext::SetDownloadManagerForTesting( |
+ browser_context(), base::WrapUnique(download_manager_)); |
set_up_called_ = true; |
} |