--- Users Roman AppData Local Temp torch_torrent_thumbn ail_helper cc-

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- C:/Users/Roman/AppData/Local/Temp/torch_torrent_thumbnail_helper.cc-revBASE.svn001.tmp.cc Ұ 﫲 29 12:52:56 2014
+++ D:/projects/torch_36/src/chrome/browser/torch_torrent_helpers/torch_torrent_thumbnail_helper.cc Э  3 15:34:23 2014
@@ -83,11 +83,11 @@ bool ThumbnailHelper::IsDefaultThumbnail() const
void ThumbnailHelper::DisplayTilesViewThumbnail(
const content::URLDataSource::GotDataCallback& callback)
{
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
-
if (tiles_view_thumbnail_bytes_ && tiles_view_thumbnail_bytes_->size())
{
- callback.Run(tiles_view_thumbnail_bytes_.get());
+ content::BrowserThread::PostTask(
+ content::BrowserThread::IO, FROM_HERE,
+ base::Bind(callback, tiles_view_thumbnail_bytes_.get()));
return;
}
@@ -103,11 +103,11 @@ void ThumbnailHelper::DisplayTilesViewThumbnail(
void ThumbnailHelper::DisplayTableViewThumbnail(
const content::URLDataSource::GotDataCallback& callback)
{
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
-
if (table_view_thumbnail_bytes_ && table_view_thumbnail_bytes_->size())
{
- callback.Run(table_view_thumbnail_bytes_.get());
+ content::BrowserThread::PostTask(
+ content::BrowserThread::IO, FROM_HERE,
+ base::Bind(callback, table_view_thumbnail_bytes_.get()));
return;
}