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

Unified Diff: chrome/browser/profile.cc

Issue 1566047: First cut of Cloud Print Proxy implementation. The code is not enabled for no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Final review changes Created 10 years, 8 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/browser/profile.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+}
+
« no previous file with comments | « chrome/browser/profile.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698