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

Side by Side Diff: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.cc

Issue 2821193005: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/safe_browsing (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698