| Index: services/url_response_disk_cache/url_response_disk_cache_app.cc
|
| diff --git a/services/url_response_disk_cache/url_response_disk_cache_app.cc b/services/url_response_disk_cache/url_response_disk_cache_app.cc
|
| index 5d936950c7635e25ea5ac77259de6505ccc3e4f4..67632ae301dc1d5f14a4ef046426953c5abeefe6 100644
|
| --- a/services/url_response_disk_cache/url_response_disk_cache_app.cc
|
| +++ b/services/url_response_disk_cache/url_response_disk_cache_app.cc
|
| @@ -9,18 +9,17 @@
|
|
|
| namespace mojo {
|
|
|
| -URLResponseDiskCacheApp::URLResponseDiskCacheApp(base::TaskRunner* task_runner)
|
| - : task_runner_(task_runner) {
|
| -}
|
| +URLResponseDiskCacheApp::URLResponseDiskCacheApp(
|
| + scoped_refptr<base::TaskRunner> task_runner)
|
| + : task_runner_(task_runner) {}
|
|
|
| URLResponseDiskCacheApp::~URLResponseDiskCacheApp() {
|
| }
|
|
|
| void URLResponseDiskCacheApp::Initialize(ApplicationImpl* app) {
|
| base::CommandLine command_line(app->args());
|
| - if (command_line.HasSwitch("clear")) {
|
| - URLResponseDiskCacheImpl::ClearCache(task_runner_);
|
| - }
|
| + bool force_clean = command_line.HasSwitch("clear");
|
| + db_ = URLResponseDiskCacheImpl::CreateDB(task_runner_, force_clean);
|
| }
|
|
|
| bool URLResponseDiskCacheApp::ConfigureIncomingConnection(
|
| @@ -33,7 +32,7 @@ void URLResponseDiskCacheApp::Create(
|
| ApplicationConnection* connection,
|
| InterfaceRequest<URLResponseDiskCache> request) {
|
| new URLResponseDiskCacheImpl(
|
| - task_runner_, connection->GetRemoteApplicationURL(), request.Pass());
|
| + task_runner_, db_, connection->GetRemoteApplicationURL(), request.Pass());
|
| }
|
|
|
| } // namespace mojo
|
|
|