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

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

Issue 1878893002: Move //mojo/services tracing & catalog to //services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@63move
Patch Set: . Created 4 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 | « services/catalog/entry.h ('k') | services/catalog/entry_unittest.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 "mojo/services/catalog/entry.h" 5 #include "services/catalog/entry.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "mojo/services/catalog/store.h"
9 #include "mojo/util/filename_util.h" 8 #include "mojo/util/filename_util.h"
9 #include "services/catalog/store.h"
10 #include "services/shell/public/cpp/names.h" 10 #include "services/shell/public/cpp/names.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace catalog { 13 namespace catalog {
14 namespace { 14 namespace {
15 15
16 mojo::CapabilitySpec BuildCapabilitiesV0( 16 mojo::CapabilitySpec BuildCapabilitiesV0(
17 const base::DictionaryValue& value) { 17 const base::DictionaryValue& value) {
18 mojo::CapabilitySpec capabilities; 18 mojo::CapabilitySpec capabilities;
19 base::DictionaryValue::Iterator it(value); 19 base::DictionaryValue::Iterator it(value);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 const catalog::Entry& package = input.package() ? *input.package() : input; 229 const catalog::Entry& package = input.package() ? *input.package() : input;
230 result->resolved_name = package.name(); 230 result->resolved_name = package.name();
231 result->qualifier = input.qualifier(); 231 result->qualifier = input.qualifier();
232 result->capabilities = 232 result->capabilities =
233 shell::mojom::CapabilitySpec::From(input.capabilities()); 233 shell::mojom::CapabilitySpec::From(input.capabilities());
234 result->package_url = mojo::util::FilePathToFileURL(package.path()).spec(); 234 result->package_url = mojo::util::FilePathToFileURL(package.path()).spec();
235 return result; 235 return result;
236 } 236 }
237 237
238 } // namespace mojo 238 } // namespace mojo
OLDNEW
« no previous file with comments | « services/catalog/entry.h ('k') | services/catalog/entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698