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

Unified Diff: sync/engine/sync_session_job.cc

Issue 12317104: Remove canary member from SyncSessionJob (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 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
Index: sync/engine/sync_session_job.cc
diff --git a/sync/engine/sync_session_job.cc b/sync/engine/sync_session_job.cc
index f980a5cd052d62ff89a8911ba2a3f866a2e9e773..121e317ed520ec3566d3b4b2d871eaca89356800 100644
--- a/sync/engine/sync_session_job.cc
+++ b/sync/engine/sync_session_job.cc
@@ -21,7 +21,6 @@ SyncSessionJob::SyncSessionJob(
: purpose_(purpose),
scheduled_start_(start),
session_(session.Pass()),
- is_canary_(false),
config_params_(config_params),
finished_(NOT_FINISHED),
from_location_(from_location) {
@@ -114,10 +113,6 @@ scoped_ptr<sessions::SyncSession> SyncSessionJob::CloneSession() const {
session_->delegate(), session_->source()));
}
-bool SyncSessionJob::is_canary() const {
- return is_canary_;
-}
-
SyncSessionJob::Purpose SyncSessionJob::purpose() const {
return purpose_;
}
@@ -146,12 +141,6 @@ ConfigurationParams SyncSessionJob::config_params() const {
return config_params_;
}
-void SyncSessionJob::GrantCanaryPrivilege() {
- DCHECK_EQ(finished_, NOT_FINISHED);
- DVLOG(2) << "Granting canary priviliege to " << session_.get();
- is_canary_ = true;
-}
-
SyncerStep SyncSessionJob::start_step() const {
SyncerStep start, end;
GetSyncerStepsForPurpose(purpose_, &start, &end);

Powered by Google App Engine
This is Rietveld 408576698