Index: components/drive/service/fake_drive_service.cc |
diff --git a/components/drive/service/fake_drive_service.cc b/components/drive/service/fake_drive_service.cc |
index 9f06ff872400307156da58208e8df31ec08b9b2d..662557b474c629cbbf195c59269d86e8339c2d1b 100644 |
--- a/components/drive/service/fake_drive_service.cc |
+++ b/components/drive/service/fake_drive_service.cc |
@@ -22,6 +22,7 @@ |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "base/threading/thread_restrictions.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "base/values.h" |
#include "components/drive/drive_api_util.h" |
@@ -813,6 +814,7 @@ CancelCallback FakeDriveService::DownloadFile( |
const DownloadActionCallback& download_action_callback, |
const GetContentCallback& get_content_callback, |
const ProgressCallback& progress_callback) { |
+ base::ThreadRestrictions::ScopedAllowIO allow_io; |
DCHECK(thread_checker_.CalledOnValidThread()); |
DCHECK(!download_action_callback.is_null()); |