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

Issue 1653263005: [Experimental Framework] Move the trial token public key out of content and into the embedder. (Closed)

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

Description

[Experimental Framework] Move the trial token public key out of content and into the embedder. In order to make the code changes easier to reason about, this is now part 2 of a two-part commit. Part 1: https://codereview.chromium.org/1680873002/ BUG=543220 Committed: https://crrev.com/17b143af6e640744583640b405531b410569dd73 Cr-Commit-Position: refs/heads/master@{#375244}

Patch Set 1 #

Patch Set 2 : Switch content_shell to test public key #

Patch Set 3 : Remove unneeded public interface #

Patch Set 4 : Rebase; fix DLL export error in VS compile #

Total comments: 8

Patch Set 5 : Addressing feedback from PS#4 #

Patch Set 6 : Move /common/ code to /renderer/ #

Total comments: 6

Patch Set 7 : Addressing feedback from PS#6 (Comment nits) #

Total comments: 4

Patch Set 8 : Rebase, and update for recent token changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -36 lines) Patch
M chrome/chrome_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/renderer/origin_trials/origin_trial_key_manager.h View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/renderer/origin_trials/origin_trial_key_manager.cc View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/origin_trials/trial_token.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/origin_trials/trial_token.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -13 lines 0 comments Download
M content/renderer/origin_trials/trial_token_unittest.cc View 1 2 3 4 5 6 7 5 chunks +39 lines, -9 lines 0 comments Download
M content/renderer/origin_trials/trial_token_validator.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/origin_trials/trial_token_validator.cc View 1 2 3 4 5 2 chunks +13 lines, -4 lines 0 comments Download
A content/renderer/origin_trials/trial_token_validator_unittest.cc View 1 2 3 4 5 6 7 1 chunk +140 lines, -0 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.cc View 1 2 3 4 5 2 chunks +21 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-enabled.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-expired.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-multiple-tokens.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-stolen.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (8 generated)
iclelland
+r chasej, PTAL, thanks!
4 years, 10 months ago (2016-02-04 20:55:54 UTC) #2
iclelland
+r jochen -- Can you take a look? I've run this past a couple of ...
4 years, 10 months ago (2016-02-05 19:05:47 UTC) #3
iclelland
4 years, 10 months ago (2016-02-05 19:05:59 UTC) #5
iclelland
-r jochen - n/m, Sorry, I didn't see your OOO status until too late +r ...
4 years, 10 months ago (2016-02-05 19:10:55 UTC) #7
chasej
https://codereview.chromium.org/1653263005/diff/60001/chrome/common/origin_trials/origin_trial_key_manager.cc File chrome/common/origin_trials/origin_trial_key_manager.cc (right): https://codereview.chromium.org/1653263005/diff/60001/chrome/common/origin_trials/origin_trial_key_manager.cc#newcode20 chrome/common/origin_trials/origin_trial_key_manager.cc:20: base::StringPiece ChromeOriginTrialKeyManager::GetPublicKey() { The file name doesn't match the ...
4 years, 10 months ago (2016-02-05 19:35:28 UTC) #8
iclelland
https://codereview.chromium.org/1653263005/diff/60001/chrome/common/origin_trials/origin_trial_key_manager.cc File chrome/common/origin_trials/origin_trial_key_manager.cc (right): https://codereview.chromium.org/1653263005/diff/60001/chrome/common/origin_trials/origin_trial_key_manager.cc#newcode20 chrome/common/origin_trials/origin_trial_key_manager.cc:20: base::StringPiece ChromeOriginTrialKeyManager::GetPublicKey() { On 2016/02/05 19:35:28, chasej wrote: > ...
4 years, 10 months ago (2016-02-05 20:18:09 UTC) #9
chasej
LGTM.
4 years, 10 months ago (2016-02-05 21:52:55 UTC) #10
jam
why is this code in content/common? i don't see it hooked up yet. from the ...
4 years, 10 months ago (2016-02-08 17:20:24 UTC) #11
jam
On 2016/02/08 17:20:24, jam wrote: > why is this code in content/common? i don't see ...
4 years, 10 months ago (2016-02-08 17:20:36 UTC) #12
iclelland
On 2016/02/08 17:20:36, jam wrote: > On 2016/02/08 17:20:24, jam wrote: > > why is ...
4 years, 10 months ago (2016-02-08 18:09:15 UTC) #13
jam
On 2016/02/08 18:09:15, iclelland wrote: > On 2016/02/08 17:20:36, jam wrote: > > On 2016/02/08 ...
4 years, 10 months ago (2016-02-08 18:40:27 UTC) #14
iclelland
On 2016/02/08 18:40:27, jam wrote: > On 2016/02/08 18:09:15, iclelland wrote: > > On 2016/02/08 ...
4 years, 10 months ago (2016-02-08 18:44:30 UTC) #15
iclelland
jam -- can you PTAL again? I've moved all of the common code into renderer/ ...
4 years, 10 months ago (2016-02-09 15:34:39 UTC) #17
chasej
I noticed a few nits. https://codereview.chromium.org/1653263005/diff/100001/chrome/renderer/origin_trials/origin_trial_key_manager.cc File chrome/renderer/origin_trials/origin_trial_key_manager.cc (right): https://codereview.chromium.org/1653263005/diff/100001/chrome/renderer/origin_trials/origin_trial_key_manager.cc#newcode11 chrome/renderer/origin_trials/origin_trial_key_manager.cc:11: // https://crbug.com/543220 Nit: This ...
4 years, 10 months ago (2016-02-10 05:24:24 UTC) #18
iclelland
Thanks for catching those. https://codereview.chromium.org/1653263005/diff/100001/chrome/renderer/origin_trials/origin_trial_key_manager.cc File chrome/renderer/origin_trials/origin_trial_key_manager.cc (right): https://codereview.chromium.org/1653263005/diff/100001/chrome/renderer/origin_trials/origin_trial_key_manager.cc#newcode11 chrome/renderer/origin_trials/origin_trial_key_manager.cc:11: // https://crbug.com/543220 On 2016/02/10 05:24:23, ...
4 years, 10 months ago (2016-02-10 20:31:00 UTC) #19
jam
lgtm https://codereview.chromium.org/1653263005/diff/120001/chrome/renderer/chrome_content_renderer_client.h File chrome/renderer/chrome_content_renderer_client.h (right): https://codereview.chromium.org/1653263005/diff/120001/chrome/renderer/chrome_content_renderer_client.h#newcode160 chrome/renderer/chrome_content_renderer_client.h:160: nit: no blank line https://codereview.chromium.org/1653263005/diff/120001/content/shell/renderer/shell_content_renderer_client.h File content/shell/renderer/shell_content_renderer_client.h (right): ...
4 years, 10 months ago (2016-02-11 21:50:24 UTC) #20
iclelland
https://codereview.chromium.org/1653263005/diff/120001/chrome/renderer/chrome_content_renderer_client.h File chrome/renderer/chrome_content_renderer_client.h (right): https://codereview.chromium.org/1653263005/diff/120001/chrome/renderer/chrome_content_renderer_client.h#newcode160 chrome/renderer/chrome_content_renderer_client.h:160: On 2016/02/11 21:50:24, jam wrote: > nit: no blank ...
4 years, 10 months ago (2016-02-12 19:11:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653263005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653263005/140001
4 years, 10 months ago (2016-02-12 19:13:48 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-12 20:22:31 UTC) #26
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:44:50 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/17b143af6e640744583640b405531b410569dd73
Cr-Commit-Position: refs/heads/master@{#375244}

Powered by Google App Engine
This is Rietveld 408576698