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

Unified Diff: content/browser/gamepad/gamepad_provider.cc

Issue 9185026: Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Explicitly include base/time.h in header file. Created 8 years, 11 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: content/browser/gamepad/gamepad_provider.cc
diff --git a/content/browser/gamepad/gamepad_provider.cc b/content/browser/gamepad/gamepad_provider.cc
index 4c00cc1ec4d5ec5a23a6c16e5589023e1faf2883..3c533c3172a6e55bc28a9953349bb975bad91067 100644
--- a/content/browser/gamepad/gamepad_provider.cc
+++ b/content/browser/gamepad/gamepad_provider.cc
@@ -140,7 +140,7 @@ void GamepadProvider::ScheduleDoPoll() {
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&GamepadProvider::DoPoll, weak_factory_.GetWeakPtr()),
- kDesiredSamplingIntervalMs);
+ base::TimeDelta::FromMilliseconds(kDesiredSamplingIntervalMs));
}
GamepadHardwareBuffer* GamepadProvider::SharedMemoryAsHardwareBuffer() {
« no previous file with comments | « content/browser/browser_thread_impl.cc ('k') | content/browser/renderer_host/resource_dispatcher_host_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698