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

Issue 1076093003: Added method to host daemon to exchange an auth code for just an OAuth (Closed)

Created:
5 years, 8 months ago by John Williams
Modified:
5 years, 8 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added method to host daemon to exchange an auth code for just an OAuth refresh token. This change is necessary because, if the host daemon attempts to retrieve an email address for an auth code from GCD, the request fails, causing the host daemon to report failure and not return a refresh token. BUG=471928 Committed: https://crrev.com/ec9abae8e2c437970e89e5565aaf7d9ea19ab9d0 Cr-Commit-Position: refs/heads/master@{#326895}

Patch Set 1 #

Total comments: 5

Patch Set 2 : comment fix #

Patch Set 3 : added TODO #

Total comments: 6

Patch Set 4 : for review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -17 lines) Patch
M remoting/host/setup/me2me_native_messaging_host.h View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/setup/me2me_native_messaging_host.cc View 1 2 3 5 chunks +13 lines, -5 lines 0 comments Download
M remoting/host/setup/oauth_client.h View 1 3 chunks +11 lines, -6 lines 0 comments Download
M remoting/host/setup/oauth_client.cc View 4 chunks +16 lines, -4 lines 0 comments Download
M remoting/webapp/crd/js/host_daemon_facade.js View 1 2 3 3 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 19 (5 generated)
John Williams
My first C++ CL at Google.
5 years, 8 months ago (2015-04-22 17:29:35 UTC) #2
Lambros
LG so far, but I have a concern about version-skew. Do we need to add ...
5 years, 8 months ago (2015-04-22 18:24:34 UTC) #3
Lambros
https://codereview.chromium.org/1076093003/diff/1/remoting/host/setup/me2me_native_messaging_host.cc File remoting/host/setup/me2me_native_messaging_host.cc (right): https://codereview.chromium.org/1076093003/diff/1/remoting/host/setup/me2me_native_messaging_host.cc#newcode165 remoting/host/setup/me2me_native_messaging_host.cc:165: } else if (type == "getTokenFromAuthCode") { Please update ...
5 years, 8 months ago (2015-04-22 18:28:52 UTC) #4
John Williams
On 2015/04/22 18:24:34, Lambros wrote: > LG so far, but I have a concern about ...
5 years, 8 months ago (2015-04-22 20:10:51 UTC) #5
John Williams
https://codereview.chromium.org/1076093003/diff/1/remoting/host/setup/me2me_native_messaging_host.cc File remoting/host/setup/me2me_native_messaging_host.cc (right): https://codereview.chromium.org/1076093003/diff/1/remoting/host/setup/me2me_native_messaging_host.cc#newcode165 remoting/host/setup/me2me_native_messaging_host.cc:165: } else if (type == "getTokenFromAuthCode") { On 2015/04/22 ...
5 years, 8 months ago (2015-04-22 20:11:25 UTC) #6
Lambros
In the case of version-skew, if we're going to end up registering then de-registering the ...
5 years, 8 months ago (2015-04-22 21:23:00 UTC) #7
Sergey Ulanov
On 2015/04/22 20:10:51, John Williams wrote: > On 2015/04/22 18:24:34, Lambros wrote: > > LG ...
5 years, 8 months ago (2015-04-22 21:31:01 UTC) #8
Sergey Ulanov
On 2015/04/22 21:31:01, Sergey Ulanov wrote: > On 2015/04/22 20:10:51, John Williams wrote: > > ...
5 years, 8 months ago (2015-04-22 21:31:27 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/1076093003/diff/40001/remoting/host/setup/me2me_native_messaging_host.cc File remoting/host/setup/me2me_native_messaging_host.cc (right): https://codereview.chromium.org/1076093003/diff/40001/remoting/host/setup/me2me_native_messaging_host.cc#newcode523 remoting/host/setup/me2me_native_messaging_host.cc:523: response->SetString("userEmail", user_email); This will set an empty email when ...
5 years, 8 months ago (2015-04-22 21:55:41 UTC) #11
John Williams
https://codereview.chromium.org/1076093003/diff/40001/remoting/host/setup/me2me_native_messaging_host.cc File remoting/host/setup/me2me_native_messaging_host.cc (right): https://codereview.chromium.org/1076093003/diff/40001/remoting/host/setup/me2me_native_messaging_host.cc#newcode523 remoting/host/setup/me2me_native_messaging_host.cc:523: response->SetString("userEmail", user_email); On 2015/04/22 21:55:40, Sergey Ulanov wrote: > ...
5 years, 8 months ago (2015-04-24 00:00:47 UTC) #12
Lambros
lgtm
5 years, 8 months ago (2015-04-24 17:27:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076093003/60001
5 years, 8 months ago (2015-04-24 21:11:23 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-24 21:57:14 UTC) #18
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 21:58:00 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ec9abae8e2c437970e89e5565aaf7d9ea19ab9d0
Cr-Commit-Position: refs/heads/master@{#326895}

Powered by Google App Engine
This is Rietveld 408576698