Reland: Issue 446203002: Initialize the now_function to the HighResNowWrapper in...
commit90f62d687d7e5049cf1f94cea8c59f6c6282437d
authorFadi Meawad <fmeawad@chromium.org>
Fri, 5 Sep 2014 18:05:11 +0000 (5 11:05 -0700)
committerFadi Meawad <fmeawad@chromium.org>
Fri, 5 Sep 2014 18:11:54 +0000 (5 18:11 +0000)
treea95387e0e63f9973210c2d1596b50b9bf2ee6fd7
parent87ceddc12645fe67ff70c2aed87ab7ba76fba64e
Reland: Issue 446203002: Initialize the now_function to the HighResNowWrapper in case High Res is supported

https://codereview.chromium.org/446203002/

The reland avoids using a static initializer for now_function, it initializes the function pointer on the first call instead.

I incorporated maruel@'s suggestions.

jam for
chrome/browser/
content/app/

willchan,maruel for
base/time/

BUG=400627
R=cpu@chromium.org, jam@chromium.org, maruel@chromium.org, thakis@chromium.org

Committed: https://chromium.googlesource.com/chromium/src/+/a7c8e5e3411d6a3d32f4e1a61f8baa3e438fee52

Review URL: https://codereview.chromium.org/530293002

Cr-Commit-Position: refs/heads/master@{#293555}
base/test/test_suite.cc
base/time/time.h
base/time/time_win.cc
chrome/browser/chrome_browser_main_win.cc
content/app/content_main_runner.cc