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

Side by Side Diff: mojo/application/application_runner_chromium.cc

Issue 846443006: Include Mojo SDK/EDK via fully-qualified paths in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include to satisfy checkdeps Created 5 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/application/application_runner_chromium.h" 5 #include "mojo/application/application_runner_chromium.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "mojo/common/message_pump_mojo.h" 12 #include "mojo/common/message_pump_mojo.h"
13 #include "mojo/public/cpp/application/application_delegate.h" 13 #include "third_party/mojo/src/mojo/public/cpp/application/application_delegate. h"
14 #include "mojo/public/cpp/application/application_impl.h" 14 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 17
18 // static 18 // static
19 void ApplicationImpl::Terminate() { 19 void ApplicationImpl::Terminate() {
20 if (base::MessageLoop::current()->is_running()) 20 if (base::MessageLoop::current()->is_running())
21 base::MessageLoop::current()->Quit(); 21 base::MessageLoop::current()->Quit();
22 } 22 }
23 23
24 ApplicationRunnerChromium::ApplicationRunnerChromium( 24 ApplicationRunnerChromium::ApplicationRunnerChromium(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 ApplicationImpl impl(delegate_.get(), 60 ApplicationImpl impl(delegate_.get(),
61 MakeScopedHandle(MessagePipeHandle(shell_handle))); 61 MakeScopedHandle(MessagePipeHandle(shell_handle)));
62 loop->Run(); 62 loop->Run();
63 } 63 }
64 delegate_.reset(); 64 delegate_.reset();
65 return MOJO_RESULT_OK; 65 return MOJO_RESULT_OK;
66 } 66 }
67 67
68 } // namespace mojo 68 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/application/application_runner_chromium.h ('k') | mojo/application/application_test_main_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698