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

Unified Diff: trunk/src/chrome/browser/sync_file_system/drive_backend/sync_engine.cc

Issue 111893007: Revert 239771 "SyncFS v2: Add re-initialization code for tempora..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
===================================================================
--- trunk/src/chrome/browser/sync_file_system/drive_backend/sync_engine.cc (revision 239922)
+++ trunk/src/chrome/browser/sync_file_system/drive_backend/sync_engine.cc (working copy)
@@ -148,9 +148,6 @@
void SyncEngine::RegisterOrigin(
const GURL& origin,
const SyncStatusCallback& callback) {
- if (!metadata_database_ && drive_service_->HasRefreshToken())
- PostInitializeTask();
-
task_manager_->ScheduleSyncTaskAtPriority(
scoped_ptr<SyncTask>(new RegisterAppTask(this, origin.host())),
SyncTaskManager::PRIORITY_HIGH,
@@ -333,9 +330,6 @@
}
void SyncEngine::OnNotificationReceived() {
- if (service_state_ == REMOTE_SERVICE_TEMPORARY_UNAVAILABLE)
- UpdateServiceState(REMOTE_SERVICE_OK, "Got push notification for Drive.");
-
should_check_remote_change_ = true;
MaybeScheduleNextTask();
}
@@ -443,9 +437,8 @@
task_runner_.get(),
drive_service_.get(),
base_dir_.Append(kDatabaseName));
- task_manager_->ScheduleSyncTaskAtPriority(
+ task_manager_->ScheduleSyncTask(
scoped_ptr<SyncTask>(initializer),
- SyncTaskManager::PRIORITY_HIGH,
base::Bind(&SyncEngine::DidInitialize, weak_ptr_factory_.GetWeakPtr(),
initializer));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698