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

Unified Diff: components/sync/engine_impl/sync_scheduler_impl.cc

Issue 2808433003: [Sync] Delete dead code from sync_scheduler_impl (Closed)
Patch Set: Created 3 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 | « components/sync/engine_impl/sync_scheduler_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine_impl/sync_scheduler_impl.cc
diff --git a/components/sync/engine_impl/sync_scheduler_impl.cc b/components/sync/engine_impl/sync_scheduler_impl.cc
index 054e917106323bacbd24e25d640627db84e47351..d9d72533754ab6518a7f42bb63b25b7d3a7f23e3 100644
--- a/components/sync/engine_impl/sync_scheduler_impl.cc
+++ b/components/sync/engine_impl/sync_scheduler_impl.cc
@@ -24,11 +24,10 @@
using base::TimeDelta;
using base::TimeTicks;
+using sync_pb::GetUpdatesCallerInfo;
namespace syncer {
-using sync_pb::GetUpdatesCallerInfo;
-
namespace {
bool IsConfigRelatedUpdateSourceValue(
@@ -119,23 +118,6 @@ ClearParams::ClearParams(const base::Closure& report_success_task)
ClearParams::ClearParams(const ClearParams& other) = default;
ClearParams::~ClearParams() {}
-GetUpdatesCallerInfo::GetUpdatesSource GetUpdatesFromNudgeSource(
- NudgeSource source) {
- switch (source) {
- case NUDGE_SOURCE_NOTIFICATION:
- return GetUpdatesCallerInfo::NOTIFICATION;
- case NUDGE_SOURCE_LOCAL:
- return GetUpdatesCallerInfo::LOCAL;
- case NUDGE_SOURCE_LOCAL_REFRESH:
- return GetUpdatesCallerInfo::DATATYPE_REFRESH;
- case NUDGE_SOURCE_UNKNOWN:
- return GetUpdatesCallerInfo::UNKNOWN;
- default:
- NOTREACHED();
- return GetUpdatesCallerInfo::UNKNOWN;
- }
-}
-
// Helper macros to log with the syncer thread name; useful when there
// are multiple syncer threads involved.
@@ -163,11 +145,7 @@ SyncSchedulerImpl::SyncSchedulerImpl(const std::string& name,
cycle_context_(context),
next_sync_cycle_job_priority_(NORMAL_PRIORITY),
ignore_auth_credentials_(ignore_auth_credentials),
- weak_ptr_factory_(this),
- weak_ptr_factory_for_weak_handle_(this) {
- weak_handle_this_ =
- MakeWeakHandle(weak_ptr_factory_for_weak_handle_.GetWeakPtr());
-}
+ weak_ptr_factory_(this) {}
SyncSchedulerImpl::~SyncSchedulerImpl() {
DCHECK(CalledOnValidThread());
« no previous file with comments | « components/sync/engine_impl/sync_scheduler_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698