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

Issue 2751423004: Move NetworkingPrivateDelegate::CryptoVerify to networking_cast_private (Closed)

Created:
3 years, 9 months ago by tbarzic
Modified:
3 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move NetworkingPrivateDelegate::CryptoVerify to networking_cast_private Retires NetworkingPrivateDelegate::CryptoVerify and moves verification logic to ChromeNetworkingCastPrivateDelegate. Moves networkingPrivate API to use the NetworkingCastPrivateDelegate interface to delegate verification methods to chrome. Along the way, done some minor cleanup: - Make NetworkingCastPrivateDelegate take API agnostic argument for verification properties - Credentials, which used to be part of the //chrome CryptoVerify implementation, this CL moves the declaration to the interface - the object is now created by the delegate users before calling verification methods (it can be created from both networkingPrivate and networking.castPrivate API verification properties) - Make Credentials non-copyable - instead of copying the whole class. the credentials are now passed to a worker thread using a unique_ptr - Clean up the way DecodeAndVerifyCredentials helperr method returns results - instead of combination of bool return value and bool ptr argument, it now returns a 3-value enum. Next: move networking_private credentials getters and crypto util to networking_cast_private BUG=678737 Review-Url: https://codereview.chromium.org/2751423004 Cr-Commit-Position: refs/heads/master@{#459180} Committed: https://chromium.googlesource.com/chromium/src/+/a0d155d336a59388f84140f7b4c4f79cb1f36e40

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 5

Patch Set 9 : blocking pool removed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -727 lines) Patch
M chrome/browser/extensions/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -25 lines 0 comments Download
M chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc View 1 2 3 4 5 6 7 8 3 chunks +181 lines, -16 lines 0 comments Download
M chrome/browser/extensions/api/networking_cast_private/networking_cast_private_api.cc View 1 2 5 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/extensions/api/networking_cast_private/networking_cast_private_apitest.cc View 1 2 3 chunks +30 lines, -16 lines 0 comments Download
D chrome/browser/extensions/api/networking_private/crypto_verify_impl.h View 1 chunk +0 lines, -64 lines 0 comments Download
D chrome/browser/extensions/api/networking_private/crypto_verify_impl.cc View 1 chunk +0 lines, -243 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_apitest.cc View 1 2 3 4 5 6 7 8 6 chunks +112 lines, -47 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc View 1 2 3 4 5 6 7 8 6 chunks +63 lines, -14 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc View 1 2 3 4 5 5 chunks +62 lines, -16 lines 0 comments Download
D chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.h View 1 chunk +0 lines, -28 lines 0 comments Download
D chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc View 1 chunk +0 lines, -30 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M extensions/browser/api/networking_private/BUILD.gn View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/api/networking_private/networking_cast_private_delegate.h View 1 2 3 4 5 6 7 2 chunks +47 lines, -11 lines 0 comments Download
A extensions/browser/api/networking_private/networking_cast_private_delegate.cc View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_api.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/networking_private/networking_private_api.cc View 1 2 3 4 5 6 7 6 chunks +44 lines, -24 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_chromeos.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -5 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_delegate.h View 1 2 3 4 5 6 7 3 chunks +1 line, -57 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_delegate.cc View 2 chunks +1 line, -47 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_delegate_factory.h View 3 chunks +0 lines, -14 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_delegate_factory.cc View 3 chunks +3 lines, -21 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_linux.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_linux.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -5 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_service_client.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -4 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_service_client.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 38 (28 generated)
tbarzic
Owners approvals I require: rdevlin.cronin: chrome/browser/extensions/BUILD.gn erg: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
3 years, 9 months ago (2017-03-22 04:23:16 UTC) #23
Elliot Glaysher
profiles lgtm
3 years, 9 months ago (2017-03-22 17:27:19 UTC) #26
Devlin
This is fine so far, but would you remind re-pinging once stevenjb@ signs off, just ...
3 years, 9 months ago (2017-03-22 20:17:17 UTC) #27
tbarzic
On 2017/03/22 20:17:17, Devlin wrote: > This is fine so far, but would you remind ...
3 years, 9 months ago (2017-03-22 20:18:20 UTC) #28
stevenjb
lgtm https://codereview.chromium.org/2751423004/diff/140001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc File chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc (right): https://codereview.chromium.org/2751423004/diff/140001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc#newcode194 chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc:194: sequence_token, base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); I think that we are supposed ...
3 years, 9 months ago (2017-03-22 20:26:01 UTC) #29
Devlin
chrome/browser/extensions/BUILD.gn lgtm
3 years, 9 months ago (2017-03-22 21:18:35 UTC) #30
tbarzic
https://codereview.chromium.org/2751423004/diff/140001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc File chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc (right): https://codereview.chromium.org/2751423004/diff/140001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc#newcode194 chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc:194: sequence_token, base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); On 2017/03/22 20:26:01, stevenjb wrote: > I ...
3 years, 9 months ago (2017-03-23 01:29:40 UTC) #31
stevenjb
lgtm ++ https://codereview.chromium.org/2751423004/diff/140001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc File chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc (right): https://codereview.chromium.org/2751423004/diff/140001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc#newcode194 chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc:194: sequence_token, base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); On 2017/03/23 01:29:40, tbarzic wrote: ...
3 years, 9 months ago (2017-03-23 18:18:34 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2751423004/160001
3 years, 9 months ago (2017-03-23 18:26:51 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 19:36:39 UTC) #38
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/a0d155d336a59388f84140f7b4c4...

Powered by Google App Engine
This is Rietveld 408576698