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

Unified Diff: ios/chrome/browser/snapshots/snapshot_cache.mm

Issue 1160403005: ios: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error. Created 5 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 | « ios/chrome/browser/net/retryable_url_fetcher_unittest.mm ('k') | ios/crnet/crnet_environment.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/snapshots/snapshot_cache.mm
diff --git a/ios/chrome/browser/snapshots/snapshot_cache.mm b/ios/chrome/browser/snapshots/snapshot_cache.mm
index 2ba981775814ecb6c9c1226ebf0700f27c48acba..c33bfe978ff780ca55ba5973e2d08d4b31a10756 100644
--- a/ios/chrome/browser/snapshots/snapshot_cache.mm
+++ b/ios/chrome/browser/snapshots/snapshot_cache.mm
@@ -212,8 +212,8 @@ void ConvertAndSaveGreyImage(
}
base::PostTaskAndReplyWithResult(
- web::WebThread::GetMessageLoopProxyForThread(
- web::WebThread::FILE_USER_BLOCKING).get(),
+ web::WebThread::GetTaskRunnerForThread(web::WebThread::FILE_USER_BLOCKING)
+ .get(),
FROM_HERE, base::BindBlock(^base::scoped_nsobject<UIImage>() {
// Retrieve the image on a high priority thread.
return base::scoped_nsobject<UIImage>([ReadImageFromDisk(
@@ -401,10 +401,9 @@ void ConvertAndSaveGreyImage(
// already in the cache, use it.
UIImage* img = [imageDictionary_ objectForKey:sessionID];
base::PostTaskAndReplyWithResult(
- web::WebThread::GetMessageLoopProxyForThread(
- web::WebThread::FILE_USER_BLOCKING).get(),
- FROM_HERE,
- base::BindBlock(^base::scoped_nsobject<UIImage>() {
+ web::WebThread::GetTaskRunnerForThread(web::WebThread::FILE_USER_BLOCKING)
+ .get(),
+ FROM_HERE, base::BindBlock(^base::scoped_nsobject<UIImage>() {
base::scoped_nsobject<UIImage> result([img retain]);
// If the image is not in the cache, load it from disk.
if (!result)
@@ -465,10 +464,9 @@ void ConvertAndSaveGreyImage(
}
base::PostTaskAndReplyWithResult(
- web::WebThread::GetMessageLoopProxyForThread(
- web::WebThread::FILE_USER_BLOCKING).get(),
- FROM_HERE,
- base::BindBlock(^base::scoped_nsobject<UIImage>() {
+ web::WebThread::GetTaskRunnerForThread(web::WebThread::FILE_USER_BLOCKING)
+ .get(),
+ FROM_HERE, base::BindBlock(^base::scoped_nsobject<UIImage>() {
// Retrieve the image on a high priority thread.
// Loading the file into NSData is more reliable.
// -imageWithContentsOfFile would ocassionally claim the image was not a
« no previous file with comments | « ios/chrome/browser/net/retryable_url_fetcher_unittest.mm ('k') | ios/crnet/crnet_environment.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698