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

Unified Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc

Issue 11037005: New Cloud Print Private API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
Index: chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc
diff --git a/chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc b/chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc
index a6acf71dfa9c8c993fa9d5a7cf7275c263c21863..49dadfb1ee1dd8e9ed9a9b6efbee1612671c94b6 100644
--- a/chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc
+++ b/chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc
@@ -118,12 +118,14 @@ void CloudPrintProxyService::EnableForUser(const std::string& lsid,
void CloudPrintProxyService::EnableForUserWithRobot(
const std::string& robot_auth_code,
const std::string& robot_email,
- const std::string& user_email) {
+ const std::string& user_email,
+ bool connect_new_printers,
+ const std::vector<std::string>& printer_blacklist) {
if (profile_->GetPrefs()->GetBoolean(prefs::kCloudPrintProxyEnabled)) {
InvokeServiceTask(
base::Bind(&CloudPrintProxyService::EnableCloudPrintProxyWithRobot,
weak_factory_.GetWeakPtr(), robot_auth_code, robot_email,
- user_email));
+ user_email, connect_new_printers, printer_blacklist));
}
}
@@ -236,13 +238,15 @@ void CloudPrintProxyService::EnableCloudPrintProxy(const std::string& lsid,
void CloudPrintProxyService::EnableCloudPrintProxyWithRobot(
const std::string& robot_auth_code,
const std::string& robot_email,
- const std::string& user_email) {
+ const std::string& user_email,
+ bool connect_new_printers,
+ const std::vector<std::string>& printer_blacklist) {
ServiceProcessControl* process_control = GetServiceProcessControl();
DCHECK(process_control->IsConnected());
- process_control->Send(new ServiceMsg_EnableCloudPrintProxyWithRobot(
- robot_auth_code,
- robot_email,
- user_email));
+ process_control->Send(
+ new ServiceMsg_EnableCloudPrintProxyWithRobot(
+ robot_auth_code, robot_email, user_email, connect_new_printers,
+ printer_blacklist));
// Assume the IPC worked.
profile_->GetPrefs()->SetString(prefs::kCloudPrintEmail, user_email);
}
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_proxy_service.h ('k') | chrome/common/extensions/api/api.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698