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

Unified Diff: chrome/browser/apps/shortcut_manager.cc

Issue 2825003002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{a,b,c,d,e,f,g}* (Closed)
Patch Set: split rest of changes to 3 CLs 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/apps/shortcut_manager.cc
diff --git a/chrome/browser/apps/shortcut_manager.cc b/chrome/browser/apps/shortcut_manager.cc
index 91f23305d67bf3feae7ab14b2c4bfbc5e3d1ab5c..761714da1cc7d0f4034ad8c4165c814a12deb6ed 100644
--- a/chrome/browser/apps/shortcut_manager.cc
+++ b/chrome/browser/apps/shortcut_manager.cc
@@ -138,8 +138,8 @@ void AppShortcutManager::OnProfileWillBeRemoved(
return;
content::BrowserThread::PostTask(
content::BrowserThread::FILE, FROM_HERE,
- base::Bind(&web_app::internals::DeleteAllShortcutsForProfile,
- profile_path));
+ base::BindOnce(&web_app::internals::DeleteAllShortcutsForProfile,
+ profile_path));
}
void AppShortcutManager::UpdateShortcutsForAllAppsIfNeeded() {
@@ -151,10 +151,8 @@ void AppShortcutManager::UpdateShortcutsForAllAppsIfNeeded() {
return;
content::BrowserThread::PostDelayedTask(
- content::BrowserThread::UI,
- FROM_HERE,
- base::Bind(&web_app::UpdateShortcutsForAllApps,
- profile_,
- base::Bind(&SetCurrentAppShortcutsVersion, prefs_)),
+ content::BrowserThread::UI, FROM_HERE,
+ base::BindOnce(&web_app::UpdateShortcutsForAllApps, profile_,
+ base::Bind(&SetCurrentAppShortcutsVersion, prefs_)),
base::TimeDelta::FromSeconds(kUpdateShortcutsForAllAppsDelay));
}

Powered by Google App Engine
This is Rietveld 408576698