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

Unified Diff: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model_browsertest_win.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_model_browsertest_win.cc
diff --git a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model_browsertest_win.cc b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model_browsertest_win.cc
index aab9ca18cd3be6d57a28c345bdc80fb26c76ee11..db553d4194da9a8ef9403c7240a4282a2c42f662 100644
--- a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model_browsertest_win.cc
+++ b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model_browsertest_win.cc
@@ -528,6 +528,7 @@ IN_PROC_BROWSER_TEST_F(SettingsResetPromptModelBrowserTest,
// extensions so that we can expect the extensions to be disabled after the
// reset even though we are mocking the |ProfileResetter|.
model->PerformReset(
+ base::MakeUnique<BrandcodedDefaultSettings>(),
base::Bind(&SettingsResetPromptModelBrowserTest::OnResetDone,
base::Unretained(this)));
base::RunLoop().RunUntilIdle();
@@ -578,6 +579,7 @@ IN_PROC_BROWSER_TEST_F(SettingsResetPromptModelBrowserTest,
// extensions so that we can expect the extensions to be disabled after the
// reset even though we are mocking the |ProfileResetter|.
model->PerformReset(
+ base::MakeUnique<BrandcodedDefaultSettings>(),
base::Bind(&SettingsResetPromptModelBrowserTest::OnResetDone,
base::Unretained(this)));
base::RunLoop().RunUntilIdle();
@@ -628,6 +630,7 @@ IN_PROC_BROWSER_TEST_F(SettingsResetPromptModelBrowserTest,
// extensions so that we can expect the extensions to be disabled after the
// reset even though we are mocking the |ProfileResetter|.
model->PerformReset(
+ base::MakeUnique<BrandcodedDefaultSettings>(),
base::Bind(&SettingsResetPromptModelBrowserTest::OnResetDone,
base::Unretained(this)));
base::RunLoop().RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698