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

Side by Side Diff: mash/example/views_examples/views_examples.cc

Issue 2804373002: Eliminate Connector::Connect(), Connection, etc. (Closed)
Patch Set: . Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <memory> 5 #include <memory>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "mash/public/interfaces/launchable.mojom.h" 10 #include "mash/public/interfaces/launchable.mojom.h"
11 #include "mojo/public/cpp/bindings/binding_set.h" 11 #include "mojo/public/cpp/bindings/binding_set.h"
12 #include "services/service_manager/public/c/main.h" 12 #include "services/service_manager/public/c/main.h"
13 #include "services/service_manager/public/cpp/binder_registry.h" 13 #include "services/service_manager/public/cpp/binder_registry.h"
14 #include "services/service_manager/public/cpp/connection.h"
15 #include "services/service_manager/public/cpp/connector.h" 14 #include "services/service_manager/public/cpp/connector.h"
16 #include "services/service_manager/public/cpp/interface_factory.h" 15 #include "services/service_manager/public/cpp/interface_factory.h"
17 #include "services/service_manager/public/cpp/interface_registry.h" 16 #include "services/service_manager/public/cpp/interface_registry.h"
18 #include "services/service_manager/public/cpp/service.h" 17 #include "services/service_manager/public/cpp/service.h"
19 #include "services/service_manager/public/cpp/service_context.h" 18 #include "services/service_manager/public/cpp/service_context.h"
20 #include "services/service_manager/public/cpp/service_runner.h" 19 #include "services/service_manager/public/cpp/service_runner.h"
21 #include "services/tracing/public/cpp/provider.h" 20 #include "services/tracing/public/cpp/provider.h"
22 #include "ui/views/examples/example_base.h" 21 #include "ui/views/examples/example_base.h"
23 #include "ui/views/examples/examples_window.h" 22 #include "ui/views/examples/examples_window.h"
24 #include "ui/views/mus/aura_init.h" 23 #include "ui/views/mus/aura_init.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 tracing::Provider tracing_; 66 tracing::Provider tracing_;
68 std::unique_ptr<views::AuraInit> aura_init_; 67 std::unique_ptr<views::AuraInit> aura_init_;
69 68
70 DISALLOW_COPY_AND_ASSIGN(ViewsExamples); 69 DISALLOW_COPY_AND_ASSIGN(ViewsExamples);
71 }; 70 };
72 71
73 MojoResult ServiceMain(MojoHandle service_request_handle) { 72 MojoResult ServiceMain(MojoHandle service_request_handle) {
74 return service_manager::ServiceRunner(new ViewsExamples) 73 return service_manager::ServiceRunner(new ViewsExamples)
75 .Run(service_request_handle); 74 .Run(service_request_handle);
76 } 75 }
OLDNEW
« no previous file with comments | « mash/catalog_viewer/catalog_viewer.cc ('k') | mash/example/window_type_launcher/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698