diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 21:59:58 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 21:59:58 +0000 |
commit | 8a27abf866ca54fe5a1aa7427094cdd79e0241ec (patch) | |
tree | fb13223c6131a1cb7d550cea3c771988dd6dff9b /chrome/browser/ssl/ssl_add_cert_handler.cc | |
parent | 5c12f4a7d56afa3a3cd2d2a83dbfd65e321c71d8 (diff) | |
download | chromium_src-8a27abf866ca54fe5a1aa7427094cdd79e0241ec.zip chromium_src-8a27abf866ca54fe5a1aa7427094cdd79e0241ec.tar.gz chromium_src-8a27abf866ca54fe5a1aa7427094cdd79e0241ec.tar.bz2 |
Use new callbacks for SSL UI.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8080010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103555 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl/ssl_add_cert_handler.cc')
-rw-r--r-- | chrome/browser/ssl/ssl_add_cert_handler.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/chrome/browser/ssl/ssl_add_cert_handler.cc b/chrome/browser/ssl/ssl_add_cert_handler.cc index 78903b5..4b62688 100644 --- a/chrome/browser/ssl/ssl_add_cert_handler.cc +++ b/chrome/browser/ssl/ssl_add_cert_handler.cc @@ -1,9 +1,10 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ssl/ssl_add_cert_handler.h" +#include "base/bind.h" #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" #include "chrome/browser/tab_contents/tab_util.h" #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" @@ -30,7 +31,7 @@ SSLAddCertHandler::SSLAddCertHandler(net::URLRequest* request, // Delay adding the certificate until the next mainloop iteration. BrowserThread::PostTask( BrowserThread::IO, FROM_HERE, - NewRunnableMethod(this, &SSLAddCertHandler::Run)); + base::Bind(&SSLAddCertHandler::Run, this)); } SSLAddCertHandler::~SSLAddCertHandler() {} @@ -44,8 +45,8 @@ void SSLAddCertHandler::Run() { if (cert_error != net::OK) { BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, - NewRunnableMethod( - this, &SSLAddCertHandler::CallVerifyClientCertificateError, + base::Bind( + &SSLAddCertHandler::CallVerifyClientCertificateError, this, cert_error)); Finished(false); return; @@ -74,9 +75,9 @@ void SSLAddCertHandler::Finished(bool add_cert) { BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, - NewRunnableMethod( - this, &SSLAddCertHandler::CallAddClientCertificate, add_cert, - cert_error)); + base::Bind( + &SSLAddCertHandler::CallAddClientCertificate, this, + add_cert, cert_error)); Release(); } |