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

Unified Diff: remoting/host/signaling_connector.cc

Issue 10116040: Remoting daemon process to support unofficial client ID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed comments Created 8 years, 8 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
Index: remoting/host/signaling_connector.cc
diff --git a/remoting/host/signaling_connector.cc b/remoting/host/signaling_connector.cc
index 9b80a81c8860a5a08ffdc293dc973c9bea86d3e9..27911073a49b261d2649b954ba8d02dcee4d413b 100644
--- a/remoting/host/signaling_connector.cc
+++ b/remoting/host/signaling_connector.cc
@@ -24,9 +24,11 @@ const int kTokenUpdateTimeBeforeExpirySeconds = 60;
SignalingConnector::OAuthCredentials::OAuthCredentials(
const std::string& login_value,
- const std::string& refresh_token_value)
+ const std::string& refresh_token_value,
+ const OAuthClientInfo& client_info_value)
: login(login_value),
- refresh_token(refresh_token_value) {
+ refresh_token(refresh_token_value),
+ client_info(client_info_value) {
}
SignalingConnector::SignalingConnector(XmppSignalStrategy* signal_strategy)
@@ -159,20 +161,11 @@ void SignalingConnector::RefreshOAuthToken() {
DCHECK(CalledOnValidThread());
LOG(INFO) << "Refreshing OAuth token.";
DCHECK(!refreshing_oauth_token_);
-#ifdef OFFICIAL_BUILD
- OAuthClientInfo client_info = {
- "440925447803-avn2sj1kc099s0r7v62je5s339mu0am1.apps.googleusercontent.com",
- "Bgur6DFiOMM1h8x-AQpuTQlK"
- };
-#else // OFFICIAL_BUILD
- OAuthClientInfo client_info = {
- "440925447803-2pi3v45bff6tp1rde2f7q6lgbor3o5uj.apps.googleusercontent.com",
- "W2ieEsG-R1gIA4MMurGrgMc_"
- };
-#endif // !OFFICIAL_BUILD
+
refreshing_oauth_token_ = true;
gaia_oauth_client_->RefreshToken(
- client_info, oauth_credentials_->refresh_token, 1, this);
+ oauth_credentials_->client_info,
+ oauth_credentials_->refresh_token, 1, this);
}
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698