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

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

Issue 947253003: Add ApplicationDelegate::Quit() (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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_impl.h" 5 #include "mojo/public/cpp/application/application_impl.h"
6 6
7 #include "mojo/public/cpp/application/application_delegate.h" 7 #include "mojo/public/cpp/application/application_delegate.h"
8 #include "mojo/public/cpp/application/lib/service_registry.h" 8 #include "mojo/public/cpp/application/lib/service_registry.h"
9 #include "mojo/public/cpp/bindings/interface_ptr.h" 9 #include "mojo/public/cpp/bindings/interface_ptr.h"
10 #include "mojo/public/cpp/environment/logging.h" 10 #include "mojo/public/cpp/environment/logging.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 internal::ServiceRegistry* registry = new internal::ServiceRegistry( 101 internal::ServiceRegistry* registry = new internal::ServiceRegistry(
102 this, requestor_url, exposed_services.Pass(), services.Pass()); 102 this, requestor_url, exposed_services.Pass(), services.Pass());
103 if (!delegate_->ConfigureIncomingConnection(registry)) { 103 if (!delegate_->ConfigureIncomingConnection(registry)) {
104 delete registry; 104 delete registry;
105 return; 105 return;
106 } 106 }
107 incoming_service_registries_.push_back(registry); 107 incoming_service_registries_.push_back(registry);
108 } 108 }
109 109
110 void ApplicationImpl::RequestQuit() { 110 void ApplicationImpl::RequestQuit() {
111 delegate_->Quit();
111 Terminate(); 112 Terminate();
112 } 113 }
113 114
114 } // namespace mojo 115 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698