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

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

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

Powered by Google App Engine
This is Rietveld 408576698