| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 // This checks kTraceConfigFile switch. | 609 // This checks kTraceConfigFile switch. |
| 610 base::trace_event::TraceLog::GetInstance()->SetEnabled( | 610 base::trace_event::TraceLog::GetInstance()->SetEnabled( |
| 611 tracing::TraceConfigFile::GetInstance()->GetTraceConfig(), | 611 tracing::TraceConfigFile::GetInstance()->GetTraceConfig(), |
| 612 base::trace_event::TraceLog::RECORDING_MODE); | 612 base::trace_event::TraceLog::RECORDING_MODE); |
| 613 } | 613 } |
| 614 } | 614 } |
| 615 #endif // !OS_ANDROID | 615 #endif // !OS_ANDROID |
| 616 | 616 |
| 617 #if defined(OS_WIN) | 617 #if defined(OS_WIN) |
| 618 // Enable exporting of events to ETW if requested on the command line. | 618 // Enable exporting of events to ETW if requested on the command line. |
| 619 if (command_line.HasSwitch(switches::kTraceExportEventsToETW)) | 619 //if (command_line.HasSwitch(switches::kTraceExportEventsToETW)) |
| 620 base::trace_event::TraceEventETWExport::EnableETWExport(); | 620 //base::trace_event::TraceEventETWExport::EnableETWExport(); |
| 621 #endif // OS_WIN | 621 #endif // OS_WIN |
| 622 | 622 |
| 623 #if !defined(OS_ANDROID) | 623 #if !defined(OS_ANDROID) |
| 624 // Android tracing started at the beginning of the method. | 624 // Android tracing started at the beginning of the method. |
| 625 // Other OSes have to wait till we get here in order for all the memory | 625 // Other OSes have to wait till we get here in order for all the memory |
| 626 // management setup to be completed. | 626 // management setup to be completed. |
| 627 TRACE_EVENT0("startup,benchmark", "ContentMainRunnerImpl::Initialize"); | 627 TRACE_EVENT0("startup,benchmark", "ContentMainRunnerImpl::Initialize"); |
| 628 #endif // !OS_ANDROID | 628 #endif // !OS_ANDROID |
| 629 | 629 |
| 630 #if defined(OS_MACOSX) | 630 #if defined(OS_MACOSX) |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 | 841 |
| 842 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 842 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
| 843 }; | 843 }; |
| 844 | 844 |
| 845 // static | 845 // static |
| 846 ContentMainRunner* ContentMainRunner::Create() { | 846 ContentMainRunner* ContentMainRunner::Create() { |
| 847 return new ContentMainRunnerImpl(); | 847 return new ContentMainRunnerImpl(); |
| 848 } | 848 } |
| 849 | 849 |
| 850 } // namespace content | 850 } // namespace content |
| OLD | NEW |