| Index: chrome/browser/thumbnails/thumbnail_tab_helper.cc
|
| diff --git a/chrome/browser/thumbnails/thumbnail_tab_helper.cc b/chrome/browser/thumbnails/thumbnail_tab_helper.cc
|
| index 0db61992f231624062e8677d54bce4748dbe34bc..f8322e76f9a2d9573939dea942a32fe342b8bffb 100644
|
| --- a/chrome/browser/thumbnails/thumbnail_tab_helper.cc
|
| +++ b/chrome/browser/thumbnails/thumbnail_tab_helper.cc
|
| @@ -71,7 +71,7 @@ void ProcessCapturedBitmap(scoped_refptr<ThumbnailingContext> context,
|
|
|
| // On success, we must be on the UI thread (on failure because of shutdown we
|
| // are not on the UI thread).
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
|
|
| algorithm->ProcessBitmap(context, base::Bind(&UpdateThumbnail), bitmap);
|
| }
|
| @@ -79,7 +79,7 @@ void ProcessCapturedBitmap(scoped_refptr<ThumbnailingContext> context,
|
| void AsyncProcessThumbnail(content::WebContents* web_contents,
|
| scoped_refptr<ThumbnailingContext> context,
|
| scoped_refptr<ThumbnailingAlgorithm> algorithm) {
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| RenderWidgetHost* render_widget_host = web_contents->GetRenderViewHost();
|
| content::RenderWidgetHostView* view = render_widget_host->GetView();
|
| if (!view)
|
|
|