| Index: remoting/host/setup/win/auth_code_getter.cc
|
| diff --git a/remoting/host/setup/win/auth_code_getter.cc b/remoting/host/setup/win/auth_code_getter.cc
|
| index fd4898629a4cf2c8787ae8da19e029068fd35c65..89ce104b8f347a729b8153675b07a076a7a0c19a 100644
|
| --- a/remoting/host/setup/win/auth_code_getter.cc
|
| +++ b/remoting/host/setup/win/auth_code_getter.cc
|
| @@ -40,7 +40,8 @@ void AuthCodeGetter::GetAuthCode(
|
| return;
|
| }
|
| browser_running_ = true;
|
| - base::win::ScopedBstr url(UTF8ToWide(GetOauthStartUrl()).c_str());
|
| + base::win::ScopedBstr url(UTF8ToWide(
|
| + GetOauthStartUrl(GetDefaultOauthRedirectUrl())).c_str());
|
| base::win::ScopedVariant empty_variant;
|
| hr = browser_->Navigate(url, empty_variant.AsInput(), empty_variant.AsInput(),
|
| empty_variant.AsInput(), empty_variant.AsInput());
|
| @@ -77,7 +78,8 @@ bool AuthCodeGetter::TestBrowserUrl(std::string* auth_code) {
|
| KillBrowser();
|
| return true;
|
| }
|
| - *auth_code = GetOauthCodeInUrl(WideToUTF8(static_cast<BSTR>(url)));
|
| + *auth_code = GetOauthCodeInUrl(WideToUTF8(static_cast<BSTR>(url)),
|
| + GetDefaultOauthRedirectUrl());
|
| if (!auth_code->empty()) {
|
| KillBrowser();
|
| return true;
|
|
|