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

Unified Diff: shell/context.cc

Issue 930243006: Simplify the ApplicationLoader interface in preparation for changes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: ptal Created 5 years, 10 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 | « shell/context.h ('k') | shell/dynamic_application_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/context.cc
diff --git a/shell/context.cc b/shell/context.cc
index 0c439441228ca4b2e6bfcb88826a39383b694ffa..0707cefe6e7018d40dd6cbc65ece41096b358dec 100644
--- a/shell/context.cc
+++ b/shell/context.cc
@@ -29,10 +29,10 @@
#include "shell/application_manager/application_loader.h"
#include "shell/application_manager/application_manager.h"
#include "shell/command_line_util.h"
-#include "shell/dynamic_application_loader.h"
#include "shell/external_application_listener.h"
#include "shell/filename_util.h"
#include "shell/in_process_dynamic_service_runner.h"
+#include "shell/native_application_loader.h"
#include "shell/out_of_process_dynamic_service_runner.h"
#include "shell/switches.h"
#include "url/gurl.h"
@@ -57,7 +57,7 @@ class Setup {
static base::LazyInstance<Setup>::Leaky setup = LAZY_INSTANCE_INITIALIZER;
-void InitContentHandlers(DynamicApplicationLoader* loader,
+void InitContentHandlers(NativeApplicationLoader* loader,
base::CommandLine* command_line) {
// Default content handlers.
loader->RegisterContentHandler("application/pdf", GURL("mojo:pdf_viewer"));
@@ -257,11 +257,11 @@ bool Context::Init() {
else
runner_factory.reset(new InProcessDynamicServiceRunnerFactory());
- DynamicApplicationLoader* dynamic_application_loader =
- new DynamicApplicationLoader(this, runner_factory.Pass());
- InitContentHandlers(dynamic_application_loader, command_line);
- application_manager_.set_default_loader(
- scoped_ptr<ApplicationLoader>(dynamic_application_loader));
+ scoped_ptr<NativeApplicationLoader> native_application_loader(
+ new NativeApplicationLoader(this, runner_factory.Pass()));
+ InitContentHandlers(native_application_loader.get(), command_line);
+ application_manager_.set_native_application_loader(
+ scoped_ptr<NativeApplicationLoader>(native_application_loader.Pass()));
ServiceProviderPtr tracing_service_provider_ptr;
new TracingServiceProvider(GetProxy(&tracing_service_provider_ptr));
« no previous file with comments | « shell/context.h ('k') | shell/dynamic_application_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698