Chromium Code Reviews| Index: mojo/shell/loader.cc |
| diff --git a/mojo/shell/loader.cc b/mojo/shell/loader.cc |
| index 693d77383f7cb56dad63dbb5eef09b7b4747bdc9..97ade897ab15dcd623f95aa00f1c38b7eac2cd38 100644 |
| --- a/mojo/shell/loader.cc |
| +++ b/mojo/shell/loader.cc |
| @@ -5,6 +5,7 @@ |
| #include "mojo/shell/loader.h" |
| #include "base/message_loop/message_loop.h" |
| +#include "net/base/load_flags.h" |
| #include "net/base/network_delegate.h" |
| namespace mojo { |
| @@ -48,6 +49,11 @@ scoped_ptr<Loader::Job> Loader::Load(const GURL& app_url, Delegate* delegate) { |
| scoped_ptr<Job> job(new Job(app_url, delegate)); |
| job->fetcher_->SetRequestContext(url_request_context_getter_.get()); |
| job->fetcher_->SaveResponseToTemporaryFile(file_runner_.get()); |
| +#if !defined(NDEBUG) |
| + // Don't use the cache when in debug. |
| + // TODO(davemoore): Should we make this a command line flag instead? |
|
darin (slow to review)
2013/12/10 06:12:36
yes, a command line flag would be better. that wa
DaveMoore
2013/12/11 18:56:44
Removed...I'll add in separate cl.
On 2013/12/10 0
|
| + job->fetcher_->SetLoadFlags(net::LOAD_DISABLE_CACHE); |
| +#endif |
| job->fetcher_->Start(); |
| return job.Pass(); |
| } |