DescriptionChange 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 #
Messages
Total messages: 26 (6 generated)
|