Commit 3cafa5dd authored by Dominique Fauteux-Chapleau's avatar Dominique Fauteux-Chapleau Committed by Commit Bot

Change kIsPasteAllowedRequestTooOld from 1 min to 5 mins

Bug: 1102530
Change-Id: I89feec186c7e8636374100e6c4f94b14b4b8ae59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2302928Reviewed-by: default avatarRoger Tawa <rogerta@chromium.org>
Reviewed-by: default avatarBo <boliu@chromium.org>
Commit-Queue: Dominique Fauteux-Chapleau <domfc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790040}
parent 4c0a416e
......@@ -30,10 +30,15 @@
namespace content {
// TODO(rogerta): how old is too old will need to be determined, maybe via
// experimentation. For now using 1 minute.
// 5 mins is based on the timeout in BinaryUploadService. This scanning timeout
// of 5 mins means no paste will be held back longer before being allowed or
// blocked, so matching this timeout with the threshold for a paste being too
// old ensures scans that:
// - Scans that timeout can be retried without waiting
// - Scans that succeed will apply their verdicts without the risk that their
// associated IsPasteAllowedRequest is already too old.
const base::TimeDelta ClipboardHostImpl::kIsPasteAllowedRequestTooOld =
base::TimeDelta::FromMinutes(1);
base::TimeDelta::FromMinutes(5);
ClipboardHostImpl::IsPasteAllowedRequest::IsPasteAllowedRequest() = default;
ClipboardHostImpl::IsPasteAllowedRequest::~IsPasteAllowedRequest() = default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment