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

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

Issue 23147002: Enable high resolution time for TimeTicks::Now on Windows Canary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Simpler sleep & rebase Created 7 years, 3 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
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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 (delegate && 679 (delegate &&
680 delegate->ProcessRegistersWithSystemProcess(process_type))) { 680 delegate->ProcessRegistersWithSystemProcess(process_type))) {
681 base::PowerMonitorDeviceSource::AllocateSystemIOPorts(); 681 base::PowerMonitorDeviceSource::AllocateSystemIOPorts();
682 } 682 }
683 683
684 if (!process_type.empty() && 684 if (!process_type.empty() &&
685 (!delegate || delegate->ShouldSendMachPort(process_type))) { 685 (!delegate || delegate->ShouldSendMachPort(process_type))) {
686 MachBroker::ChildSendTaskPortToParent(); 686 MachBroker::ChildSendTaskPortToParent();
687 } 687 }
688 #elif defined(OS_WIN) 688 #elif defined(OS_WIN)
689 if (command_line.HasSwitch(switches::kEnableHighResolutionTime))
690 base::TimeTicks::SetNowIsHighResNowIfSupported();
691
689 // This must be done early enough since some helper functions like 692 // This must be done early enough since some helper functions like
690 // IsTouchEnabled, needed to load resources, may call into the theme dll. 693 // IsTouchEnabled, needed to load resources, may call into the theme dll.
691 EnableThemeSupportOnAllWindowStations(); 694 EnableThemeSupportOnAllWindowStations();
692 SetupCRT(command_line); 695 SetupCRT(command_line);
693 #endif 696 #endif
694 697
695 #if defined(OS_POSIX) 698 #if defined(OS_POSIX)
696 if (!process_type.empty()) { 699 if (!process_type.empty()) {
697 // When you hit Ctrl-C in a terminal running the browser 700 // When you hit Ctrl-C in a terminal running the browser
698 // process, a SIGINT is delivered to the entire process group. 701 // process, a SIGINT is delivered to the entire process group.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 839
837 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 840 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
838 }; 841 };
839 842
840 // static 843 // static
841 ContentMainRunner* ContentMainRunner::Create() { 844 ContentMainRunner* ContentMainRunner::Create() {
842 return new ContentMainRunnerImpl(); 845 return new ContentMainRunnerImpl();
843 } 846 }
844 847
845 } // namespace content 848 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698