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

Unified Diff: chrome/browser/manifest/manifest_icon_downloader.cc

Issue 2828663002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{i,l,m,n,p,r}* (Closed)
Patch Set: Created 3 years, 8 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
Index: chrome/browser/manifest/manifest_icon_downloader.cc
diff --git a/chrome/browser/manifest/manifest_icon_downloader.cc b/chrome/browser/manifest/manifest_icon_downloader.cc
index b3a7c6b4f658e57e354d423555f926791967e89a..50714c7af14041b2fe1da0525e3313f4a8c5fc85 100644
--- a/chrome/browser/manifest/manifest_icon_downloader.cc
+++ b/chrome/browser/manifest/manifest_icon_downloader.cc
@@ -111,12 +111,9 @@ void ManifestIconDownloader::OnIconFetched(
if (chosen.height() > ideal_icon_size_in_px ||
chosen.width() > ideal_icon_size_in_px) {
content::BrowserThread::PostTask(
- content::BrowserThread::IO,
- FROM_HERE,
- base::Bind(&ManifestIconDownloader::ScaleIcon,
- ideal_icon_size_in_px,
- chosen,
- callback));
+ content::BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&ManifestIconDownloader::ScaleIcon,
+ ideal_icon_size_in_px, chosen, callback));
return;
}
@@ -135,10 +132,8 @@ void ManifestIconDownloader::ScaleIcon(
ideal_icon_size_in_px,
ideal_icon_size_in_px);
- content::BrowserThread::PostTask(
- content::BrowserThread::UI,
- FROM_HERE,
- base::Bind(callback, scaled));
+ content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
+ base::BindOnce(callback, scaled));
}
int ManifestIconDownloader::FindClosestBitmapIndex(
« no previous file with comments | « chrome/browser/local_discovery/service_discovery_client_mdns.cc ('k') | chrome/browser/memory/tab_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698