| OLD | NEW |
| 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 delegate->ProcessRegistersWithSystemProcess(process_type))) { | 653 delegate->ProcessRegistersWithSystemProcess(process_type))) { |
| 654 base::SystemMonitor::AllocateSystemIOPorts(); | 654 base::SystemMonitor::AllocateSystemIOPorts(); |
| 655 } | 655 } |
| 656 | 656 |
| 657 if (!process_type.empty() && | 657 if (!process_type.empty() && |
| 658 (!delegate || delegate->ShouldSendMachPort(process_type))) { | 658 (!delegate || delegate->ShouldSendMachPort(process_type))) { |
| 659 SendTaskPortToParentProcess(); | 659 SendTaskPortToParentProcess(); |
| 660 } | 660 } |
| 661 #elif defined(OS_WIN) | 661 #elif defined(OS_WIN) |
| 662 // This must be done early enough since some helper functions like | 662 // This must be done early enough since some helper functions like |
| 663 // IsTouchEnanbled, needed to load resources, may call into the theme dll. | 663 // IsTouchEnabled, needed to load resources, may call into the theme dll. |
| 664 EnableThemeSupportOnAllWindowStations(); | 664 EnableThemeSupportOnAllWindowStations(); |
| 665 #if defined(ENABLE_HIDPI) | 665 #if defined(ENABLE_HIDPI) |
| 666 ui::EnableHighDPISupport(); | 666 ui::EnableHighDPISupport(); |
| 667 #endif | 667 #endif |
| 668 SetupCRT(command_line); | 668 SetupCRT(command_line); |
| 669 #endif | 669 #endif |
| 670 | 670 |
| 671 #if defined(OS_POSIX) | 671 #if defined(OS_POSIX) |
| 672 if (!process_type.empty()) { | 672 if (!process_type.empty()) { |
| 673 // When you hit Ctrl-C in a terminal running the browser | 673 // When you hit Ctrl-C in a terminal running the browser |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 | 812 |
| 813 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 813 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
| 814 }; | 814 }; |
| 815 | 815 |
| 816 // static | 816 // static |
| 817 ContentMainRunner* ContentMainRunner::Create() { | 817 ContentMainRunner* ContentMainRunner::Create() { |
| 818 return new ContentMainRunnerImpl(); | 818 return new ContentMainRunnerImpl(); |
| 819 } | 819 } |
| 820 | 820 |
| 821 } // namespace content | 821 } // namespace content |
| OLD | NEW |