Chromium Code Reviews| Index: chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc |
| diff --git a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc |
| index 9b26180312a80bf44653210c5dd9f2fee490453b..05931128cea60bb95946a39a77a7f51f4e0b3462 100644 |
| --- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc |
| +++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc |
| @@ -5,6 +5,7 @@ |
| #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" |
| #include "base/guid.h" |
| +#include "base/memory/ptr_util.h" |
| #include "base/run_loop.h" |
| #include "base/strings/string_number_conversions.h" |
| #include "base/strings/utf_string_conversions.h" |
| @@ -730,8 +731,8 @@ class RemoveDownloadsTester { |
| explicit RemoveDownloadsTester(TestingProfile* testing_profile) |
| : download_manager_(new content::MockDownloadManager()), |
| chrome_download_manager_delegate_(testing_profile) { |
| - content::BrowserContext::SetDownloadManagerForTesting(testing_profile, |
| - download_manager_); |
| + content::BrowserContext::SetDownloadManagerForTesting( |
| + testing_profile, base::WrapUnique(download_manager_)); |
|
Nico
2017/04/14 15:46:58
Same here.
Avi (use Gerrit)
2017/04/14 18:17:51
Done.
|
| EXPECT_EQ(download_manager_, |
| content::BrowserContext::GetDownloadManager(testing_profile)); |