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

Unified Diff: mojo/shell/profile_service_loader.cc

Issue 395163002: Bundle the network service in the shell on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/profile_service_loader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/profile_service_loader.cc
diff --git a/mojo/shell/profile_service_loader.cc b/mojo/shell/profile_service_loader.cc
deleted file mode 100644
index 741d2f21c479ca1f15b6e2fa7c02c81f7bcae232..0000000000000000000000000000000000000000
--- a/mojo/shell/profile_service_loader.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/shell/profile_service_loader.h"
-
-#include "mojo/public/cpp/application/application_connection.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/application/application_impl.h"
-#include "mojo/services/profile/profile_service_impl.h"
-
-namespace mojo {
-namespace shell {
-
-ProfileServiceLoader::ProfileServiceLoader() {
-}
-
-ProfileServiceLoader::~ProfileServiceLoader() {
-}
-
-void ProfileServiceLoader::LoadService(
- ServiceManager* manager,
- const GURL& url,
- ScopedMessagePipeHandle shell_handle) {
- uintptr_t key = reinterpret_cast<uintptr_t>(manager);
- if (apps_.find(key) == apps_.end()) {
- scoped_ptr<ApplicationImpl> app(
- new ApplicationImpl(this, shell_handle.Pass()));
- apps_.add(key, app.Pass());
- }
-}
-
-void ProfileServiceLoader::OnServiceError(ServiceManager* manager,
- const GURL& url) {
- apps_.erase(reinterpret_cast<uintptr_t>(manager));
-}
-
-bool ProfileServiceLoader::ConfigureIncomingConnection(
- ApplicationConnection* connection) {
- connection->AddService<ProfileServiceImpl>();
- return true;
-}
-
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/profile_service_loader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698