Chromium Code Reviews| Index: shell/context.cc |
| diff --git a/shell/context.cc b/shell/context.cc |
| index 19642085b12e08d00772f5d87c48dbc93159b48e..2efe7aef4ab76524f1857b41516ea34f5a631c44 100644 |
| --- a/shell/context.cc |
| +++ b/shell/context.cc |
| @@ -38,9 +38,12 @@ |
| #include "shell/out_of_process_native_runner.h" |
| #include "shell/switches.h" |
| #include "shell/tracer.h" |
| -#include "shell/url_response_disk_cache_loader.h" |
| #include "url/gurl.h" |
| +#if !defined(OS_MACOSX) |
|
viettrungluu
2015/09/10 18:11:09
You should include build/build_config.h.
viettrungluu
2015/09/14 16:35:32
You forgot this file.
|
| +#include "shell/url_response_disk_cache_loader.h" |
| +#endif |
| + |
| using mojo::ServiceProvider; |
| using mojo::ServiceProviderPtr; |
| @@ -272,12 +275,14 @@ bool Context::InitWithPaths(const base::FilePath& shell_child_path) { |
| task_runners_.reset( |
| new TaskRunners(base::MessageLoop::current()->message_loop_proxy())); |
| +#if !defined(OS_MACOSX) |
| application_manager()->SetLoaderForURL( |
| make_scoped_ptr(new BackgroundApplicationLoader( |
| make_scoped_ptr( |
| new URLResponseDiskCacheLoader(task_runners_->blocking_pool())), |
| "url_response_disk_cache", base::MessageLoop::TYPE_DEFAULT)), |
| GURL("mojo:url_response_disk_cache")); |
| +#endif |
| EnsureEmbedderIsInitialized(); |