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

Unified Diff: chrome/service/cloud_print/cloud_print_proxy.cc

Issue 3257011: Registered the service process to AutoRun (for Windows) if any service (Cloud... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fixed Linux compile Created 10 years, 4 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 | « chrome/service/cloud_print/cloud_print_proxy.h ('k') | chrome/service/service_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_proxy.cc
===================================================================
--- chrome/service/cloud_print/cloud_print_proxy.cc (revision 58099)
+++ chrome/service/cloud_print/cloud_print_proxy.cc (working copy)
@@ -17,9 +17,10 @@
Shutdown();
}
-void CloudPrintProxy::Initialize(JsonPrefStore* service_prefs) {
+void CloudPrintProxy::Initialize(JsonPrefStore* service_prefs, Client* client) {
DCHECK(CalledOnValidThread());
service_prefs_ = service_prefs;
+ client_ = client;
}
void CloudPrintProxy::EnableForUser(const std::string& lsid) {
@@ -72,11 +73,17 @@
backend_->InitializeWithToken(cloud_print_token, cloud_print_xmpp_token,
cloud_print_email, proxy_id);
}
+ if (client_) {
+ client_->OnCloudPrintProxyEnabled();
+ }
}
void CloudPrintProxy::DisableForUser() {
DCHECK(CalledOnValidThread());
Shutdown();
+ if (client_) {
+ client_->OnCloudPrintProxyDisabled();
+ }
}
void CloudPrintProxy::Shutdown() {
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy.h ('k') | chrome/service/service_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698