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

Issue 695523002: Change dont_embed_build_metadata default to 1 except for Official build and fix some unittests. (Closed)

Created:
6 years, 1 month ago by Sébastien Marchand
Modified:
6 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, erikwright+watch_chromium.org, Ilya Sherman, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Change dont_embed_build_metadata default to 1 except for Official build and fix some unittests. FieldTrialTest.DisableProbability was using Time::NowFromSystemTime - 1 year to generate a date before the build time. Instead use GetBuildTime - 1 year. TransportSecurityState::IsBuildTimely is using GetBuildTime to determine if the build is older than 10 weeks. Disable this and return a default value if DONT_EMBED_BUILD_METADATA is defined (i.e. The build time is invalid) and we're not doing an official build. CL based on https://codereview.chromium.org/685123005/ with some additional fixes for the unittests. BUG=314403 Committed: https://crrev.com/153e1b83e8af5e6f9dbd3b79e5e0643ea8bcf72c Cr-Commit-Position: refs/heads/master@{#302316}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address thakis' comment. #

Patch Set 3 : Fix a flakyness in ssl_error_classification.cc #

Total comments: 2

Patch Set 4 : Address M-A's comment. #

Patch Set 5 : Fix the logic in ssl_error_classification.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -10 lines) Patch
M base/build_time.h View 1 chunk +3 lines, -0 lines 0 comments Download
M base/build_time.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/field_trial_unittest.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M build/common.gypi View 2 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/ssl/ssl_error_classification.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M net/http/transport_security_state.cc View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
Sébastien Marchand
PTAL.
6 years, 1 month ago (2014-10-30 16:14:00 UTC) #2
M-A Ruel
lgtm thanks, that will save a lot of infrastructure usage with redundant test execution.
6 years, 1 month ago (2014-10-30 16:19:53 UTC) #3
Alexei Svitkine (slow)
LGTM
6 years, 1 month ago (2014-10-30 16:26:02 UTC) #4
Nico
lgtm, nice :-) Please make sure that you don't get the hardcoded build date in ...
6 years, 1 month ago (2014-10-30 16:56:15 UTC) #5
M-A Ruel
https://codereview.chromium.org/695523002/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/695523002/diff/1/build/common.gypi#newcode1509 build/common.gypi:1509: # generate anything deterministic with WPO enabled AFAIK. On ...
6 years, 1 month ago (2014-10-30 17:03:14 UTC) #6
Nico
On Thu, Oct 30, 2014 at 10:03 AM, <maruel@chromium.org> wrote: > > https://codereview.chromium.org/695523002/diff/1/build/common.gypi > File ...
6 years, 1 month ago (2014-10-30 17:04:21 UTC) #7
agl
LGTM for net/
6 years, 1 month ago (2014-10-30 17:11:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/695523002/20001
6 years, 1 month ago (2014-10-30 17:17:12 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/1450)
6 years, 1 month ago (2014-10-30 21:03:05 UTC) #12
M-A Ruel
https://codereview.chromium.org/695523002/diff/40001/chrome/browser/ssl/ssl_error_classification.cc File chrome/browser/ssl/ssl_error_classification.cc (right): https://codereview.chromium.org/695523002/diff/40001/chrome/browser/ssl/ssl_error_classification.cc#newcode356 chrome/browser/ssl/ssl_error_classification.cc:356: #if defined(OFFICIAL_BUILD) Why not use for consistency? #if defined(DONT_EMBED_BUILD_METADATA) ...
6 years, 1 month ago (2014-10-30 21:09:07 UTC) #13
Sébastien Marchand
I had to fix a flakiness in ssl_error_classification.cc, agl@, can you take another look please ...
6 years, 1 month ago (2014-10-30 21:09:41 UTC) #14
M-A Ruel
chrome/browser/ssl/ssl_error_classification.cc lgtm
6 years, 1 month ago (2014-10-30 21:13:06 UTC) #15
Sébastien Marchand
Addressed maruel's comment. https://codereview.chromium.org/695523002/diff/40001/chrome/browser/ssl/ssl_error_classification.cc File chrome/browser/ssl/ssl_error_classification.cc (right): https://codereview.chromium.org/695523002/diff/40001/chrome/browser/ssl/ssl_error_classification.cc#newcode356 chrome/browser/ssl/ssl_error_classification.cc:356: #if defined(OFFICIAL_BUILD) On 2014/10/30 21:09:07, M-A ...
6 years, 1 month ago (2014-10-30 21:14:06 UTC) #16
Sébastien Marchand
I've fixed the logic in ssl_error_classification, I was doing the opposite of what I wanted ...
6 years, 1 month ago (2014-10-30 21:51:51 UTC) #18
M-A Ruel
On 2014/10/30 21:51:51, Sébastien Marchand wrote: > I've fixed the logic in ssl_error_classification, I was ...
6 years, 1 month ago (2014-10-30 22:53:49 UTC) #19
Sébastien Marchand
Thanks, agl@, if this lgty feel free to flip the CQ bit.
6 years, 1 month ago (2014-10-31 00:11:28 UTC) #20
agl2
LGTM
6 years, 1 month ago (2014-10-31 18:12:01 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/695523002/100001
6 years, 1 month ago (2014-10-31 18:14:51 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:100001)
6 years, 1 month ago (2014-10-31 20:26:17 UTC) #25
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 20:26:42 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/153e1b83e8af5e6f9dbd3b79e5e0643ea8bcf72c
Cr-Commit-Position: refs/heads/master@{#302316}

Powered by Google App Engine
This is Rietveld 408576698