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

Side by Side Diff: services/ui/view_manager/view_manager_app.cc

Issue 1977023003: ApplicationConnection devolution, part 4 (the end). (Closed) Base URL: https://github.com/domokit/mojo.git@work790_app_conn_devo_3.1
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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "services/ui/view_manager/view_manager_app.h" 5 #include "services/ui/view_manager/view_manager_app.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/trace_event/trace_event.h" 12 #include "base/trace_event/trace_event.h"
13 #include "mojo/application/application_runner_chromium.h" 13 #include "mojo/application/application_runner_chromium.h"
14 #include "mojo/common/tracing_impl.h" 14 #include "mojo/common/tracing_impl.h"
15 #include "mojo/public/c/system/main.h" 15 #include "mojo/public/c/system/main.h"
16 #include "mojo/public/cpp/application/application_connection.h"
17 #include "mojo/public/cpp/application/application_impl.h" 16 #include "mojo/public/cpp/application/application_impl.h"
18 #include "mojo/public/cpp/application/connect.h" 17 #include "mojo/public/cpp/application/connect.h"
18 #include "mojo/public/cpp/application/service_provider_impl.h"
19 #include "services/ui/view_manager/view_manager_impl.h" 19 #include "services/ui/view_manager/view_manager_impl.h"
20 20
21 namespace view_manager { 21 namespace view_manager {
22 22
23 ViewManagerApp::ViewManagerApp() : app_impl_(nullptr) {} 23 ViewManagerApp::ViewManagerApp() : app_impl_(nullptr) {}
24 24
25 ViewManagerApp::~ViewManagerApp() {} 25 ViewManagerApp::~ViewManagerApp() {}
26 26
27 void ViewManagerApp::Initialize(mojo::ApplicationImpl* app_impl) { 27 void ViewManagerApp::Initialize(mojo::ApplicationImpl* app_impl) {
28 app_impl_ = app_impl; 28 app_impl_ = app_impl;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void ViewManagerApp::OnAssociateConnectionError(const std::string& url) { 79 void ViewManagerApp::OnAssociateConnectionError(const std::string& url) {
80 LOG(ERROR) << "Exiting due to view associate connection error: url=" << url; 80 LOG(ERROR) << "Exiting due to view associate connection error: url=" << url;
81 Shutdown(); 81 Shutdown();
82 } 82 }
83 83
84 void ViewManagerApp::Shutdown() { 84 void ViewManagerApp::Shutdown() {
85 app_impl_->Terminate(); 85 app_impl_->Terminate();
86 } 86 }
87 87
88 } // namespace view_manager 88 } // namespace view_manager
OLDNEW
« no previous file with comments | « services/ui/launcher/launcher_app.cc ('k') | services/url_response_disk_cache/url_response_disk_cache_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698