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

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

Issue 281353005: Mojo: nuke EnvironmentData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gn Created 6 years, 6 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 | 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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | content/app/mojo/mojo_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698