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

Unified Diff: mojo/shell/shell.cc

Issue 38303002: Enable Mojo to download from file URLs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blah Created 7 years, 2 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/shell/shell.cc
diff --git a/mojo/shell/shell.cc b/mojo/shell/shell.cc
index 69d13e9fdf0912c068f65129ce235156a3994878..93d84b44e9833bbf1c10ea8f92780fc681934e05 100644
--- a/mojo/shell/shell.cc
+++ b/mojo/shell/shell.cc
@@ -9,6 +9,7 @@
#include "base/message_loop/message_loop.h"
#include "mojo/loader/loader.h"
#include "mojo/shell/app_container.h"
+#include "mojo/shell/network_delegate.h"
#include "mojo/shell/storage.h"
#include "mojo/shell/switches.h"
#include "mojo/shell/task_runners.h"
@@ -33,9 +34,11 @@ int main(int argc, char** argv) {
return 0;
}
- mojo::loader::Loader loader(task_runners.io_runner(),
- task_runners.file_runner(),
- storage.profile_path());
+ mojo::loader::Loader loader(
+ task_runners.io_runner(),
+ task_runners.file_runner(),
+ scoped_ptr<net::NetworkDelegate>(new mojo::shell::NetworkDelegate()),
+ storage.profile_path());
scoped_ptr<mojo::shell::AppContainer> container(
new mojo::shell::AppContainer);

Powered by Google App Engine
This is Rietveld 408576698