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

Unified Diff: content/browser/mojo/mojo_shell_context.cc

Issue 1343823002: Revert of Move fetching logic out of ApplicationManager, eliminate url mappings. (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 | « content/browser/mojo/mojo_shell_context.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_shell_context.cc
diff --git a/content/browser/mojo/mojo_shell_context.cc b/content/browser/mojo/mojo_shell_context.cc
index 80120da9170c197e523cc4383daf23353e9bbd70..2817731da4426a5d1201b013c9091e1ee9c84142 100644
--- a/content/browser/mojo/mojo_shell_context.cc
+++ b/content/browser/mojo/mojo_shell_context.cc
@@ -6,7 +6,6 @@
#include "base/lazy_instance.h"
#include "base/macros.h"
-#include "base/path_service.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "content/common/process_control.mojom.h"
@@ -18,7 +17,6 @@
#include "content/public/common/service_registry.h"
#include "mojo/application/public/cpp/application_delegate.h"
#include "mojo/common/url_type_converters.h"
-#include "mojo/fetcher/base_application_fetcher.h"
#include "mojo/shell/application_loader.h"
#include "mojo/shell/connect_to_application_params.h"
#include "mojo/shell/identity.h"
@@ -154,15 +152,9 @@
g_applications_for_test = apps;
}
-MojoShellContext::MojoShellContext() {
+MojoShellContext::MojoShellContext()
+ : application_manager_(new mojo::shell::ApplicationManager(this)) {
proxy_.Get().reset(new Proxy(this));
-
- // Construct with an empty filepath since mojo: urls can't be registered now
- // the url scheme registry is locked.
- scoped_ptr<mojo::fetcher::BaseApplicationFetcher> fetcher(
- new mojo::fetcher::BaseApplicationFetcher(base::FilePath()));
- application_manager_.reset(
- new mojo::shell::ApplicationManager(fetcher.Pass()));
application_manager_->set_default_loader(
scoped_ptr<mojo::shell::ApplicationLoader>(new DefaultApplicationLoader));
@@ -248,4 +240,18 @@
application_manager_->ConnectToApplication(params.Pass());
}
+GURL MojoShellContext::ResolveMappings(const GURL& url) {
+ return url;
+}
+
+GURL MojoShellContext::ResolveMojoURL(const GURL& url) {
+ return url;
+}
+
+bool MojoShellContext::CreateFetcher(
+ const GURL& url,
+ const mojo::shell::Fetcher::FetchCallback& loader_callback) {
+ return false;
+}
+
} // namespace content
« no previous file with comments | « content/browser/mojo/mojo_shell_context.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698