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

Side by Side Diff: components/sync/engine_impl/sync_scheduler_impl.cc

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sync_scheduler_impl.h" 5 #include "components/sync/engine_impl/sync_scheduler_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstring> 8 #include <cstring>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 AdjustPolling(UPDATE_INTERVAL); 511 AdjustPolling(UPDATE_INTERVAL);
512 } 512 }
513 } else { 513 } else {
514 HandleFailure(cycle->status_controller().model_neutral_state()); 514 HandleFailure(cycle->status_controller().model_neutral_state());
515 } 515 }
516 } 516 }
517 517
518 void SyncSchedulerImpl::DoConfigurationSyncCycleJob(JobPriority priority) { 518 void SyncSchedulerImpl::DoConfigurationSyncCycleJob(JobPriority priority) {
519 DCHECK(CalledOnValidThread()); 519 DCHECK(CalledOnValidThread());
520 DCHECK_EQ(mode_, CONFIGURATION_MODE); 520 DCHECK_EQ(mode_, CONFIGURATION_MODE);
521 DCHECK(pending_configure_params_ != NULL); 521 DCHECK(pending_configure_params_ != nullptr);
522 522
523 if (!CanRunJobNow(priority)) { 523 if (!CanRunJobNow(priority)) {
524 SDVLOG(2) << "Unable to run configure job right now."; 524 SDVLOG(2) << "Unable to run configure job right now.";
525 RunAndReset(&pending_configure_params_->retry_task); 525 RunAndReset(&pending_configure_params_->retry_task);
526 return; 526 return;
527 } 527 }
528 528
529 SDVLOG(2) << "Will run configure SyncShare with types " 529 SDVLOG(2) << "Will run configure SyncShare with types "
530 << ModelTypeSetToString(cycle_context_->GetEnabledTypes()); 530 << ModelTypeSetToString(cycle_context_->GetEnabledTypes());
531 std::unique_ptr<SyncCycle> cycle(SyncCycle::Build(cycle_context_, this)); 531 std::unique_ptr<SyncCycle> cycle(SyncCycle::Build(cycle_context_, this));
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 962
963 #undef SDVLOG_LOC 963 #undef SDVLOG_LOC
964 964
965 #undef SDVLOG 965 #undef SDVLOG
966 966
967 #undef SLOG 967 #undef SLOG
968 968
969 #undef ENUM_CASE 969 #undef ENUM_CASE
970 970
971 } // namespace syncer 971 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/sync_manager_impl_unittest.cc ('k') | components/sync/engine_impl/sync_scheduler_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698