Index: third_party/WebKit/Source/platform/scheduler/base/queueing_time_estimator.cc |
diff --git a/components/scheduler/base/queueing_time_estimator.cc b/third_party/WebKit/Source/platform/scheduler/base/queueing_time_estimator.cc |
similarity index 94% |
rename from components/scheduler/base/queueing_time_estimator.cc |
rename to third_party/WebKit/Source/platform/scheduler/base/queueing_time_estimator.cc |
index 1402380f5721e24ceb34ae9b87ca5785ed565760..a8efe8d5d6b551286fa30c46fa604bd55904976c 100644 |
--- a/components/scheduler/base/queueing_time_estimator.cc |
+++ b/third_party/WebKit/Source/platform/scheduler/base/queueing_time_estimator.cc |
@@ -2,10 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "components/scheduler/base/queueing_time_estimator.h" |
+#include "platform/scheduler/base/queueing_time_estimator.h" |
#include "base/time/default_tick_clock.h" |
+#include <algorithm> |
+ |
+namespace blink { |
namespace scheduler { |
namespace { |
@@ -29,8 +32,7 @@ base::TimeDelta ExpectedQueueingTimeFromTask(base::TimeTicks task_start, |
DCHECK(task_end >= window_start); |
base::TimeTicks task_in_window_start_time = |
std::max(task_start, window_start); |
- base::TimeTicks task_in_window_end_time = |
- std::min(task_end, window_end); |
+ base::TimeTicks task_in_window_end_time = std::min(task_end, window_end); |
DCHECK(task_in_window_end_time <= task_in_window_end_time); |
double probability_of_this_task = |
@@ -85,3 +87,4 @@ bool QueueingTimeEstimator::TimePastWindowEnd(base::TimeTicks time) { |
} |
} // namespace scheduler |
+} // namespace blink |