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

Unified Diff: chrome/browser/sync_file_system/task_logger.cc

Issue 304993004: [SyncFS] Add TaskLog tab on chrome://syncfs-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/task_logger.cc
diff --git a/chrome/browser/sync_file_system/task_logger.cc b/chrome/browser/sync_file_system/task_logger.cc
index 9153915438618f20061e998058bd80ac6475aee6..0047238a3a837fe31afaddc0126708cc4215722a 100644
--- a/chrome/browser/sync_file_system/task_logger.cc
+++ b/chrome/browser/sync_file_system/task_logger.cc
@@ -24,6 +24,9 @@ TaskLogger::~TaskLogger() {
}
void TaskLogger::RecordLog(scoped_ptr<TaskLog> log) {
+ if (!log)
+ return;
+
if (log_history_.size() >= kMaxLogSize) {
delete log_history_.front();
log_history_.pop_front();

Powered by Google App Engine
This is Rietveld 408576698