| Index: chrome/browser/profiles/profile_downloader.cc
|
| diff --git a/chrome/browser/profiles/profile_downloader.cc b/chrome/browser/profiles/profile_downloader.cc
|
| index ab7237b8016e019f9e56943af8ff45c182d5789f..1b98bcd488cb2fc13eeb8f07bb4dcbcad7fcd007 100644
|
| --- a/chrome/browser/profiles/profile_downloader.cc
|
| +++ b/chrome/browser/profiles/profile_downloader.cc
|
| @@ -205,7 +205,7 @@ void ProfileDownloader::Start() {
|
|
|
| void ProfileDownloader::StartForAccount(const std::string& account_id) {
|
| VLOG(1) << "Starting profile downloader...";
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
|
|
| ProfileOAuth2TokenService* service =
|
| ProfileOAuth2TokenServiceFactory::GetForProfile(
|
| @@ -349,7 +349,7 @@ void ProfileDownloader::OnNetworkError(int response_code) {
|
| }
|
|
|
| void ProfileDownloader::OnURLFetchComplete(const net::URLFetcher* source) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| std::string data;
|
| source->GetResponseAsString(&data);
|
| bool network_error =
|
| @@ -371,7 +371,7 @@ void ProfileDownloader::OnURLFetchComplete(const net::URLFetcher* source) {
|
| }
|
|
|
| void ProfileDownloader::OnImageDecoded(const SkBitmap& decoded_image) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| int image_size = delegate_->GetDesiredImageSideLength();
|
| profile_picture_ = skia::ImageOperations::Resize(
|
| decoded_image,
|
| @@ -383,7 +383,7 @@ void ProfileDownloader::OnImageDecoded(const SkBitmap& decoded_image) {
|
| }
|
|
|
| void ProfileDownloader::OnDecodeImageFailed() {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| delegate_->OnProfileDownloadFailure(
|
| this, ProfileDownloaderDelegate::IMAGE_DECODE_FAILED);
|
| }
|
|
|