OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prom
pt_controller.h" | 5 #include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prom
pt_controller.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 void MaybeShowSettingsResetPromptWithDelay() { | 247 void MaybeShowSettingsResetPromptWithDelay() { |
248 std::unique_ptr<SettingsResetPromptConfig> config = | 248 std::unique_ptr<SettingsResetPromptConfig> config = |
249 SettingsResetPromptConfig::Create(); | 249 SettingsResetPromptConfig::Create(); |
250 if (!config) | 250 if (!config) |
251 return; | 251 return; |
252 | 252 |
253 base::TimeDelta delay = config->delay_before_prompt(); | 253 base::TimeDelta delay = config->delay_before_prompt(); |
254 content::BrowserThread::PostDelayedTask( | 254 content::BrowserThread::PostDelayedTask( |
255 content::BrowserThread::UI, FROM_HERE, | 255 content::BrowserThread::UI, FROM_HERE, |
256 base::Bind(MaybeShowSettingsResetPrompt, base::Passed(&config)), delay); | 256 base::BindOnce(MaybeShowSettingsResetPrompt, base::Passed(&config)), |
| 257 delay); |
257 } | 258 } |
258 | 259 |
259 } // namespace safe_browsing | 260 } // namespace safe_browsing |
OLD | NEW |