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

Unified Diff: extensions/browser/file_reader.cc

Issue 2090063002: Remove calls to deprecated MessageLoop methods in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « extensions/browser/extension_icon_image_unittest.cc ('k') | extensions/browser/file_reader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/file_reader.cc
diff --git a/extensions/browser/file_reader.cc b/extensions/browser/file_reader.cc
index ebb9ed4bac6f9c206a6a888c27f15fd8578822e2..63bd2d7d94ec78ea82fe797130b804999c8743f3 100644
--- a/extensions/browser/file_reader.cc
+++ b/extensions/browser/file_reader.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
#include "content/public/browser/browser_thread.h"
using content::BrowserThread;
@@ -28,5 +29,6 @@ FileReader::~FileReader() {}
void FileReader::ReadFileOnBackgroundThread() {
std::string data;
bool success = base::ReadFileToString(resource_.GetFilePath(), &data);
- origin_loop_->PostTask(FROM_HERE, base::Bind(callback_, success, data));
+ origin_loop_->task_runner()->PostTask(FROM_HERE,
+ base::Bind(callback_, success, data));
}
« no previous file with comments | « extensions/browser/extension_icon_image_unittest.cc ('k') | extensions/browser/file_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698