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

Unified Diff: services/catalog/reader.cc

Issue 2390013002: Rename mojo: to service: (Closed)
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/catalog/manifest.json ('k') | services/file/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/catalog/reader.cc
diff --git a/services/catalog/reader.cc b/services/catalog/reader.cc
index bc2242fd65ed439b8c0994c5c70b325979b0537b..220f691ba1e84a7edf3a2b467a51e9eb5a265618 100644
--- a/services/catalog/reader.cc
+++ b/services/catalog/reader.cc
@@ -26,7 +26,7 @@ base::FilePath GetManifestPath(const base::FilePath& package_dir,
// TODO(beng): think more about how this should be done for exe targets.
std::string type = shell::GetNameType(name);
std::string path = shell::GetNamePath(name);
- if (type == shell::kNameType_Mojo) {
+ if (type == shell::kNameType_Service) {
return package_dir.AppendASCII(kPackagesDirName).AppendASCII(
path + "/manifest.json");
}
@@ -39,7 +39,7 @@ base::FilePath GetManifestPath(const base::FilePath& package_dir,
base::FilePath GetExecutablePath(const base::FilePath& package_dir,
const std::string& name) {
std::string type = shell::GetNameType(name);
- if (type == shell::kNameType_Mojo) {
+ if (type == shell::kNameType_Service) {
// It's still a mojo: URL, use the default mapping scheme.
const std::string host = shell::GetNamePath(name);
return package_dir.AppendASCII(host + "/" + host + ".library");
@@ -107,7 +107,8 @@ void ScanDir(
// build (e.g. for applications that are packaged into others) and are not
// valid standalone packages.
base::FilePath package_path = GetExecutablePath(package_dir, entry->name());
- if (entry->name() != "mojo:shell" && entry->name() != "mojo:catalog" &&
+ if (entry->name() != "service:shell" &&
+ entry->name() != "service:catalog" &&
!base::PathExists(package_path)) {
continue;
}
« no previous file with comments | « services/catalog/manifest.json ('k') | services/file/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698