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

Issue 671573003: Adding support for authenticated copresence calls (Closed)

Created:
6 years, 2 months ago by Charlie
Modified:
6 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adding support for authenticated copresence calls. I've added a temporary call to the API to pass in an OAuth token to use with requests. Eventually we need to scope the token better - at least by app. For privacy, we now register one device ID per account (auth token), including the null (anonymous) account. Other changes: - API keys are now scoped by app - copresence_manager.cc deleted - Minor performance/stability fixes - Cleanup in rpc_handler_unittest.cc BUG=423517 Committed: https://crrev.com/153e9af7a65fddeb5807427f681df8916fbfdffb Cr-Commit-Position: refs/heads/master@{#302002}

Patch Set 1 #

Patch Set 2 : Fixing api errors #

Patch Set 3 : Fixing histograms #

Total comments: 6

Patch Set 4 : Small fixes #

Patch Set 5 : Storing just one auth token #

Patch Set 6 : Registering separately for authenticated calls #

Total comments: 14

Patch Set 7 : Addressing review comments #

Patch Set 8 : Fixing compile errors #

Patch Set 9 : #

Patch Set 10 : Fixing merge #

Patch Set 11 : Fixing GN build #

Patch Set 12 : Fixing Mac build #

Patch Set 13 : Fixing memory error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+407 lines, -218 lines) Patch
M chrome/browser/extensions/api/copresence/copresence_api.h View 1 2 3 4 5 4 chunks +20 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/copresence/copresence_api.cc View 1 2 3 4 5 6 6 chunks +41 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/copresence/copresence_api_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/copresence.idl View 1 chunk +5 lines, -0 lines 0 comments Download
M components/copresence.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M components/copresence/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
D components/copresence/copresence_manager.cc View 1 2 3 4 5 1 chunk +0 lines, -42 lines 0 comments Download
M components/copresence/copresence_manager_impl.h View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -7 lines 0 comments Download
M components/copresence/copresence_manager_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +74 lines, -18 lines 0 comments Download
M components/copresence/public/copresence_delegate.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/copresence/public/copresence_manager.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/copresence/rpc/http_post.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M components/copresence/rpc/http_post.cc View 1 2 3 4 5 3 chunks +13 lines, -6 lines 0 comments Download
M components/copresence/rpc/http_post_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +26 lines, -16 lines 0 comments Download
M components/copresence/rpc/rpc_handler.h View 1 2 3 4 5 6 chunks +36 lines, -9 lines 0 comments Download
M components/copresence/rpc/rpc_handler.cc View 1 2 3 4 5 12 chunks +91 lines, -32 lines 0 comments Download
M components/copresence/rpc/rpc_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +80 lines, -69 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
Charlie
Still trying to figure out how to test this. But let me know how the ...
6 years, 2 months ago (2014-10-21 20:51:04 UTC) #2
Charlie
+Ben for IDL review. This is a temporary solution to allow per-app authenticated copresence calls. ...
6 years, 2 months ago (2014-10-21 20:55:14 UTC) #4
Charlie
+Ilya for histograms review
6 years, 2 months ago (2014-10-21 21:01:43 UTC) #6
Ilya Sherman
histograms lgtm
6 years, 2 months ago (2014-10-21 21:03:28 UTC) #7
not at google - send to devlin
lgtm
6 years, 2 months ago (2014-10-21 22:07:34 UTC) #8
rkc
https://codereview.chromium.org/671573003/diff/40001/chrome/browser/extensions/api/copresence/copresence_api.cc File chrome/browser/extensions/api/copresence/copresence_api.cc (right): https://codereview.chromium.org/671573003/diff/40001/chrome/browser/extensions/api/copresence/copresence_api.cc#newcode131 chrome/browser/extensions/api/copresence/copresence_api.cc:131: auto key = api_keys_by_app_.find(app_id); const auto& ? https://codereview.chromium.org/671573003/diff/40001/chrome/browser/extensions/api/copresence/copresence_api.h File ...
6 years, 2 months ago (2014-10-21 22:48:38 UTC) #9
Charlie
https://codereview.chromium.org/671573003/diff/40001/chrome/browser/extensions/api/copresence/copresence_api.cc File chrome/browser/extensions/api/copresence/copresence_api.cc (right): https://codereview.chromium.org/671573003/diff/40001/chrome/browser/extensions/api/copresence/copresence_api.cc#newcode131 chrome/browser/extensions/api/copresence/copresence_api.cc:131: auto key = api_keys_by_app_.find(app_id); On 2014/10/21 22:48:38, Rahul Chaturvedi ...
6 years, 2 months ago (2014-10-21 23:19:45 UTC) #10
rkc
lgtm At this time the two maps are alright, but if we do have more ...
6 years, 2 months ago (2014-10-22 19:21:13 UTC) #11
Charlie
On 2014/10/22 19:21:13, Rahul Chaturvedi wrote: > lgtm > > At this time the two ...
6 years, 2 months ago (2014-10-22 19:28:50 UTC) #12
Charlie
Ok I added separate device registration for authenticated calls, as the server requires (and privacy ...
6 years, 1 month ago (2014-10-24 23:43:12 UTC) #13
rkc
https://codereview.chromium.org/671573003/diff/100001/chrome/browser/extensions/api/copresence/copresence_api.cc File chrome/browser/extensions/api/copresence/copresence_api.cc (right): https://codereview.chromium.org/671573003/diff/100001/chrome/browser/extensions/api/copresence/copresence_api.cc#newcode34 chrome/browser/extensions/api/copresence/copresence_api.cc:34: // CopresenceService implementation . https://codereview.chromium.org/671573003/diff/100001/chrome/browser/extensions/api/copresence/copresence_api.cc#newcode185 chrome/browser/extensions/api/copresence/copresence_api.cc:185: // CopresenceSetApiKeyFunction implementation ...
6 years, 1 month ago (2014-10-28 04:12:46 UTC) #14
Charlie
https://codereview.chromium.org/671573003/diff/100001/chrome/browser/extensions/api/copresence/copresence_api.cc File chrome/browser/extensions/api/copresence/copresence_api.cc (right): https://codereview.chromium.org/671573003/diff/100001/chrome/browser/extensions/api/copresence/copresence_api.cc#newcode34 chrome/browser/extensions/api/copresence/copresence_api.cc:34: // CopresenceService implementation On 2014/10/28 04:12:45, Rahul Chaturvedi wrote: ...
6 years, 1 month ago (2014-10-28 22:51:52 UTC) #15
rkc
lgtm
6 years, 1 month ago (2014-10-29 18:44:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/671573003/160001
6 years, 1 month ago (2014-10-29 18:59:35 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/75329) android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/17564) android_chromium_gn_compile_rel ...
6 years, 1 month ago (2014-10-29 19:04:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/671573003/180001
6 years, 1 month ago (2014-10-29 20:49:04 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/671573003/200001
6 years, 1 month ago (2014-10-29 20:58:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/671573003/240001
6 years, 1 month ago (2014-10-29 23:37:44 UTC) #26
commit-bot: I haz the power
Committed patchset #13 (id:240001)
6 years, 1 month ago (2014-10-30 01:10:29 UTC) #27
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 01:11:22 UTC) #28
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/153e9af7a65fddeb5807427f681df8916fbfdffb
Cr-Commit-Position: refs/heads/master@{#302002}

Powered by Google App Engine
This is Rietveld 408576698