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

Unified Diff: content/renderer/input/main_thread_event_queue.cc

Issue 2942273002: Avoid some static initializers in Windows builds (Closed)
Patch Set: Use constexpr [] instead of constexpr const * Created 3 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
Index: content/renderer/input/main_thread_event_queue.cc
diff --git a/content/renderer/input/main_thread_event_queue.cc b/content/renderer/input/main_thread_event_queue.cc
index c321c349dee23a6b3ff50adecc8f95654f9e4dab..ab5d0c6d9e26b36cbfd38b00705ca8d65e8ef49a 100644
--- a/content/renderer/input/main_thread_event_queue.cc
+++ b/content/renderer/input/main_thread_event_queue.cc
@@ -16,7 +16,7 @@ namespace content {
namespace {
const size_t kTenSeconds = 10 * 1000 * 1000;
-const base::TimeDelta kMaxRafDelay =
+constexpr base::TimeDelta kMaxRafDelay =
base::TimeDelta::FromMilliseconds(5 * 1000);
class QueuedClosure : public MainThreadEventQueueTask {
@@ -40,7 +40,7 @@ class QueuedClosure : public MainThreadEventQueueTask {
// Time interval at which touchmove events during scroll will be skipped
// during rAF signal.
-const base::TimeDelta kAsyncTouchMoveInterval =
+constexpr base::TimeDelta kAsyncTouchMoveInterval =
base::TimeDelta::FromMilliseconds(200);
} // namespace
« no previous file with comments | « chrome/install_static/policy_path_parser.cc ('k') | third_party/WebKit/Source/core/html/forms/TypeAhead.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698