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

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
« no previous file with comments | « mojo/runner/about_fetcher_unittest.cc ('k') | mojo/runner/shell_test_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index 7a6a6adf19b303f6139289676ddd933b3be7b087..39d0536973c48d12b19486658aa6ba6f5844bf9e 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,11 @@ GURL Context::ResolveMojoURL(const GURL& url) {
bool Context::CreateFetcher(
const GURL& url,
const shell::Fetcher::FetchCallback& loader_callback) {
+ if (url.SchemeIs(AboutFetcher::kAboutScheme)) {
+ AboutFetcher::Start(url, loader_callback);
+ return true;
+ }
+
return false;
}
« no previous file with comments | « mojo/runner/about_fetcher_unittest.cc ('k') | mojo/runner/shell_test_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698