summaryrefslogtreecommitdiff
path: root/chromium/third_party/libaddressinput
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-01-08 13:11:51 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-01-12 14:24:45 +0000
commitfa98118a45f7e169f8846086dc2c22c49a8ba310 (patch)
tree3d21874df649136e2df0d6fc16da117d1484d93f /chromium/third_party/libaddressinput
parent42165222878a38f10aaedf3a123ae7200a85a091 (diff)
downloadqtwebengine-chromium-fa98118a45f7e169f8846086dc2c22c49a8ba310.tar.gz
BASELINE: Update Chromium to 87.0.4280.144
Change-Id: I9c1b2ad99474c7252ee250024961d8ed86464e32 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/libaddressinput')
-rw-r--r--chromium/third_party/libaddressinput/chromium/chrome_metadata_source.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chromium/third_party/libaddressinput/chromium/chrome_metadata_source.cc b/chromium/third_party/libaddressinput/chromium/chrome_metadata_source.cc
index 1e63e01ae9e..6bc02079f33 100644
--- a/chromium/third_party/libaddressinput/chromium/chrome_metadata_source.cc
+++ b/chromium/third_party/libaddressinput/chromium/chrome_metadata_source.cc
@@ -94,6 +94,9 @@ void ChromeMetadataSource::Download(const std::string& key,
std::unique_ptr<network::SimpleURLLoader> loader =
network::SimpleURLLoader::Create(std::move(resource_request),
traffic_annotation);
+ // Limit the request duration to 5 seconds.
+ loader->SetTimeoutDuration(base::TimeDelta::FromSeconds(5));
+
auto it = requests_.insert(
requests_.begin(),
std::make_unique<Request>(key, std::move(loader), downloaded));