| 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 c33bfe978ff780ca55ba5973e2d08d4b31a10756..2ba981775814ecb6c9c1226ebf0700f27c48acba 100644
|
| --- a/ios/chrome/browser/snapshots/snapshot_cache.mm
|
| +++ b/ios/chrome/browser/snapshots/snapshot_cache.mm
|
| @@ -212,8 +212,8 @@
|
| }
|
|
|
| base::PostTaskAndReplyWithResult(
|
| - web::WebThread::GetTaskRunnerForThread(web::WebThread::FILE_USER_BLOCKING)
|
| - .get(),
|
| + web::WebThread::GetMessageLoopProxyForThread(
|
| + 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,9 +401,10 @@
|
| // already in the cache, use it.
|
| UIImage* img = [imageDictionary_ objectForKey:sessionID];
|
| base::PostTaskAndReplyWithResult(
|
| - web::WebThread::GetTaskRunnerForThread(web::WebThread::FILE_USER_BLOCKING)
|
| - .get(),
|
| - FROM_HERE, base::BindBlock(^base::scoped_nsobject<UIImage>() {
|
| + web::WebThread::GetMessageLoopProxyForThread(
|
| + 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)
|
| @@ -464,9 +465,10 @@
|
| }
|
|
|
| base::PostTaskAndReplyWithResult(
|
| - web::WebThread::GetTaskRunnerForThread(web::WebThread::FILE_USER_BLOCKING)
|
| - .get(),
|
| - FROM_HERE, base::BindBlock(^base::scoped_nsobject<UIImage>() {
|
| + web::WebThread::GetMessageLoopProxyForThread(
|
| + 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
|
|
|