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

Unified Diff: mojo/application/content_handler_factory.cc

Issue 870553003: Stop content handled application if delegate returns a null application (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/application/content_handler_factory.cc
diff --git a/mojo/application/content_handler_factory.cc b/mojo/application/content_handler_factory.cc
index 3ed423ca96e8f2669130ad2c912f0b361680d461..4826ec48e8ac72771a4cff8b5e21363cd38bfa60 100644
--- a/mojo/application/content_handler_factory.cc
+++ b/mojo/application/content_handler_factory.cc
@@ -115,7 +115,8 @@ void ContentHandlerFactory::ManagedDelegate::RunApplication(
URLResponsePtr response) {
base::MessageLoop loop(common::MessagePumpMojo::Create());
auto application = this->CreateApplication(shell.Pass(), response.Pass());
- loop.Run();
+ if (application)
+ loop.Run();
}
void ContentHandlerFactory::Create(ApplicationConnection* connection,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698