Chromium Code Reviews| Index: chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc |
| diff --git a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc |
| index 51650c0e1f4aa2a77b7aaf9e7a4f83375b7386ee..286fcb3dd66a673fa0d30b34b1acb451c95d20bd 100644 |
| --- a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc |
| +++ b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc |
| @@ -40,7 +40,8 @@ class TestObserver : public OperationObserver { |
| virtual void OnEntryUpdatedByOperation(const std::string& local_id) OVERRIDE { |
| observed_local_id_ = local_id; |
| - quit_closure_.Run(); |
| + if (!quit_closure_.is_null()) |
|
hashimoto
2014/01/30 04:25:51
This null check is needed because CreateFileOprera
|
| + quit_closure_.Run(); |
| } |
| private: |