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

Issue 695253002: chrome.gcdPrivate allows app to choose pairing method. (Closed)

Created:
6 years, 1 month ago by Vitaly Buka (NO REVIEWS)
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

chrome.gcdPrivate allows app to choose pairing method. Added startPairing with pairing method parameter. Changed some naming in gcd_private.idl Changed PrivetV3Session from delegates to Callback. This makes code smaller and more readable. Committed: https://crrev.com/b6f8838a4a34a4b173cc6aebbedba791c80a560b Cr-Commit-Position: refs/heads/master@{#302565}

Patch Set 1 #

Patch Set 2 : Mon Nov 3 00:55:34 PST 2014 #

Patch Set 3 : Mon Nov 3 01:04:06 PST 2014 #

Patch Set 4 : Mon Nov 3 01:08:38 PST 2014 #

Patch Set 5 : Mon Nov 3 14:44:21 PST 2014 #

Patch Set 6 : Mon Nov 3 15:05:04 PST 2014 #

Patch Set 7 : Mon Nov 3 15:09:22 PST 2014 #

Total comments: 4

Patch Set 8 : Mon Nov 3 16:52:45 PST 2014 #

Patch Set 9 : Mon Nov 3 17:01:43 PST 2014 #

Patch Set 10 : Mon Nov 3 17:02:54 PST 2014 #

Patch Set 11 : Mon Nov 3 17:47:42 PST 2014 #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -525 lines) Patch
M chrome/browser/extensions/api/gcd_private/gcd_private_api.h View 1 2 2 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/gcd_private/gcd_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +88 lines, -234 lines 0 comments Download
M chrome/browser/local_discovery/privetv3_session.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +28 lines, -28 lines 0 comments Download
M chrome/browser/local_discovery/privetv3_session.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +64 lines, -42 lines 0 comments Download
M chrome/browser/local_discovery/privetv3_session_unittest.cc View 1 chunk +48 lines, -38 lines 0 comments Download
M chrome/browser/local_discovery/privetv3_setup_flow.h View 1 2 5 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/local_discovery/privetv3_setup_flow.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +43 lines, -92 lines 0 comments Download
M chrome/browser/local_discovery/privetv3_setup_flow_unittest.cc View 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/api/gcd_private.idl View 1 2 3 4 5 6 7 5 chunks +34 lines, -34 lines 12 comments Download
M chrome/test/data/extensions/api_test/gcd_private/api/session.js View 1 2 3 4 5 6 7 2 chunks +13 lines, -12 lines 0 comments Download
M chrome/test/data/extensions/api_test/gcd_private/api/wifi_message.js View 1 2 3 4 5 1 chunk +19 lines, -16 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 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: 17 (5 generated)
Vitaly Buka (NO REVIEWS)
Please review. Feel free to ignore changes in: chrome/browser/local_discovery/privetv3_setup_flow.* chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.* This is deprecated code, it's ...
6 years, 1 month ago (2014-11-03 22:56:27 UTC) #2
Vitaly Buka (NO REVIEWS)
+asvitkine for extensions/browser/extension_function_histogram_value.h
6 years, 1 month ago (2014-11-03 23:06:21 UTC) #4
Vitaly Buka (NO REVIEWS)
+kalman for chrome/common/extensions/api/gcd_private.idl
6 years, 1 month ago (2014-11-03 23:08:59 UTC) #6
Aleksey Shlyapnikov
lgtm https://codereview.chromium.org/695253002/diff/120001/chrome/common/extensions/api/gcd_private.idl File chrome/common/extensions/api/gcd_private.idl (right): https://codereview.chromium.org/695253002/diff/120001/chrome/common/extensions/api/gcd_private.idl#newcode84 chrome/common/extensions/api/gcd_private.idl:84: // Called when device establishing of secure session ...
6 years, 1 month ago (2014-11-03 23:35:09 UTC) #7
not at google - send to devlin
idl rs lgtm
6 years, 1 month ago (2014-11-03 23:38:20 UTC) #8
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/695253002/diff/120001/chrome/common/extensions/api/gcd_private.idl File chrome/common/extensions/api/gcd_private.idl (right): https://codereview.chromium.org/695253002/diff/120001/chrome/common/extensions/api/gcd_private.idl#newcode84 chrome/common/extensions/api/gcd_private.idl:84: // Called when device establishing of secure session is ...
6 years, 1 month ago (2014-11-04 00:54:38 UTC) #9
Ilya Sherman
histograms lgtm, thanks.
6 years, 1 month ago (2014-11-04 01:04:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/695253002/200001
6 years, 1 month ago (2014-11-04 01:51:51 UTC) #13
mednik
https://codereview.chromium.org/695253002/diff/200001/chrome/common/extensions/api/gcd_private.idl File chrome/common/extensions/api/gcd_private.idl (left): https://codereview.chromium.org/695253002/diff/200001/chrome/common/extensions/api/gcd_private.idl#oldcode62 chrome/common/extensions/api/gcd_private.idl:62: dictionary ConfirmationInfo { Why did this go away? How ...
6 years, 1 month ago (2014-11-04 02:47:46 UTC) #14
commit-bot: I haz the power
Committed patchset #11 (id:200001)
6 years, 1 month ago (2014-11-04 03:05:10 UTC) #15
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/b6f8838a4a34a4b173cc6aebbedba791c80a560b Cr-Commit-Position: refs/heads/master@{#302565}
6 years, 1 month ago (2014-11-04 03:06:18 UTC) #16
Vitaly Buka (NO REVIEWS)
6 years, 1 month ago (2014-11-04 20:19:06 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/695253002/diff/200001/chrome/common/extension...
File chrome/common/extensions/api/gcd_private.idl (left):

https://codereview.chromium.org/695253002/diff/200001/chrome/common/extension...
chrome/common/extensions/api/gcd_private.idl:62: dictionary ConfirmationInfo {
On 2014/11/04 02:47:46, mednik wrote:
> Why did this go away? How will the app know which confirmation type to show?

Now app choose which one to use.

https://codereview.chromium.org/695253002/diff/200001/chrome/common/extension...
File chrome/common/extensions/api/gcd_private.idl (right):

https://codereview.chromium.org/695253002/diff/200001/chrome/common/extension...
chrome/common/extensions/api/gcd_private.idl:1: // Copyright 2014 The Chromium
Authors. All rights reserved.
On 2014/11/04 02:47:46, mednik wrote:
> The changes in this file seem pretty big, and I would've loved to understand
> them first before the CL lands. We need to make various changes as a result of
> this and need to understand how this works, and I wasn't aware there would be
a
> CL so quickly (I thought first we would discuss it and get on the same page,
> like in a doc).

Sorry, I didn't thins we had open questions.
We discussed this on the last sync and later on chat with Zen.
So I started to feel bad that I promised this almost two weeks ago :-)

In short, App needs a way to fallback to different pairing types.

Let me know if you'd like to revert API change for now.

https://codereview.chromium.org/695253002/diff/200001/chrome/common/extension...
chrome/common/extensions/api/gcd_private.idl:85: // If |status| is |success| app
should vall |startPairing|.
On 2014/11/04 02:47:46, mednik wrote:
> Nit: typo "vall" -> "call".

Done.

https://codereview.chromium.org/695253002/diff/200001/chrome/common/extension...
chrome/common/extensions/api/gcd_private.idl:91: PairingType[] pairingTypes);
Yes, if device support several types, we would try to use some user-friendly
first and fallback to something reliable like pinCode.

On 2014/11/04 02:47:46, mednik wrote:
> Why do we need a list of pairing types? Can something support more than 1?
Which
> should the app use?

https://codereview.chromium.org/695253002/diff/200001/chrome/common/extension...
chrome/common/extensions/api/gcd_private.idl:132: // |pairingType| is the any
value provided
On 2014/11/04 02:47:46, mednik wrote:
> Nit: Missing ending period. Also typo "is the any".

Done.

https://codereview.chromium.org/695253002/diff/200001/chrome/common/extension...
chrome/common/extensions/api/gcd_private.idl:133: static void startPairing(long
sessionId,
On 2014/11/04 02:47:46, mednik wrote:
> When should this get called? How does this relate to calling confirmCode?

Done.

Powered by Google App Engine
This is Rietveld 408576698