| 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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 DCHECK(!is_shutdown_); | 744 DCHECK(!is_shutdown_); |
| 745 | 745 |
| 746 if (completed_basic_startup_ && delegate_) { | 746 if (completed_basic_startup_ && delegate_) { |
| 747 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 747 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 748 std::string process_type = | 748 std::string process_type = |
| 749 command_line.GetSwitchValueASCII(switches::kProcessType); | 749 command_line.GetSwitchValueASCII(switches::kProcessType); |
| 750 | 750 |
| 751 delegate_->ProcessExiting(process_type); | 751 delegate_->ProcessExiting(process_type); |
| 752 } | 752 } |
| 753 | 753 |
| 754 #if !defined(OS_IOS) |
| 755 ShutdownMojo(); |
| 756 #endif |
| 757 |
| 754 #if defined(OS_WIN) | 758 #if defined(OS_WIN) |
| 755 #ifdef _CRTDBG_MAP_ALLOC | 759 #ifdef _CRTDBG_MAP_ALLOC |
| 756 _CrtDumpMemoryLeaks(); | 760 _CrtDumpMemoryLeaks(); |
| 757 #endif // _CRTDBG_MAP_ALLOC | 761 #endif // _CRTDBG_MAP_ALLOC |
| 758 | 762 |
| 759 _Module.Term(); | 763 _Module.Term(); |
| 760 #endif // OS_WIN | 764 #endif // OS_WIN |
| 761 | 765 |
| 762 #if defined(OS_MACOSX) | 766 #if defined(OS_MACOSX) |
| 763 autorelease_pool_.reset(NULL); | 767 autorelease_pool_.reset(NULL); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 | 800 |
| 797 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 801 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
| 798 }; | 802 }; |
| 799 | 803 |
| 800 // static | 804 // static |
| 801 ContentMainRunner* ContentMainRunner::Create() { | 805 ContentMainRunner* ContentMainRunner::Create() { |
| 802 return new ContentMainRunnerImpl(); | 806 return new ContentMainRunnerImpl(); |
| 803 } | 807 } |
| 804 | 808 |
| 805 } // namespace content | 809 } // namespace content |
| OLD | NEW |