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

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 compile error 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
« no previous file with comments | « remoting/host/signaling_connector.h ('k') | remoting/webapp/build-webapp.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/signaling_connector.cc
diff --git a/remoting/host/signaling_connector.cc b/remoting/host/signaling_connector.cc
index 25bef4c7bb855156edd5629d7bf4031d1b71172a..efa01fe4310cf13d6a189d00cbc04b23139dbdbc 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)
@@ -153,20 +155,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, this);
+ oauth_credentials_->client_info,
+ oauth_credentials_->refresh_token, this);
}
} // namespace remoting
« no previous file with comments | « remoting/host/signaling_connector.h ('k') | remoting/webapp/build-webapp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698