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

Unified Diff: chrome/browser/policy/delayed_work_scheduler.cc

Issue 11946017: Remove old cloud policy code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits. Created 7 years, 11 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/policy/delayed_work_scheduler.h ('k') | chrome/browser/policy/device_policy_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/delayed_work_scheduler.cc
diff --git a/chrome/browser/policy/delayed_work_scheduler.cc b/chrome/browser/policy/delayed_work_scheduler.cc
deleted file mode 100644
index 8879330eb9cec8d498fc7a372294c5345393cd61..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/delayed_work_scheduler.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/policy/delayed_work_scheduler.h"
-
-namespace policy {
-
-DelayedWorkScheduler::DelayedWorkScheduler() {
-}
-
-DelayedWorkScheduler::~DelayedWorkScheduler() {
- timer_.Stop();
-}
-
-void DelayedWorkScheduler::DoDelayedWork() {
- callback_.Run();
-}
-
-void DelayedWorkScheduler::CancelDelayedWork() {
- timer_.Stop();
-}
-
-void DelayedWorkScheduler::PostDelayedWork(
- const base::Closure& callback,
- int64 delay) {
- callback_ = callback;
- timer_.Start(FROM_HERE,
- base::TimeDelta::FromMilliseconds(delay),
- this,
- &DelayedWorkScheduler::DoDelayedWork);
-}
-
-} // namespace policy
« no previous file with comments | « chrome/browser/policy/delayed_work_scheduler.h ('k') | chrome/browser/policy/device_policy_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698