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

Side by Side Diff: services/catalog/catalog.cc

Issue 2804373002: Eliminate Connector::Connect(), Connection, etc. (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 unified diff | Download patch
« no previous file with comments | « media/mojo/services/media_service_unittest.cc ('k') | services/device/device_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/catalog/catalog.h" 5 #include "services/catalog/catalog.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/base_paths.h" 10 #include "base/base_paths.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/json/json_reader.h" 13 #include "base/json/json_reader.h"
14 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "components/filesystem/directory_impl.h" 20 #include "components/filesystem/directory_impl.h"
21 #include "components/filesystem/lock_table.h" 21 #include "components/filesystem/lock_table.h"
22 #include "components/filesystem/public/interfaces/types.mojom.h" 22 #include "components/filesystem/public/interfaces/types.mojom.h"
23 #include "mojo/public/cpp/bindings/strong_binding.h" 23 #include "mojo/public/cpp/bindings/strong_binding.h"
24 #include "services/catalog/constants.h" 24 #include "services/catalog/constants.h"
25 #include "services/catalog/entry_cache.h" 25 #include "services/catalog/entry_cache.h"
26 #include "services/catalog/instance.h" 26 #include "services/catalog/instance.h"
27 #include "services/service_manager/public/cpp/binder_registry.h" 27 #include "services/service_manager/public/cpp/binder_registry.h"
28 #include "services/service_manager/public/cpp/connection.h"
29 #include "services/service_manager/public/cpp/service_context.h" 28 #include "services/service_manager/public/cpp/service_context.h"
30 29
31 namespace catalog { 30 namespace catalog {
32 31
33 namespace { 32 namespace {
34 33
35 const char kCatalogServicesKey[] = "services"; 34 const char kCatalogServicesKey[] = "services";
36 const char kCatalogServiceEmbeddedKey[] = "embedded"; 35 const char kCatalogServiceEmbeddedKey[] = "embedded";
37 const char kCatalogServiceExecutableKey[] = "executable"; 36 const char kCatalogServiceExecutableKey[] = "executable";
38 const char kCatalogServiceManifestKey[] = "manifest"; 37 const char kCatalogServiceManifestKey[] = "manifest";
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 if (it != instances_.end()) 205 if (it != instances_.end())
207 return it->second.get(); 206 return it->second.get();
208 207
209 auto result = instances_.insert(std::make_pair( 208 auto result = instances_.insert(std::make_pair(
210 user_id, 209 user_id,
211 base::MakeUnique<Instance>(&system_cache_, service_manifest_provider_))); 210 base::MakeUnique<Instance>(&system_cache_, service_manifest_provider_)));
212 return result.first->second.get(); 211 return result.first->second.get();
213 } 212 }
214 213
215 } // namespace catalog 214 } // namespace catalog
OLDNEW
« no previous file with comments | « media/mojo/services/media_service_unittest.cc ('k') | services/device/device_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698