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

Side by Side Diff: mojo/runner/desktop/launcher_process.cc

Issue 1091513005: Separate mojo/shell into a runner and the application manager (shell) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 8 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
« no previous file with comments | « mojo/runner/desktop/launcher_process.h ('k') | mojo/runner/desktop/main.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stdio.h> 5 #include <stdio.h>
6 #include <string.h> 6 #include <string.h>
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iostream> 9 #include <iostream>
10 10
11 #include "base/base_switches.h" 11 #include "base/base_switches.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/synchronization/waitable_event.h" 16 #include "base/synchronization/waitable_event.h"
17 #include "base/trace_event/trace_event.h" 17 #include "base/trace_event/trace_event.h"
18 #include "mojo/shell/context.h" 18 #include "mojo/runner/context.h"
19 #include "mojo/shell/switches.h" 19 #include "mojo/runner/switches.h"
20 20
21 namespace mojo { 21 namespace mojo {
22 namespace shell { 22 namespace shell {
23 namespace { 23 namespace {
24 24
25 // Whether we're currently tracing. 25 // Whether we're currently tracing.
26 bool g_tracing = false; 26 bool g_tracing = false;
27 27
28 // Number of tracing blocks written. 28 // Number of tracing blocks written.
29 uint32_t g_blocks = 0; 29 uint32_t g_blocks = 0;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 shell_context.Shutdown(); 127 shell_context.Shutdown();
128 } 128 }
129 129
130 if (g_tracing) 130 if (g_tracing)
131 StopTracingAndFlushToDisk(); 131 StopTracingAndFlushToDisk();
132 return 0; 132 return 0;
133 } 133 }
134 134
135 } // namespace shell 135 } // namespace shell
136 } // namespace mojo 136 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/runner/desktop/launcher_process.h ('k') | mojo/runner/desktop/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698