Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: message_loop/message_pump_default.cc

Issue 2045303002: Update to Chromium //base at Chromium commit 3e81715e6d3a4324362635aea46ce1f1a163cca1. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/domokit/base@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « memory/discardable_memory.h ('k') | prefs/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: message_loop/message_pump_default.cc
diff --git a/message_loop/message_pump_default.cc b/message_loop/message_pump_default.cc
index daa80d853236a132f880f17de3a382f75f39c5dc..27c19e0227bc6f9d6c0f0d71562a2d14c466a42c 100644
--- a/message_loop/message_pump_default.cc
+++ b/message_loop/message_pump_default.cc
@@ -4,8 +4,6 @@
#include "base/message_loop/message_pump_default.h"
-#include <algorithm>
-
#include "base/logging.h"
#include "base/threading/thread_restrictions.h"
@@ -54,13 +52,6 @@ void MessagePumpDefault::Run(Delegate* delegate) {
event_.Wait();
} else {
TimeDelta delay = delayed_work_time_ - TimeTicks::Now();
-#if defined(OS_WIN)
- // If the delay is greater than zero and under 1 ms we need to round up to
- // 1 ms or else we will end up spinning until it counts down to zero
- // because sub-ms waits aren't supported on Windows.
- if (delay > TimeDelta())
- delay = std::max(delay, TimeDelta::FromMilliseconds(1));
-#endif
if (delay > TimeDelta()) {
event_.TimedWait(delay);
} else {
« no previous file with comments | « memory/discardable_memory.h ('k') | prefs/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698