summaryrefslogtreecommitdiffstats
path: root/content/browser/ssl/ssl_error_handler.cc
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 21:59:58 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 21:59:58 +0000
commit8a27abf866ca54fe5a1aa7427094cdd79e0241ec (patch)
treefb13223c6131a1cb7d550cea3c771988dd6dff9b /content/browser/ssl/ssl_error_handler.cc
parent5c12f4a7d56afa3a3cd2d2a83dbfd65e321c71d8 (diff)
downloadchromium_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 'content/browser/ssl/ssl_error_handler.cc')
-rw-r--r--content/browser/ssl/ssl_error_handler.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/content/browser/ssl/ssl_error_handler.cc b/content/browser/ssl/ssl_error_handler.cc
index 8fc86bd..8771996 100644
--- a/content/browser/ssl/ssl_error_handler.cc
+++ b/content/browser/ssl/ssl_error_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 "content/browser/ssl/ssl_error_handler.h"
+#include "base/bind.h"
#include "content/browser/browser_thread.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/resource_dispatcher_host.h"
@@ -84,8 +85,8 @@ void SSLErrorHandler::CancelRequest() {
// We need to complete this task on the IO thread.
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(
- this, &SSLErrorHandler::CompleteCancelRequest, net::ERR_ABORTED));
+ base::Bind(
+ &SSLErrorHandler::CompleteCancelRequest, this, net::ERR_ABORTED));
}
void SSLErrorHandler::DenyRequest() {
@@ -94,8 +95,8 @@ void SSLErrorHandler::DenyRequest() {
// We need to complete this task on the IO thread.
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(
- this, &SSLErrorHandler::CompleteCancelRequest,
+ base::Bind(
+ &SSLErrorHandler::CompleteCancelRequest, this,
net::ERR_INSECURE_RESPONSE));
}
@@ -105,7 +106,7 @@ void SSLErrorHandler::ContinueRequest() {
// We need to complete this task on the IO thread.
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(this, &SSLErrorHandler::CompleteContinueRequest));
+ base::Bind(&SSLErrorHandler::CompleteContinueRequest, this));
}
void SSLErrorHandler::TakeNoAction() {
@@ -114,7 +115,7 @@ void SSLErrorHandler::TakeNoAction() {
// We need to complete this task on the IO thread.
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(this, &SSLErrorHandler::CompleteTakeNoAction));
+ base::Bind(&SSLErrorHandler::CompleteTakeNoAction, this));
}
void SSLErrorHandler::CompleteCancelRequest(int error) {