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

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

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 | « services/catalog/reader.h ('k') | services/file/BUILD.gn » ('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/reader.h" 5 #include "services/catalog/reader.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_enumerator.h" 8 #include "base/files/file_enumerator.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/json/json_file_value_serializer.h" 10 #include "base/json/json_file_value_serializer.h"
11 #include "base/json/json_reader.h" 11 #include "base/json/json_reader.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/task_runner_util.h" 14 #include "base/task_runner_util.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "services/catalog/constants.h" 16 #include "services/catalog/constants.h"
17 #include "services/catalog/entry.h" 17 #include "services/catalog/entry.h"
18 #include "services/catalog/manifest_provider.h" 18 #include "services/catalog/manifest_provider.h"
19 #include "services/shell/public/cpp/names.h" 19 #include "services/service_manager/public/cpp/names.h"
20 20
21 namespace catalog { 21 namespace catalog {
22 namespace { 22 namespace {
23 23
24 base::FilePath GetManifestPath(const base::FilePath& package_dir, 24 base::FilePath GetManifestPath(const base::FilePath& package_dir,
25 const std::string& name, 25 const std::string& name,
26 const std::string& package_name_override) { 26 const std::string& package_name_override) {
27 // TODO(beng): think more about how this should be done for exe targets. 27 // TODO(beng): think more about how this should be done for exe targets.
28 std::string type = shell::GetNameType(name); 28 std::string type = shell::GetNameType(name);
29 std::string path = shell::GetNamePath(name); 29 std::string path = shell::GetNamePath(name);
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 std::unique_ptr<Entry> entry) { 251 std::unique_ptr<Entry> entry) {
252 if (!entry) 252 if (!entry)
253 return; 253 return;
254 shell::mojom::ResolveResultPtr result = 254 shell::mojom::ResolveResultPtr result =
255 shell::mojom::ResolveResult::From(*entry); 255 shell::mojom::ResolveResult::From(*entry);
256 AddEntryToCache(cache, std::move(entry)); 256 AddEntryToCache(cache, std::move(entry));
257 entry_created_callback.Run(std::move(result)); 257 entry_created_callback.Run(std::move(result));
258 } 258 }
259 259
260 } // namespace catalog 260 } // namespace catalog
OLDNEW
« no previous file with comments | « services/catalog/reader.h ('k') | services/file/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698