| 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();
|
|
|