Index: chrome/browser/profile.cc |
=================================================================== |
--- chrome/browser/profile.cc (revision 44739) |
+++ chrome/browser/profile.cc (working copy) |
@@ -43,6 +43,7 @@ |
#include "chrome/browser/password_manager/password_store_default.h" |
#include "chrome/browser/password_manager/password_store_linux.h" |
#include "chrome/browser/privacy_blacklist/blacklist.h" |
+#include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" |
#include "chrome/browser/profile_manager.h" |
#include "chrome/browser/renderer_host/render_process_host.h" |
#include "chrome/browser/search_engines/template_url_fetcher.h" |
@@ -496,6 +497,10 @@ |
return NULL; |
} |
+ virtual CloudPrintProxyService* GetCloudPrintProxyService() { |
+ return NULL; |
+ } |
+ |
virtual bool IsSameProfile(Profile* profile) { |
return (profile == this) || (profile == profile_); |
} |
@@ -1448,6 +1453,12 @@ |
return sync_service_.get(); |
} |
+CloudPrintProxyService* ProfileImpl::GetCloudPrintProxyService() { |
+ if (!cloud_print_proxy_service_.get()) |
+ InitCloudPrintProxyService(); |
+ return cloud_print_proxy_service_.get(); |
+} |
+ |
void ProfileImpl::InitSyncService() { |
profile_sync_factory_.reset( |
new ProfileSyncFactoryImpl(this, |
@@ -1456,3 +1467,9 @@ |
profile_sync_factory_->CreateProfileSyncService()); |
sync_service_->Initialize(); |
} |
+ |
+void ProfileImpl::InitCloudPrintProxyService() { |
+ cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); |
+ cloud_print_proxy_service_->Initialize(); |
+} |
+ |