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

Unified Diff: mandoline/services/updater/updater_impl.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mandoline/services/updater/updater_impl.h ('k') | mandoline/tools/android/install_mandoline.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/services/updater/updater_impl.cc
diff --git a/mandoline/services/updater/updater_impl.cc b/mandoline/services/updater/updater_impl.cc
deleted file mode 100644
index 478722b7b73e1a9a86db529a954c9ea48fc12a9d..0000000000000000000000000000000000000000
--- a/mandoline/services/updater/updater_impl.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2015 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 "mandoline/services/updater/updater_impl.h"
-
-#include <utility>
-
-#include "base/files/file_util.h"
-#include "base/path_service.h"
-#include "mandoline/services/updater/updater_app.h"
-#include "mojo/shell/public/cpp/application_impl.h"
-#include "url/gurl.h"
-
-namespace updater {
-
-UpdaterImpl::UpdaterImpl(UpdaterApp* application,
- mojo::InterfaceRequest<Updater> request)
- : application_(application),
- binding_(this, std::move(request)) {}
-
-UpdaterImpl::~UpdaterImpl() {
-}
-
-void UpdaterImpl::GetPathForApp(
- const mojo::String& url,
- const Updater::GetPathForAppCallback& callback) {
- // TODO(scottmg): For now, just stub to local files. This will become an
- // integration with components/update_client.
- base::FilePath shell_dir;
- PathService::Get(base::DIR_MODULE, &shell_dir);
- const GURL as_url(url.get());
- const base::FilePath path = shell_dir.Append(base::FilePath::FromUTF8Unsafe(
- as_url.path().substr(2, as_url.path().size() - 3) + ".mojo"));
- callback.Run(path.AsUTF8Unsafe());
-}
-
-} // namespace updater
« no previous file with comments | « mandoline/services/updater/updater_impl.h ('k') | mandoline/tools/android/install_mandoline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698