Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(785)

Unified Diff: content/browser/background_fetch/background_fetch_test_base.cc

Issue 2815913005: Switch to using scoped_ptr with UserData (Closed)
Patch Set: fixes Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698