summaryrefslogtreecommitdiffstats
path: root/src/core/authentication_dialog_controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/authentication_dialog_controller.cpp')
-rw-r--r--src/core/authentication_dialog_controller.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/core/authentication_dialog_controller.cpp b/src/core/authentication_dialog_controller.cpp
index 1133b0bc1..23dd62979 100644
--- a/src/core/authentication_dialog_controller.cpp
+++ b/src/core/authentication_dialog_controller.cpp
@@ -46,7 +46,7 @@
namespace QtWebEngineCore {
-AuthenticationDialogControllerPrivate::AuthenticationDialogControllerPrivate(LoginDelegateQt *loginDelegate)
+AuthenticationDialogControllerPrivate::AuthenticationDialogControllerPrivate(base::WeakPtr<LoginDelegateQt> loginDelegate)
: loginDelegate(loginDelegate)
{
}
@@ -54,9 +54,10 @@ AuthenticationDialogControllerPrivate::AuthenticationDialogControllerPrivate(Log
void AuthenticationDialogControllerPrivate::dialogFinished(bool accepted, const QString &user, const QString &password)
{
base::PostTaskWithTraits(
- FROM_HERE, {content::BrowserThread::IO},
+ FROM_HERE, {content::BrowserThread::UI},
base::BindOnce(&LoginDelegateQt::sendAuthToRequester,
- loginDelegate, accepted, user, password));
+ loginDelegate,
+ accepted, user, password));
}
AuthenticationDialogController::AuthenticationDialogController(AuthenticationDialogControllerPrivate *dd)
@@ -71,22 +72,22 @@ AuthenticationDialogController::~AuthenticationDialogController()
QUrl AuthenticationDialogController::url() const
{
- return d->loginDelegate->url();
+ return d->url;
}
QString AuthenticationDialogController::realm() const
{
- return d->loginDelegate->realm();
+ return d->realm;
}
QString AuthenticationDialogController::host() const
{
- return d->loginDelegate->host();
+ return d->host;
}
bool AuthenticationDialogController::isProxy() const
{
- return d->loginDelegate->isProxy();
+ return d->isProxy;
}
void AuthenticationDialogController::accept(const QString &user, const QString &password)