| 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 84aa1b9cfba218086b0bef113cff62a772d621d1..b522728f32495c5f47d62d6859e6ecab0a655031 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
|
| @@ -5,6 +5,7 @@
|
| #include "services/url_response_disk_cache/url_response_disk_cache_app.h"
|
|
|
| #include "base/command_line.h"
|
| +#include "mojo/public/cpp/application/service_provider_impl.h"
|
| #include "services/url_response_disk_cache/url_response_disk_cache_impl.h"
|
|
|
| namespace mojo {
|
| @@ -14,16 +15,15 @@ URLResponseDiskCacheApp::URLResponseDiskCacheApp(
|
| URLResponseDiskCacheDelegate* delegate)
|
| : task_runner_(task_runner), delegate_(delegate) {}
|
|
|
| -URLResponseDiskCacheApp::~URLResponseDiskCacheApp() {
|
| -}
|
| +URLResponseDiskCacheApp::~URLResponseDiskCacheApp() {}
|
|
|
| -void URLResponseDiskCacheApp::Initialize(ApplicationImpl* app) {
|
| - base::CommandLine command_line(app->args());
|
| +void URLResponseDiskCacheApp::OnInitialize() {
|
| + base::CommandLine command_line(args());
|
| bool force_clean = command_line.HasSwitch("clear");
|
| db_ = URLResponseDiskCacheImpl::CreateDB(task_runner_, force_clean);
|
| }
|
|
|
| -bool URLResponseDiskCacheApp::ConfigureIncomingConnection(
|
| +bool URLResponseDiskCacheApp::OnAcceptConnection(
|
| ServiceProviderImpl* service_provider_impl) {
|
| service_provider_impl->AddService<URLResponseDiskCache>([this](
|
| const ConnectionContext& connection_context,
|
|
|