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

Unified Diff: base/threading/platform_thread_posix.cc

Issue 9703053: Remove old Sleep and PostDelayedTask interfaces that use int ms instead of TimeDelta. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove old PDT interface in webkit/dom_storage. Created 8 years, 9 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
Index: base/threading/platform_thread_posix.cc
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
index 24bf3d2b8a565e86538d2f06b96c0b40df2f125a..e44c695ad5725b002c3bfff5709f0cc77a3b57f2 100644
--- a/base/threading/platform_thread_posix.cc
+++ b/base/threading/platform_thread_posix.cc
@@ -152,13 +152,6 @@ void PlatformThread::YieldCurrentThread() {
}
// static
-void PlatformThread::Sleep(int duration_ms) {
- // NOTE: This function will be supplanted by the other version of Sleep
- // in the future. See issue 108171 for more information.
- Sleep(TimeDelta::FromMilliseconds(duration_ms));
-}
-
-// static
void PlatformThread::Sleep(TimeDelta duration) {
struct timespec sleep_time, remaining;

Powered by Google App Engine
This is Rietveld 408576698