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

Unified Diff: services/service_manager/public/cpp/lib/interface_provider_spec.cc

Issue 2860023002: Eliminate lib directory for service manager client lib. (Closed)
Patch Set: Created 3 years, 8 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
Index: services/service_manager/public/cpp/lib/interface_provider_spec.cc
diff --git a/services/service_manager/public/cpp/lib/interface_provider_spec.cc b/services/service_manager/public/cpp/lib/interface_provider_spec.cc
deleted file mode 100644
index e83af51139ba7c29da0c7f1bc381c9f157d8eb82..0000000000000000000000000000000000000000
--- a/services/service_manager/public/cpp/lib/interface_provider_spec.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2016 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 "services/service_manager/public/cpp/interface_provider_spec.h"
-
-#include <tuple>
-
-#include "base/logging.h"
-
-namespace service_manager {
-
-InterfaceProviderSpec::InterfaceProviderSpec() {}
-InterfaceProviderSpec::InterfaceProviderSpec(
- const InterfaceProviderSpec& other) = default;
-InterfaceProviderSpec::~InterfaceProviderSpec() {}
-
-bool InterfaceProviderSpec::operator==(
- const InterfaceProviderSpec& other) const {
- return other.provides == provides && other.requires == requires;
-}
-
-bool InterfaceProviderSpec::operator<(
- const InterfaceProviderSpec& other) const {
- return std::tie(provides, requires) <
- std::tie(other.provides, other.requires);
-}
-
-bool GetInterfaceProviderSpec(const std::string& spec_name,
- const InterfaceProviderSpecMap& map,
- InterfaceProviderSpec* spec) {
- DCHECK(spec);
- auto it = map.find(spec_name);
- if (it != map.end()) {
- *spec = it->second;
- return true;
- }
- return false;
-}
-
-} // namespace service_manager
« no previous file with comments | « services/service_manager/public/cpp/lib/interface_provider.cc ('k') | services/service_manager/public/cpp/lib/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698