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

Unified Diff: base/pending_task.h

Issue 395913006: High resolution timer fix for Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: real fixes for review Created 6 years, 5 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/pending_task.h
diff --git a/base/pending_task.h b/base/pending_task.h
index 65e17f8d8cb575089325d6359fc08b5e3a5f2147..a2edc6947d09f9227ebc0b4ada81a7b6cd1c3551 100644
--- a/base/pending_task.h
+++ b/base/pending_task.h
@@ -18,9 +18,6 @@ namespace base {
// Contains data about a pending task. Stored in TaskQueue and DelayedTaskQueue
// for use by classes that queue and execute tasks.
struct BASE_EXPORT PendingTask : public TrackingInfo {
-#if _MSC_VER >= 1700
- PendingTask();
-#endif
PendingTask(const tracked_objects::Location& posted_from,
const Closure& task);
PendingTask(const tracked_objects::Location& posted_from,
@@ -43,6 +40,9 @@ struct BASE_EXPORT PendingTask : public TrackingInfo {
// OK to dispatch from a nested loop.
bool nestable;
+
+ // Needs high resolution timers.
+ bool is_high_res;
};
// Wrapper around std::queue specialized for PendingTask which adds a Swap

Powered by Google App Engine
This is Rietveld 408576698