| 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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 DCHECK(!is_shutdown_); | 770 DCHECK(!is_shutdown_); |
| 771 | 771 |
| 772 if (completed_basic_startup_ && delegate_) { | 772 if (completed_basic_startup_ && delegate_) { |
| 773 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 773 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 774 std::string process_type = | 774 std::string process_type = |
| 775 command_line.GetSwitchValueASCII(switches::kProcessType); | 775 command_line.GetSwitchValueASCII(switches::kProcessType); |
| 776 | 776 |
| 777 delegate_->ProcessExiting(process_type); | 777 delegate_->ProcessExiting(process_type); |
| 778 } | 778 } |
| 779 | 779 |
| 780 #if !defined(OS_IOS) | |
| 781 ShutdownMojo(); | |
| 782 #endif | |
| 783 | |
| 784 #if defined(OS_WIN) | 780 #if defined(OS_WIN) |
| 785 #ifdef _CRTDBG_MAP_ALLOC | 781 #ifdef _CRTDBG_MAP_ALLOC |
| 786 _CrtDumpMemoryLeaks(); | 782 _CrtDumpMemoryLeaks(); |
| 787 #endif // _CRTDBG_MAP_ALLOC | 783 #endif // _CRTDBG_MAP_ALLOC |
| 788 #endif // OS_WIN | 784 #endif // OS_WIN |
| 789 | 785 |
| 790 #if defined(OS_MACOSX) | 786 #if defined(OS_MACOSX) |
| 791 autorelease_pool_.reset(NULL); | 787 autorelease_pool_.reset(NULL); |
| 792 #endif | 788 #endif |
| 793 | 789 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 824 | 820 |
| 825 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 821 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
| 826 }; | 822 }; |
| 827 | 823 |
| 828 // static | 824 // static |
| 829 ContentMainRunner* ContentMainRunner::Create() { | 825 ContentMainRunner* ContentMainRunner::Create() { |
| 830 return new ContentMainRunnerImpl(); | 826 return new ContentMainRunnerImpl(); |
| 831 } | 827 } |
| 832 | 828 |
| 833 } // namespace content | 829 } // namespace content |
| OLD | NEW |