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

Issue 1742053002: Move trial token code to content/common. (Closed)

Created:
4 years, 9 months ago by Marijn Kruisselbrink
Modified:
4 years, 9 months ago
CC:
chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move trial token code to content/common. Moves content/renderer/origin_trials/trial_token.* to content/common, and moves ContentRendererClient::GetOriginTrialPublicKey to ContentClient, to enable verification of trial tokens from the browser process. BUG=590873 Committed: https://crrev.com/67f486d991d883a5b3438f8ca820860e9979170d Cr-Commit-Position: refs/heads/master@{#380823}

Patch Set 1 #

Patch Set 2 : move verify method to a separate TrialTokenValidator namespace #

Total comments: 3

Patch Set 3 : add threading comment #

Patch Set 4 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -843 lines) Patch
M chrome/chrome_common.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_content_client.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/common/origin_trials/origin_trial_key_manager.h View 1 2 1 chunk +17 lines, -0 lines 2 comments Download
A + chrome/common/origin_trials/origin_trial_key_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 3 chunks +0 lines, -4 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
D chrome/renderer/origin_trials/origin_trial_key_manager.h View 1 chunk +0 lines, -15 lines 0 comments Download
D chrome/renderer/origin_trials/origin_trial_key_manager.cc View 1 chunk +0 lines, -23 lines 0 comments Download
A + content/common/origin_trials/trial_token.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + content/common/origin_trials/trial_token.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + content/common/origin_trials/trial_token_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A content/common/origin_trials/trial_token_validator.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A content/common/origin_trials/trial_token_validator.cc View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A + content/common/origin_trials/trial_token_validator_unittest.cc View 1 3 chunks +16 lines, -15 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/common/content_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 chunk +0 lines, -4 lines 0 comments Download
D content/renderer/origin_trials/trial_token.h View 1 1 chunk +0 lines, -109 lines 0 comments Download
D content/renderer/origin_trials/trial_token.cc View 1 2 3 1 chunk +0 lines, -159 lines 0 comments Download
D content/renderer/origin_trials/trial_token_unittest.cc View 1 1 chunk +0 lines, -243 lines 0 comments Download
D content/renderer/origin_trials/trial_token_validator.h View 1 1 chunk +0 lines, -35 lines 0 comments Download
D content/renderer/origin_trials/trial_token_validator.cc View 1 2 3 1 chunk +0 lines, -33 lines 0 comments Download
M content/renderer/origin_trials/trial_token_validator_unittest.cc View 1 1 chunk +0 lines, -147 lines 0 comments Download
A + content/renderer/origin_trials/web_trial_token_validator_impl.h View 1 3 chunks +7 lines, -7 lines 0 comments Download
A content/renderer/origin_trials/web_trial_token_validator_impl.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/common/shell_content_client.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/shell/common/shell_content_client.cc View 1 2 3 3 chunks +23 lines, -2 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.cc View 2 chunks +1 line, -21 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (14 generated)
Marijn Kruisselbrink
4 years, 9 months ago (2016-02-29 22:07:09 UTC) #10
Marijn Kruisselbrink
Updated this CL to include the changes I described in https://codereview.chromium.org/1752463002 (move token validation logic ...
4 years, 9 months ago (2016-03-04 00:27:44 UTC) #11
iclelland
This move lgtm now; sorry for the lag. https://codereview.chromium.org/1742053002/diff/60001/chrome/common/chrome_content_client.h File chrome/common/chrome_content_client.h (right): https://codereview.chromium.org/1742053002/diff/60001/chrome/common/chrome_content_client.h#newcode93 chrome/common/chrome_content_client.h:93: OriginTrialKeyManager ...
4 years, 9 months ago (2016-03-07 16:40:23 UTC) #12
Marijn Kruisselbrink
https://codereview.chromium.org/1742053002/diff/60001/chrome/common/chrome_content_client.h File chrome/common/chrome_content_client.h (right): https://codereview.chromium.org/1742053002/diff/60001/chrome/common/chrome_content_client.h#newcode93 chrome/common/chrome_content_client.h:93: OriginTrialKeyManager origin_trial_key_manager_; On 2016/03/07 at 16:40:23, iclelland wrote: > ...
4 years, 9 months ago (2016-03-08 20:32:56 UTC) #13
iclelland
https://codereview.chromium.org/1742053002/diff/60001/chrome/common/chrome_content_client.h File chrome/common/chrome_content_client.h (right): https://codereview.chromium.org/1742053002/diff/60001/chrome/common/chrome_content_client.h#newcode93 chrome/common/chrome_content_client.h:93: OriginTrialKeyManager origin_trial_key_manager_; On 2016/03/08 20:32:56, Marijn Kruisselbrink wrote: > ...
4 years, 9 months ago (2016-03-08 20:47:21 UTC) #14
Marijn Kruisselbrink
+jam for content/ and chrome/ OWNERS
4 years, 9 months ago (2016-03-08 22:20:21 UTC) #16
Marijn Kruisselbrink
jam seems to be unavailable, so +avi for content/ OWNERS +thakis for chrome/ OWNERS
4 years, 9 months ago (2016-03-11 20:33:57 UTC) #18
Avi (use Gerrit)
This looks like a pretty straightforward code move; lgtm
4 years, 9 months ago (2016-03-11 21:38:47 UTC) #19
Nico
chrome lgtm This is only dealing with trusted data that's fine to run outside the ...
4 years, 9 months ago (2016-03-11 21:49:06 UTC) #20
Marijn Kruisselbrink
On 2016/03/11 at 21:49:06, thakis wrote: > This is only dealing with trusted data that's ...
4 years, 9 months ago (2016-03-11 21:56:36 UTC) #21
Nico
On 2016/03/11 21:56:36, Marijn Kruisselbrink wrote: > On 2016/03/11 at 21:49:06, thakis wrote: > > ...
4 years, 9 months ago (2016-03-11 22:09:48 UTC) #22
Marijn Kruisselbrink
On 2016/03/11 at 22:09:48, thakis wrote: > On 2016/03/11 21:56:36, Marijn Kruisselbrink wrote: > > ...
4 years, 9 months ago (2016-03-11 22:45:59 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1742053002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1742053002/100001
4 years, 9 months ago (2016-03-12 00:34:57 UTC) #26
Nico
On 2016/03/11 22:45:59, Marijn Kruisselbrink wrote: > On 2016/03/11 at 22:09:48, thakis wrote: > > ...
4 years, 9 months ago (2016-03-12 00:43:17 UTC) #27
Marijn Kruisselbrink
On 2016/03/12 at 00:43:17, thakis wrote: > On 2016/03/11 22:45:59, Marijn Kruisselbrink wrote: > > ...
4 years, 9 months ago (2016-03-12 01:06:09 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 9 months ago (2016-03-12 01:34:40 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-12 01:36:57 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/67f486d991d883a5b3438f8ca820860e9979170d
Cr-Commit-Position: refs/heads/master@{#380823}

Powered by Google App Engine
This is Rietveld 408576698