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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_worker.cc

Issue 291403004: [SyncFS] Add TaskLogger and wire up it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 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: chrome/browser/sync_file_system/drive_backend/sync_worker.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_worker.cc b/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
index c2b7f87f6c4845a891b87221d8f8b1b5d3f5d626..32c1c030254103782abe88eb7276d6c10b109260 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
@@ -317,6 +317,14 @@ void SyncWorker::NotifyLastOperationStatus(
}
}
+void SyncWorker::RecordTaskLog(scoped_ptr<TaskLogger::TaskLog> task_log) {
+ context_->GetUITaskRunner()->PostTask(
+ FROM_HERE,
+ base::Bind(&TaskLogger::RecordLog,
+ context_->GetTaskLogger(),
+ base::Passed(&task_log)));
+}
+
void SyncWorker::OnNotificationReceived() {
if (service_state_ == REMOTE_SERVICE_TEMPORARY_UNAVAILABLE)
UpdateServiceState(REMOTE_SERVICE_OK, "Got push notification for Drive.");

Powered by Google App Engine
This is Rietveld 408576698