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

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

Issue 12150004: Category group support/Renamings. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed review comments + a few improvements. Created 7 years, 10 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
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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 628
629 #if defined(OS_WIN) 629 #if defined(OS_WIN)
630 // Route stdio to parent console (if any) or create one. 630 // Route stdio to parent console (if any) or create one.
631 if (command_line.HasSwitch(switches::kEnableLogging)) 631 if (command_line.HasSwitch(switches::kEnableLogging))
632 base::RouteStdioToConsole(); 632 base::RouteStdioToConsole();
633 #endif 633 #endif
634 634
635 // Enable startup tracing asap to avoid early TRACE_EVENT calls being 635 // Enable startup tracing asap to avoid early TRACE_EVENT calls being
636 // ignored. 636 // ignored.
637 if (command_line.HasSwitch(switches::kTraceStartup)) { 637 if (command_line.HasSwitch(switches::kTraceStartup)) {
638 base::debug::CategoryFilter category_filter(
639 command_line.GetSwitchValueASCII(switches::kTraceStartup));
638 base::debug::TraceLog::GetInstance()->SetEnabled( 640 base::debug::TraceLog::GetInstance()->SetEnabled(
639 command_line.GetSwitchValueASCII(switches::kTraceStartup), 641 category_filter,
640 base::debug::TraceLog::RECORD_UNTIL_FULL); 642 base::debug::TraceLog::RECORD_UNTIL_FULL);
641 } 643 }
642 644
643 #if defined(OS_MACOSX) && !defined(OS_IOS) 645 #if defined(OS_MACOSX) && !defined(OS_IOS)
644 // We need to allocate the IO Ports before the Sandbox is initialized or 646 // We need to allocate the IO Ports before the Sandbox is initialized or
645 // the first instance of SystemMonitor is created. 647 // the first instance of SystemMonitor is created.
646 // It's important not to allocate the ports for processes which don't 648 // It's important not to allocate the ports for processes which don't
647 // register with the system monitor - see crbug.com/88867. 649 // register with the system monitor - see crbug.com/88867.
648 if (process_type.empty() || 650 if (process_type.empty() ||
649 process_type == switches::kPluginProcess || 651 process_type == switches::kPluginProcess ||
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 815
814 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 816 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
815 }; 817 };
816 818
817 // static 819 // static
818 ContentMainRunner* ContentMainRunner::Create() { 820 ContentMainRunner* ContentMainRunner::Create() {
819 return new ContentMainRunnerImpl(); 821 return new ContentMainRunnerImpl();
820 } 822 }
821 823
822 } // namespace content 824 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698