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

Side by Side Diff: trunk/src/content/app/content_main_runner.cc

Issue 22984005: Revert 217172 "Enable high resolution time for TimeTicks::Now on..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/app/content_main_runner.h" 5 #include "content/public/app/content_main_runner.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/allocator/allocator_extension.h" 9 #include "base/allocator/allocator_extension.h"
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 (delegate && 664 (delegate &&
665 delegate->ProcessRegistersWithSystemProcess(process_type))) { 665 delegate->ProcessRegistersWithSystemProcess(process_type))) {
666 base::PowerMonitorDeviceSource::AllocateSystemIOPorts(); 666 base::PowerMonitorDeviceSource::AllocateSystemIOPorts();
667 } 667 }
668 668
669 if (!process_type.empty() && 669 if (!process_type.empty() &&
670 (!delegate || delegate->ShouldSendMachPort(process_type))) { 670 (!delegate || delegate->ShouldSendMachPort(process_type))) {
671 MachBroker::ChildSendTaskPortToParent(); 671 MachBroker::ChildSendTaskPortToParent();
672 } 672 }
673 #elif defined(OS_WIN) 673 #elif defined(OS_WIN)
674 if (command_line.HasSwitch(switches::kEnableHighResolutionTime))
675 base::TimeTicks::SetNowIsHighResNowIfSupported();
676
677 // This must be done early enough since some helper functions like 674 // This must be done early enough since some helper functions like
678 // IsTouchEnabled, needed to load resources, may call into the theme dll. 675 // IsTouchEnabled, needed to load resources, may call into the theme dll.
679 EnableThemeSupportOnAllWindowStations(); 676 EnableThemeSupportOnAllWindowStations();
680 SetupCRT(command_line); 677 SetupCRT(command_line);
681 #endif 678 #endif
682 679
683 #if defined(OS_POSIX) 680 #if defined(OS_POSIX)
684 if (!process_type.empty()) { 681 if (!process_type.empty()) {
685 // When you hit Ctrl-C in a terminal running the browser 682 // When you hit Ctrl-C in a terminal running the browser
686 // process, a SIGINT is delivered to the entire process group. 683 // process, a SIGINT is delivered to the entire process group.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 821
825 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 822 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
826 }; 823 };
827 824
828 // static 825 // static
829 ContentMainRunner* ContentMainRunner::Create() { 826 ContentMainRunner* ContentMainRunner::Create() {
830 return new ContentMainRunnerImpl(); 827 return new ContentMainRunnerImpl();
831 } 828 }
832 829
833 } // namespace content 830 } // namespace content
OLDNEW
« 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