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

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

Issue 299263002: Revert 272472 "Mojo: nuke EnvironmentData" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | trunk/src/content/app/mojo/mojo_init.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | trunk/src/content/app/mojo/mojo_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698