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

Issue 2047683002: Store Origin Trials public key in browser prefs (Closed)

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

Description

Store Origin Trials public key in browser prefs It was pointed out during code review of another CL that the component updater will not read the manifest for an updated Origin Trials public key in time to set the command line for the renderer process. This CL solves the issue by having the component updater store the new key in browser local state. The new key will then not be used on the current browser run, but will take effect the next time the browser is started. The new preference is added as "origin_trials.public_key". Other origin trials policy configuration will be added within the "origin_trials" namespace. The command-line flag can still be used to temporarily override the preference for a single browser run. BUG=589830, 603588 Committed: https://crrev.com/27f4bcb37e897164fe60b13d7026057a1ee75003 Cr-Commit-Position: refs/heads/master@{#401304}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing first round review comments #

Total comments: 6

Patch Set 3 : Fix headers; don't set command line to use the default key #

Patch Set 4 : Rebase against https://codereview.chromium.org/2049783002 #

Patch Set 5 : Rebase; update SetupOriginTrials method name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -4 lines) Patch
M chrome/browser/chrome_browser_main.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/origin_trials_component_installer.cc View 1 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/prefs/origin_trial_prefs.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/prefs/origin_trial_prefs.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 25 (7 generated)
iclelland
I've split the introduction of preference logic off of the original CL (https://codereview.chromium.org/1741783002/) to make ...
4 years, 6 months ago (2016-06-07 13:58:12 UTC) #3
chasej
https://codereview.chromium.org/2047683002/diff/1/chrome/browser/component_updater/origin_trials_component_installer.cc File chrome/browser/component_updater/origin_trials_component_installer.cc (right): https://codereview.chromium.org/2047683002/diff/1/chrome/browser/component_updater/origin_trials_component_installer.cc#newcode76 chrome/browser/component_updater/origin_trials_component_installer.cc:76: local_state->Set("origin-trials.public-key", Can this use the prefs::kOriginTrialPublicKey constant defined in ...
4 years, 6 months ago (2016-06-07 15:09:40 UTC) #4
iclelland
https://codereview.chromium.org/2047683002/diff/1/chrome/browser/component_updater/origin_trials_component_installer.cc File chrome/browser/component_updater/origin_trials_component_installer.cc (right): https://codereview.chromium.org/2047683002/diff/1/chrome/browser/component_updater/origin_trials_component_installer.cc#newcode76 chrome/browser/component_updater/origin_trials_component_installer.cc:76: local_state->Set("origin-trials.public-key", On 2016/06/07 15:09:40, chasej wrote: > Can this ...
4 years, 6 months ago (2016-06-08 02:48:22 UTC) #5
Will Harris
Sorry one dumb question and one hopefully slightly less dumb question 1. can you explain ...
4 years, 6 months ago (2016-06-08 02:57:20 UTC) #6
iclelland
On 2016/06/08 02:57:20, Will Harris wrote: > Sorry one dumb question and one hopefully slightly ...
4 years, 6 months ago (2016-06-08 13:48:47 UTC) #7
chasej
lgtm
4 years, 6 months ago (2016-06-08 15:19:54 UTC) #8
Will Harris
https://codereview.chromium.org/2047683002/diff/20001/chrome/browser/prefs/origin_trial_prefs.cc File chrome/browser/prefs/origin_trial_prefs.cc (right): https://codereview.chromium.org/2047683002/diff/20001/chrome/browser/prefs/origin_trial_prefs.cc#newcode1 chrome/browser/prefs/origin_trial_prefs.cc:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 6 months ago (2016-06-08 21:35:27 UTC) #9
iclelland
https://codereview.chromium.org/2047683002/diff/20001/chrome/browser/prefs/origin_trial_prefs.cc File chrome/browser/prefs/origin_trial_prefs.cc (right): https://codereview.chromium.org/2047683002/diff/20001/chrome/browser/prefs/origin_trial_prefs.cc#newcode1 chrome/browser/prefs/origin_trial_prefs.cc:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 6 months ago (2016-06-09 03:06:39 UTC) #10
waffles
lgtm
4 years, 6 months ago (2016-06-09 15:20:04 UTC) #11
Will Harris
lgtm
4 years, 6 months ago (2016-06-09 16:13:23 UTC) #12
iclelland
Thanks, everyone! jochen, can you PTAL? (There are two other followup CLs to this one ...
4 years, 6 months ago (2016-06-09 16:21:07 UTC) #14
jochen (gone - plz use gerrit)
can you also rebase that one?
4 years, 6 months ago (2016-06-13 15:28:31 UTC) #15
iclelland
Rebased this onto https://codereview.chromium.org/2049783002/
4 years, 6 months ago (2016-06-15 09:45:06 UTC) #16
iclelland
On 2016/06/15 09:45:06, iclelland wrote: > Rebased this onto https://codereview.chromium.org/2049783002/ Rebased again, after changes to ...
4 years, 6 months ago (2016-06-22 15:01:53 UTC) #17
jochen (gone - plz use gerrit)
lgtm
4 years, 6 months ago (2016-06-22 15:03:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047683002/80001
4 years, 6 months ago (2016-06-22 16:22:17 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-22 16:41:20 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 16:43:05 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/27f4bcb37e897164fe60b13d7026057a1ee75003
Cr-Commit-Position: refs/heads/master@{#401304}

Powered by Google App Engine
This is Rietveld 408576698