| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/sync/engine_impl/cycle/nudge_tracker.h" | 5 #include "components/sync/engine_impl/cycle/nudge_tracker.h" |
| 6 | 6 |
| 7 #include <algorithm> |
| 7 #include <utility> | 8 #include <utility> |
| 8 | 9 |
| 9 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 10 #include "components/sync/engine/polling_constants.h" | 11 #include "components/sync/engine/polling_constants.h" |
| 11 | 12 |
| 12 namespace syncer { | 13 namespace syncer { |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 // Delays for syncer nudges. | 17 // Delays for syncer nudges. |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 GetDefaultDelayForType(type, minimum_local_nudge_delay_)); | 413 GetDefaultDelayForType(type, minimum_local_nudge_delay_)); |
| 413 } | 414 } |
| 414 } | 415 } |
| 415 } | 416 } |
| 416 | 417 |
| 417 void NudgeTracker::SetDefaultNudgeDelay(base::TimeDelta nudge_delay) { | 418 void NudgeTracker::SetDefaultNudgeDelay(base::TimeDelta nudge_delay) { |
| 418 minimum_local_nudge_delay_ = nudge_delay; | 419 minimum_local_nudge_delay_ = nudge_delay; |
| 419 } | 420 } |
| 420 | 421 |
| 421 } // namespace syncer | 422 } // namespace syncer |
| OLD | NEW |