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

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

Issue 1926123002: Add a ctor for InterfaceRequest<I> that takes a ScopedMessagePipeHandle, and remove MakeRequest<I>(… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | mojo/public/cpp/application/lib/application_runner.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 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/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #endif 51 #endif
52 52
53 { 53 {
54 std::unique_ptr<base::MessageLoop> loop; 54 std::unique_ptr<base::MessageLoop> loop;
55 if (message_loop_type_ == base::MessageLoop::TYPE_CUSTOM) 55 if (message_loop_type_ == base::MessageLoop::TYPE_CUSTOM)
56 loop.reset(new base::MessageLoop(common::MessagePumpMojo::Create())); 56 loop.reset(new base::MessageLoop(common::MessagePumpMojo::Create()));
57 else 57 else
58 loop.reset(new base::MessageLoop(message_loop_type_)); 58 loop.reset(new base::MessageLoop(message_loop_type_));
59 59
60 ApplicationImpl impl(delegate_.get(), 60 ApplicationImpl impl(delegate_.get(),
61 MakeRequest<Application>(MakeScopedHandle( 61 InterfaceRequest<Application>(MakeScopedHandle(
62 MessagePipeHandle(application_request_handle)))); 62 MessagePipeHandle(application_request_handle))));
63 loop->Run(); 63 loop->Run();
64 } 64 }
65 delegate_.reset(); 65 delegate_.reset();
66 return MOJO_RESULT_OK; 66 return MOJO_RESULT_OK;
67 } 67 }
68 68
69 } // namespace mojo 69 } // namespace mojo
OLDNEW
« no previous file with comments | « no previous file | mojo/public/cpp/application/lib/application_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698