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

Unified Diff: components/update_client/update_checker_unittest.cc

Issue 2873533002: Prepare to abstract PersistedData by making it part of the configurator.
Patch Set: Fix ios compile error. Created 3 years, 7 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: components/update_client/update_checker_unittest.cc
diff --git a/components/update_client/update_checker_unittest.cc b/components/update_client/update_checker_unittest.cc
index 81106a0b517f14424ce8ac71def67d39f0cdb928..4a02de18f78805844ca40fbd398cc53ece799e49 100644
--- a/components/update_client/update_checker_unittest.cc
+++ b/components/update_client/update_checker_unittest.cc
@@ -99,9 +99,9 @@ UpdateCheckerTest::~UpdateCheckerTest() {
}
void UpdateCheckerTest::SetUp() {
+ pref_ = base::MakeUnique<TestingPrefServiceSimple>();
config_ = base::MakeShared<TestConfigurator>(
base::ThreadTaskRunnerHandle::Get(), base::ThreadTaskRunnerHandle::Get());
- pref_ = base::MakeUnique<TestingPrefServiceSimple>();
PersistedData::RegisterPrefs(pref_->registry());
metadata_ = base::MakeUnique<PersistedData>(pref_.get());
interceptor_factory_ =

Powered by Google App Engine
This is Rietveld 408576698