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

Unified Diff: chrome/service/service_process.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
« no previous file with comments | « chrome/service/service_process.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_process.cc
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc
index 5c0f8d3cf79bed6ee7d487cd3362aa1545dd8f54..3bed9fe52eed1efbda746437b2961714ffb9c1c0 100644
--- a/chrome/service/service_process.cc
+++ b/chrome/service/service_process.cc
@@ -47,10 +47,6 @@ namespace {
// a shutdown.
const int kShutdownDelaySeconds = 60;
-// Delay in hours between launching a browser process to check the
-// policy for us.
-const int64 kPolicyCheckDelayHours = 8;
-
const char kDefaultServiceProcessLocale[] = "en-US";
class ServiceIOThread : public base::Thread {
@@ -205,9 +201,6 @@ bool ServiceProcess::Initialize(base::MessageLoopForUI* message_loop,
// See if we need to stay running.
ScheduleShutdownCheck();
- // Occasionally check to see if we need to launch the browser to get the
- // policy state information.
- CloudPrintPolicyCheckIfNeeded();
return true;
}
@@ -352,21 +345,6 @@ void ServiceProcess::ShutdownIfNeeded() {
}
}
-void ServiceProcess::ScheduleCloudPrintPolicyCheck() {
- base::MessageLoop::current()->PostDelayedTask(
- FROM_HERE,
- base::Bind(&ServiceProcess::CloudPrintPolicyCheckIfNeeded,
- base::Unretained(this)),
- base::TimeDelta::FromHours(kPolicyCheckDelayHours));
-}
-
-void ServiceProcess::CloudPrintPolicyCheckIfNeeded() {
- if (enabled_services_ && !ipc_server_->is_client_connected()) {
- GetCloudPrintProxy()->CheckCloudPrintProxyPolicy();
- }
- ScheduleCloudPrintPolicyCheck();
-}
-
ServiceProcess::~ServiceProcess() {
Teardown();
g_service_process = NULL;
« no previous file with comments | « chrome/service/service_process.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698