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

Unified Diff: chrome/browser/android/offline_pages/offline_page_utils_unittest.cc

Issue 2848703004: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: rev 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: chrome/browser/android/offline_pages/offline_page_utils_unittest.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc b/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc
index 7c4eed28c9dc64cb19bb53aed013ba0ba4b901c6..1fda016121365c9a2451fb514cee24575b463a57 100644
--- a/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc
+++ b/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc
@@ -12,6 +12,7 @@
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
+#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "base/test/scoped_feature_list.h"
@@ -133,8 +134,8 @@ void OfflinePageUtilsTest::SetUp() {
&profile_, BuildTestOfflinePageModel);
RunUntilIdle();
- NetworkQualityProviderStub::SetUserData(&profile_,
- new NetworkQualityProviderStub());
+ NetworkQualityProviderStub::SetUserData(
+ &profile_, base::MakeUnique<NetworkQualityProviderStub>());
RequestCoordinatorFactory::GetInstance()->SetTestingFactoryAndUse(
&profile_, BuildTestRequestCoordinator);
RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698