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

Unified Diff: mandoline/app/core_services_initialization.cc

Issue 1352663002: Extract some stuff into PackageManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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 | « mandoline/app/android/BUILD.gn ('k') | mandoline/app/desktop/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/app/core_services_initialization.cc
diff --git a/mandoline/app/core_services_initialization.cc b/mandoline/app/core_services_initialization.cc
index 17ee8f0017904a6ae6aa71865029e3b6a057deeb..b56343dfe01b54ddbcab1adf089b8775b3e7fb9b 100644
--- a/mandoline/app/core_services_initialization.cc
+++ b/mandoline/app/core_services_initialization.cc
@@ -4,6 +4,7 @@
#include "mandoline/app/core_services_initialization.h"
+#include "mojo/package_manager/package_manager_impl.h"
#include "mojo/runner/context.h"
namespace mandoline {
@@ -11,7 +12,8 @@ namespace mandoline {
void InitCoreServicesForContext(mojo::runner::Context* context) {
// TODO(erg): We should probably handle this differently; these could be
// autogenerated from package manifests.
- mojo::shell::ApplicationManager* manager = context->application_manager();
+ mojo::package_manager::PackageManagerImpl* manager =
+ context->package_manager();
manager->RegisterApplicationPackageAlias(
GURL("mojo:clipboard"), GURL("mojo:core_services"), "Core");
manager->RegisterApplicationPackageAlias(GURL("mojo:filesystem"),
« no previous file with comments | « mandoline/app/android/BUILD.gn ('k') | mandoline/app/desktop/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698