Index: chrome/browser/local_discovery/privet_http_impl.cc |
diff --git a/chrome/browser/local_discovery/privet_http_impl.cc b/chrome/browser/local_discovery/privet_http_impl.cc |
index bbc2786d067065c7212d575dbcc15b5f26df477b..0685cb274d00f8da831444c48efb7504c3f554ff 100644 |
--- a/chrome/browser/local_discovery/privet_http_impl.cc |
+++ b/chrome/browser/local_discovery/privet_http_impl.cc |
@@ -4,6 +4,8 @@ |
#include "chrome/browser/local_discovery/privet_http_impl.h" |
+#include <algorithm> |
+ |
#include "base/bind.h" |
#include "base/message_loop/message_loop.h" |
#include "base/rand_util.h" |
@@ -549,6 +551,8 @@ void PrivetLocalPrintOperationImpl::OnSubmitdocResponse( |
timeout = static_cast<int>(timeout * random_scaling_factor); |
+ timeout = std::max(timeout, kPrivetMinimumTimeout); |
+ |
base::MessageLoop::current()->PostDelayedTask( |
FROM_HERE, base::Bind(&PrivetLocalPrintOperationImpl::DoCreatejob, |
weak_factory_.GetWeakPtr()), |