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

Unified Diff: remoting/host/setup/win/auth_code_getter.cc

Issue 11185037: [Chromoting] Let the Linux start-host app take a redirect-URL parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows include. Created 8 years, 2 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
« no previous file with comments | « remoting/host/setup/start_host.cc ('k') | remoting/host/setup/win/start_host_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « remoting/host/setup/start_host.cc ('k') | remoting/host/setup/win/start_host_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698