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

Side by Side Diff: mojo/application/public/cpp/lib/application_runner.cc

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 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/public/cpp/application/application_runner.h" 5 #include "mojo/application/public/cpp/application_runner.h"
6 6
7 #include "mojo/public/cpp/application/application_delegate.h" 7 #include "mojo/application/public/cpp/application_delegate.h"
8 #include "mojo/public/cpp/application/application_impl.h" 8 #include "mojo/application/public/cpp/application_impl.h"
9 #include "mojo/public/cpp/environment/environment.h" 9 #include "mojo/public/cpp/environment/environment.h"
10 #include "mojo/public/cpp/utility/run_loop.h" 10 #include "mojo/public/cpp/utility/run_loop.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 // static 14 // static
15 void ApplicationImpl::Terminate() { 15 void ApplicationImpl::Terminate() {
16 RunLoop::current()->Quit(); 16 RunLoop::current()->Quit();
17 } 17 }
18 18
(...skipping 12 matching lines...) Expand all
31 MessagePipeHandle(app_request_handle)))); 31 MessagePipeHandle(app_request_handle))));
32 loop.Run(); 32 loop.Run();
33 } 33 }
34 34
35 delete delegate_; 35 delete delegate_;
36 delegate_ = nullptr; 36 delegate_ = nullptr;
37 return MOJO_RESULT_OK; 37 return MOJO_RESULT_OK;
38 } 38 }
39 39
40 } // namespace mojo 40 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698