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

Unified Diff: chrome/browser/ui/crypto_module_delegate_nss.cc

Issue 2824363002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/ui (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/crypto_module_delegate_nss.cc
diff --git a/chrome/browser/ui/crypto_module_delegate_nss.cc b/chrome/browser/ui/crypto_module_delegate_nss.cc
index adc9388cee298cfe5d1f3d9333dbb90ee613e3f6..7211e8a157b00fe5c4571f72066effd70b70ebdf 100644
--- a/chrome/browser/ui/crypto_module_delegate_nss.cc
+++ b/chrome/browser/ui/crypto_module_delegate_nss.cc
@@ -75,14 +75,12 @@ std::string ChromeNSSCryptoModuleDelegate::RequestPassword(
event_.Reset();
if (BrowserThread::PostTask(
- BrowserThread::UI,
- FROM_HERE,
- base::Bind(&ChromeNSSCryptoModuleDelegate::ShowDialog,
- // This method blocks on |event_| until the task completes,
- // so there's no need to ref-count.
- base::Unretained(this),
- slot_name,
- retry))) {
+ BrowserThread::UI, FROM_HERE,
+ base::BindOnce(
+ &ChromeNSSCryptoModuleDelegate::ShowDialog,
+ // This method blocks on |event_| until the task completes,
+ // so there's no need to ref-count.
+ base::Unretained(this), slot_name, retry))) {
event_.Wait();
}
*cancelled = cancelled_;
« no previous file with comments | « chrome/browser/ui/certificate_dialogs.cc ('k') | chrome/browser/ui/exclusive_access/fullscreen_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698