Revert of Initialize the now_funciton to the HighResNowWrapper in case High Res is supported (patchset #7 of https://codereview.chromium.org/446203002/)

Reason for revert:
It causes a Canary crash

https://code.google.com/p/chromium/issues/detail?id=408354

The added static initializer causes a crash in libpeerconnetion used by WebRTC

Fix to reland: remove static initializer.

Original issue's description:
> We have noticed a clock shift when QPC was deployed. It shows as a regression on the perf bots
> https://chromeperf.appspot.com/report?masters=ChromiumPerf&bots=chromium-rel-win8-dual&tests=startup.warm.dirty.blank_page%2Fwindow_display_time&rev=286928
>
> It is not a real regression, the initial_time and initial_ticks are not properly initialized when switching to HighResolution (i.e. QPC).
> This CL initializes the now_function to the HighResNowWrapper instead of setting it to RolloverProtectedNow then to the HighResNowWrapper.
>
> By doing that, we avoid getting an incorrect initial_time and initial_ticks using the RolloverProtectedNow and avoid having to reinitialize.
>
> BUG=158234
>
> Committed: https://chromium.googlesource.com/chromium/src/+/10c40c221c314e41add0a5b4df1ee7467681a430

TBR=jar@chromium.org,willchan@chromium.org,maruel@chromium.org,thakis@chromium.org,jam@chromium.org,cpu@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=158234

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

Cr-Commit-Position: refs/heads/master@{#292288}


CrOS-Libchrome-Original-Commit: 3a38fb5efd526a2278ab3b577c8c7881a3ad4d20
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc
index c7a921a..0084d1e 100644
--- a/base/test/test_suite.cc
+++ b/base/test/test_suite.cc
@@ -135,6 +135,7 @@
 void TestSuite::PreInitialize(bool create_at_exit_manager) {
 #if defined(OS_WIN)
   testing::GTEST_FLAG(catch_exceptions) = false;
+  base::TimeTicks::SetNowIsHighResNowIfSupported();
 #endif
   base::EnableTerminationOnHeapCorruption();
 #if defined(OS_LINUX) && defined(USE_AURA)
diff --git a/base/time/time.h b/base/time/time.h
index d6f6f52..084ff45 100644
--- a/base/time/time.h
+++ b/base/time/time.h
@@ -623,6 +623,14 @@
   // This is only for testing.
   static bool IsHighResClockWorking();
 
+  // Enable high resolution time for TimeTicks::Now(). This function will
+  // test for the availability of a working implementation of
+  // QueryPerformanceCounter(). If one is not available, this function does
+  // nothing and the resolution of Now() remains 1ms. Otherwise, all future
+  // calls to TimeTicks::Now() will have the higher resolution provided by QPC.
+  // Returns true if high resolution time was successfully enabled.
+  static bool SetNowIsHighResNowIfSupported();
+
   // Returns a time value that is NOT rollover protected.
   static TimeTicks UnprotectedNow();
 #endif