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

Side by Side Diff: mandoline/services/core_services/application_delegate_factory_notandroid.cc

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 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 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 "mandoline/services/core_services/application_delegate_factory.h" 5 #include "mandoline/services/core_services/application_delegate_factory.h"
6 6
7 #include "components/mus/mus_app.h" 7 #include "components/mus/mus_app.h"
8 #include "components/resource_provider/resource_provider_app.h" 8 #include "components/resource_provider/resource_provider_app.h"
9 #include "mojo/services/network/network_service_delegate.h" 9 #include "mojo/services/network/network_service_delegate.h"
10 10
11 namespace core_services { 11 namespace core_services {
12 12
13 scoped_ptr<mojo::ApplicationDelegate> CreateApplicationDelegateNotAndroid( 13 scoped_ptr<mojo::ShellClient> CreateApplicationDelegateNotAndroid(
14 const std::string& url) { 14 const std::string& url) {
15 if (url == "mojo://network_service/") 15 if (url == "mojo://network_service/")
16 return make_scoped_ptr(new mojo::NetworkServiceDelegate); 16 return make_scoped_ptr(new mojo::NetworkServiceDelegate);
17 if (url == "mojo://resource_provider/") { 17 if (url == "mojo://resource_provider/") {
18 return make_scoped_ptr( 18 return make_scoped_ptr(
19 new resource_provider::ResourceProviderApp("mojo:core_services")); 19 new resource_provider::ResourceProviderApp("mojo:core_services"));
20 } 20 }
21 if (url == "mojo://mus/") 21 if (url == "mojo://mus/")
22 return make_scoped_ptr(new mus::MandolineUIServicesApp); 22 return make_scoped_ptr(new mus::MandolineUIServicesApp);
23 return nullptr; 23 return nullptr;
24 } 24 }
25 25
26 } // namespace core_services 26 } // namespace core_services
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698