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

Unified Diff: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_test_utils.cc

Issue 2918053003: Settings reset prompt: Fetch default settings only when needed. (Closed)
Patch Set: Addressed Chris's comment 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: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_test_utils.cc
diff --git a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_test_utils.cc b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_test_utils.cc
index 902fc7965e95355e8b1aa4bc584b4d76661be574..bb50eb288baa001112ce9394b53a297d51314409 100644
--- a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_test_utils.cc
+++ b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_test_utils.cc
@@ -52,10 +52,8 @@ std::unique_ptr<SettingsResetPromptModel> CreateModelForTesting(
++id;
}
- return SettingsResetPromptModel::CreateForTesting(
+ return base::MakeUnique<SettingsResetPromptModel>(
profile, std::move(config),
- base::MakeUnique<ResettableSettingsSnapshot>(profile),
- base::MakeUnique<BrandcodedDefaultSettings>(),
profile_resetter
? std::move(profile_resetter)
: base::MakeUnique<NiceMock<MockProfileResetter>>(profile));

Powered by Google App Engine
This is Rietveld 408576698