Index: chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc |
diff --git a/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc b/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc |
index 6d61086534b707a489ac39610cc3158504c35e53..1655089ee5b41098e47f7d1ef14eca1de0622824 100644 |
--- a/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc |
+++ b/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc |
@@ -514,8 +514,8 @@ class RemoveDownloadsTester { |
public: |
explicit RemoveDownloadsTester(BrowserContext* browser_context) |
: download_manager_(new content::MockDownloadManager()) { |
- content::BrowserContext::SetDownloadManagerForTesting(browser_context, |
- download_manager_); |
+ content::BrowserContext::SetDownloadManagerForTesting( |
+ browser_context, base::WrapUnique(download_manager_)); |
EXPECT_EQ(download_manager_, |
content::BrowserContext::GetDownloadManager(browser_context)); |
EXPECT_CALL(*download_manager_, Shutdown()); |
@@ -526,7 +526,7 @@ class RemoveDownloadsTester { |
content::MockDownloadManager* download_manager() { return download_manager_; } |
private: |
- content::MockDownloadManager* download_manager_; |
+ content::MockDownloadManager* download_manager_; // Owned by browser context. |
DISALLOW_COPY_AND_ASSIGN(RemoveDownloadsTester); |
}; |