| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |