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

Unified Diff: mojo/services/profile/profile_service_impl.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/services/profile/profile_service_impl.h ('k') | mojo/shell/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/profile/profile_service_impl.cc
diff --git a/mojo/services/profile/profile_service_impl.cc b/mojo/services/profile/profile_service_impl.cc
deleted file mode 100644
index 312e24f69911cd216aa036dc0d0c79b90b195dfb..0000000000000000000000000000000000000000
--- a/mojo/services/profile/profile_service_impl.cc
+++ /dev/null
@@ -1,54 +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/services/profile/profile_service_impl.h"
-
-#include "base/base_paths.h"
-#include "base/files/file_path.h"
-#include "base/path_service.h"
-
-namespace {
-
-int BaseKeyForMojoKey(mojo::ProfileService::PathKey key) {
- switch(key) {
- case mojo::ProfileService::PATH_KEY_DIR_TEMP:
- return base::DIR_TEMP;
- default:
- return base::PATH_START;
- }
-}
-
-} // namespace
-
-namespace mojo {
-
-ProfileServiceImpl::ProfileServiceImpl(ApplicationConnection* connection) {
-}
-
-ProfileServiceImpl::~ProfileServiceImpl() {
-}
-
-void ProfileServiceImpl::GetPath(
- PathKey key,
- const mojo::Callback<void(mojo::String)>& callback) {
- int base_key = BaseKeyForMojoKey(key);
- if (base_key == base::PATH_START) {
- callback.Run(mojo::String());
- return;
- }
- base::FilePath path;
- if (!PathService::Get(base_key, &path)) {
- callback.Run(mojo::String());
- return;
- }
-#if defined(OS_POSIX)
- callback.Run(path.value());
-#elif defined(OS_WIN)
- callback.Run(path.AsUTF8Unsafe());
-#else
-#error Not implemented
-#endif
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/services/profile/profile_service_impl.h ('k') | mojo/shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698