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

Unified Diff: mojo/runner/context.cc

Issue 1260813007: Mandoline: Support about:blank URL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index 7a6a6adf19b303f6139289676ddd933b3be7b087..c232525613b7fb1298c7f58339dcbf3e2154e4d2 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -29,6 +29,7 @@
#include "mojo/common/tracing_impl.h"
#include "mojo/edk/embedder/embedder.h"
#include "mojo/edk/embedder/simple_platform_support.h"
+#include "mojo/runner/about_fetcher.h"
#include "mojo/runner/in_process_native_runner.h"
#include "mojo/runner/out_of_process_native_runner.h"
#include "mojo/runner/switches.h"
@@ -337,6 +338,12 @@ GURL Context::ResolveMojoURL(const GURL& url) {
bool Context::CreateFetcher(
const GURL& url,
const shell::Fetcher::FetchCallback& loader_callback) {
+ if (url.SchemeIs(AboutFetcher::kAboutScheme)) {
+ // AboutFetcher manages its own lifespan.
+ new AboutFetcher(url, loader_callback);
+ return true;
+ }
+
return false;
}

Powered by Google App Engine
This is Rietveld 408576698