Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow manually completed critical origin trials
In rare cases critical origin trials need to be completed manually. This change introduces an expiry grace period of 30 days that gives the origin trials team the necessary time to coordinate the necessary completion tasks. Bug: 1264731 Change-Id: I569673899f9fff241f62a179fa9d276e44db386e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3501834 Reviewed-by: Jason Chase <chasej@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Panos Astithas <pastithas@google.com> Auto-Submit: Panos Astithas <pastithas@google.com> Cr-Commit-Position: refs/heads/main@{#985537}
- Loading branch information
Showing
10 changed files
with
204 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file covers ownership of the following file: | ||
# //third_party/blink/common/origin_trials/manual_completion_origin_trial_features.cc | ||
|
||
chasej@chromium.org | ||
danielrsmith@google.com | ||
kyleju@chromium.org | ||
pastithas@google.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
third_party/blink/common/origin_trials/manual_completion_origin_trial_features.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2022 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
// This file provides FeatureHasExpiryGracePeriod which is declared in | ||
// origin_trials.h. FeatureHasExpiryGracePeriod is defined in this file since | ||
// changes to it require review from the origin trials team, listed in the | ||
// OWNERS file. | ||
|
||
#include "third_party/blink/public/common/origin_trials/origin_trials.h" | ||
|
||
#include "base/containers/contains.h" | ||
|
||
namespace blink::origin_trials { | ||
|
||
bool FeatureHasExpiryGracePeriod(OriginTrialFeature feature) { | ||
static OriginTrialFeature const kHasExpiryGracePeriod[] = { | ||
// Enable the kOriginTrialsSampleAPIExpiryGracePeriod feature as a manual | ||
// completion feature, for tests. | ||
OriginTrialFeature::kOriginTrialsSampleAPIExpiryGracePeriod, | ||
}; | ||
return base::Contains(kHasExpiryGracePeriod, feature); | ||
} | ||
|
||
} // namespace blink::origin_trials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters