diff options
author | sanjeevr@google.com <sanjeevr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-20 02:03:48 +0000 |
---|---|---|
committer | sanjeevr@google.com <sanjeevr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-20 02:03:48 +0000 |
commit | 1bd056e69770a53c2778c46918e42e2b8eed6de3 (patch) | |
tree | 4534fd75545de891c0a1a3ce549f1ade764e877a /chrome/browser/profile.cc | |
parent | 4d19b9e62e2e7ce6eff44e3d37617159361b8050 (diff) | |
download | chromium_src-1bd056e69770a53c2778c46918e42e2b8eed6de3.zip chromium_src-1bd056e69770a53c2778c46918e42e2b8eed6de3.tar.gz chromium_src-1bd056e69770a53c2778c46918e42e2b8eed6de3.tar.bz2 |
First cut of Cloud Print Proxy implementation. The code is not enabled for now. Soon the cloud print proxy code will move from the browser process to a background process called the service process.
BUG=None
TEST=None for now
Review URL: http://codereview.chromium.org/1566047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45000 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r-- | chrome/browser/profile.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc index 8227d23..92b2ff8 100644 --- a/chrome/browser/profile.cc +++ b/chrome/browser/profile.cc @@ -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 @@ class OffTheRecordProfileImpl : public Profile, return NULL; } + virtual CloudPrintProxyService* GetCloudPrintProxyService() { + return NULL; + } + virtual bool IsSameProfile(Profile* profile) { return (profile == this) || (profile == profile_); } @@ -1448,6 +1453,12 @@ ProfileSyncService* ProfileImpl::GetProfileSyncService() { 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 @@ void ProfileImpl::InitSyncService() { profile_sync_factory_->CreateProfileSyncService()); sync_service_->Initialize(); } + +void ProfileImpl::InitCloudPrintProxyService() { + cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); + cloud_print_proxy_service_->Initialize(); +} + |