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

Unified Diff: trunk/src/content/app/content_main_runner.cc

Issue 45783003: Revert 230968 "Use HighResNow whenever possible on Windows." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 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: trunk/src/content/app/content_main_runner.cc
===================================================================
--- trunk/src/content/app/content_main_runner.cc (revision 231150)
+++ trunk/src/content/app/content_main_runner.cc (working copy)
@@ -682,7 +682,8 @@
MachBroker::ChildSendTaskPortToParent();
}
#elif defined(OS_WIN)
- base::TimeTicks::SetNowIsHighResNowIfSupported();
+ if (command_line.HasSwitch(switches::kEnableHighResolutionTime))
+ base::TimeTicks::SetNowIsHighResNowIfSupported();
// This must be done early enough since some helper functions like
// IsTouchEnabled, needed to load resources, may call into the theme dll.
« no previous file with comments | « trunk/src/chrome/browser/chrome_browser_main_win.cc ('k') | trunk/src/content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698