OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "chrome/profiling/profiling_main.h" | 5 #include "chrome/profiling/profiling_main.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 ProfilingGlobals* globals = ProfilingGlobals::Get(); | 90 ProfilingGlobals* globals = ProfilingGlobals::Get(); |
91 | 91 |
92 mojo::edk::Init(); | 92 mojo::edk::Init(); |
93 mojo::edk::ScopedIPCSupport ipc_support( | 93 mojo::edk::ScopedIPCSupport ipc_support( |
94 globals->GetIORunner(), | 94 globals->GetIORunner(), |
95 mojo::edk::ScopedIPCSupport::ShutdownPolicy::CLEAN); | 95 mojo::edk::ScopedIPCSupport::ShutdownPolicy::CLEAN); |
96 | 96 |
97 base::Process process = base::Process::Current(); | 97 base::Process process = base::Process::Current(); |
98 std::string pipe_id = base::IntToString(static_cast<int>(process.Pid())); | 98 std::string pipe_id = base::IntToString(static_cast<int>(process.Pid())); |
99 | 99 |
| 100 globals->GetMemlogConnectionManager()->StartConnections(pipe_id); |
| 101 |
100 if (!LaunchBrowser(cmdline, pipe_id)) | 102 if (!LaunchBrowser(cmdline, pipe_id)) |
101 return 1; | 103 return 1; |
102 | 104 |
103 ProfilingGlobals::Get()->RunMainMessageLoop(); | 105 ProfilingGlobals::Get()->RunMainMessageLoop(); |
104 | 106 |
105 #if defined(OS_WIN) | 107 #if defined(OS_WIN) |
106 base::win::SetShouldCrashOnProcessDetach(false); | 108 base::win::SetShouldCrashOnProcessDetach(false); |
107 #endif | 109 #endif |
108 return 0; | 110 return 0; |
109 } | 111 } |
110 | 112 |
111 } // namespace profiling | 113 } // namespace profiling |
OLD | NEW |