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

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

Issue 1078213004: Remove --check-cloud-print-connector-policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sat Apr 11 02:29:11 PDT 2015 Created 5 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
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 7bd2734f28a8039a5647bb9af080ed076f89ea41..2b16e5ca2c6ad7fe23fe11c20025d9d1f30fd28e 100644
--- a/chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc
+++ b/chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc
@@ -35,7 +35,6 @@ using content::BrowserThread;
CloudPrintProxyService::CloudPrintProxyService(Profile* profile)
: profile_(profile),
- enforcing_connector_policy_(false),
weak_factory_(this) {
}
@@ -77,14 +76,6 @@ void CloudPrintProxyService::RefreshStatusFromService() {
weak_factory_.GetWeakPtr()));
}
-bool CloudPrintProxyService::EnforceCloudPrintConnectorPolicyAndQuit() {
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
- enforcing_connector_policy_ = true;
- if (ApplyCloudPrintConnectorPolicy())
- return true;
- return false;
-}
-
void CloudPrintProxyService::EnableForUserWithRobot(
const std::string& robot_auth_code,
const std::string& robot_email,
@@ -124,16 +115,7 @@ bool CloudPrintProxyService::ApplyCloudPrintConnectorPolicy() {
ServiceProcessControl::SERVICE_EVENT_MAX);
DisableForUser();
profile_->GetPrefs()->SetString(prefs::kCloudPrintEmail, std::string());
- if (enforcing_connector_policy_) {
- base::MessageLoop::current()->PostTask(
- FROM_HERE,
- base::Bind(&CloudPrintProxyService::RefreshCloudPrintProxyStatus,
- weak_factory_.GetWeakPtr()));
- }
return false;
- } else if (enforcing_connector_policy_) {
- base::MessageLoop::current()->PostTask(FROM_HERE,
- base::MessageLoop::QuitClosure());
}
}
return true;

Powered by Google App Engine
This is Rietveld 408576698