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

Unified Diff: components/drive/service/fake_drive_service.cc

Issue 2835233002: Fix integration tests in src/chrome and src/extensions so that we can turn on IO thread checks wi... (Closed)
Patch Set: ready for review Created 3 years, 8 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: 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());
« no previous file with comments | « components/autofill/core/browser/data_driven_test.cc ('k') | components/subresource_filter/core/common/test_ruleset_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698