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

Unified Diff: webkit/glue/chromium_bridge_impl.cc

Issue 21122: Fix for http://code.google.com/p/chromium/issues/detail?id=7429... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/chromium_bridge_impl.cc
===================================================================
--- webkit/glue/chromium_bridge_impl.cc (revision 9302)
+++ webkit/glue/chromium_bridge_impl.cc (working copy)
@@ -24,6 +24,7 @@
#include "ScrollView.h"
#include "SystemTime.h"
#include "Widget.h"
+#include <wtf/CurrentTime.h>
#undef LOG
#include "base/clipboard.h"
@@ -489,7 +490,7 @@
void ChromiumBridge::setSharedTimerFireTime(double fire_time) {
DCHECK(shared_timer_function);
- int interval = static_cast<int>((fire_time - currentTime()) * 1000);
+ int interval = static_cast<int>((fire_time - WTF::currentTime()) * 1000);
if (interval < 0)
interval = 0;
@@ -531,7 +532,8 @@
// Called by SystemTimeChromium.cpp
double ChromiumBridge::currentTime() {
- // Get the current time in seconds since epoch.
+ // TODO(mbelshe): This can be deleted; SystemTimeChromium does not need this
+ // anymore.
return base::Time::Now().ToDoubleT();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698