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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_extension_loader.cc

Issue 2301713002: Remove some UI->FILE->UI thread hops in ExecuteCodeFunction (Closed)
Patch Set: sync, move changes from accessibility_manager.cc -> accessibility_extension_loader.cc Created 4 years, 3 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
« no previous file with comments | « no previous file | extensions/browser/api/execute_code_function.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/accessibility_extension_loader.cc
diff --git a/chrome/browser/chromeos/accessibility/accessibility_extension_loader.cc b/chrome/browser/chromeos/accessibility/accessibility_extension_loader.cc
index 9360b98fb367f3d5d0d96dc5ddab4e46ec48676c..34faf17da30607ab12b4f4bf9485125eb4f28c98 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_extension_loader.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_extension_loader.cc
@@ -90,9 +90,11 @@ class ContentScriptLoader {
extensions::ExtensionResource resource = resources_.front();
resources_.pop();
- scoped_refptr<FileReader> reader(
- new FileReader(resource, base::Bind(&ContentScriptLoader::OnFileLoaded,
- base::Unretained(this))));
+ scoped_refptr<FileReader> reader(new FileReader(
+ resource,
+ FileReader::OptionalFileThreadTaskCallback(), // null callback.
+ base::Bind(&ContentScriptLoader::OnFileLoaded,
+ base::Unretained(this))));
reader->Start();
}
« no previous file with comments | « no previous file | extensions/browser/api/execute_code_function.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698