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

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_app.cc

Issue 2012873003: More ApplicationDelegate/ApplicationRunner[Chromium] conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_run_app_options
Patch Set: Created 4 years, 7 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
« no previous file with comments | « services/url_response_disk_cache/url_response_disk_cache_app.h ('k') | shell/test/pingable_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « services/url_response_disk_cache/url_response_disk_cache_app.h ('k') | shell/test/pingable_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698