Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / drive / file_system / get_file_for_saving_operation_unittest.cc
index 51650c0..e4c954d 100644 (file)
@@ -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())
+      quit_closure_.Run();
   }
 
  private:
@@ -61,8 +62,8 @@ class GetFileForSavingOperationTest : public OperationTestBase {
     OperationTestBase::SetUp();
 
     operation_.reset(new GetFileForSavingOperation(
-        blocking_task_runner(), &observer_, scheduler(), metadata(), cache(),
-        temp_dir()));
+        logger(), blocking_task_runner(), &observer_, scheduler(), metadata(),
+        cache(), temp_dir()));
     operation_->file_write_watcher_for_testing()->DisableDelayForTesting();
   }