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

Side by Side Diff: mojo/shell/public/cpp/lib/application_impl.cc

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 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 <algorithm> 5 #include <algorithm>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "mojo/application/public/cpp/application_delegate.h"
11 #include "mojo/application/public/cpp/application_impl.h"
12 #include "mojo/application/public/cpp/lib/service_registry.h"
13 #include "mojo/converters/network/network_type_converters.h" 10 #include "mojo/converters/network/network_type_converters.h"
14 #include "mojo/public/cpp/bindings/interface_ptr.h" 11 #include "mojo/public/cpp/bindings/interface_ptr.h"
15 #include "mojo/public/cpp/environment/logging.h" 12 #include "mojo/public/cpp/environment/logging.h"
13 #include "mojo/shell/public/cpp/application_delegate.h"
14 #include "mojo/shell/public/cpp/application_impl.h"
15 #include "mojo/shell/public/cpp/lib/service_registry.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 18
19 namespace { 19 namespace {
20 20
21 void DefaultTerminationClosure() { 21 void DefaultTerminationClosure() {
22 if (base::MessageLoop::current() && 22 if (base::MessageLoop::current() &&
23 base::MessageLoop::current()->is_running()) 23 base::MessageLoop::current()->is_running())
24 base::MessageLoop::current()->QuitWhenIdle(); 24 base::MessageLoop::current()->QuitWhenIdle();
25 } 25 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 CapabilityFilterPtr CreatePermissiveCapabilityFilter() { 173 CapabilityFilterPtr CreatePermissiveCapabilityFilter() {
174 CapabilityFilterPtr filter(CapabilityFilter::New()); 174 CapabilityFilterPtr filter(CapabilityFilter::New());
175 Array<String> all_interfaces; 175 Array<String> all_interfaces;
176 all_interfaces.push_back("*"); 176 all_interfaces.push_back("*");
177 filter->filter.insert("*", std::move(all_interfaces)); 177 filter->filter.insert("*", std::move(all_interfaces));
178 return filter; 178 return filter;
179 } 179 }
180 180
181 } // namespace mojo 181 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/lib/application_delegate.cc ('k') | mojo/shell/public/cpp/lib/application_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698