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

Unified Diff: chrome/browser/background/background_contents_service.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
« no previous file with comments | « chrome/browser/apps/shortcut_manager.cc ('k') | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_contents_service.cc
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index 1be0bc75dd43da998dccc0a4859b75cc2d1dd92b..0f0247b512ad0b70eff6f26197cd743190c8d210 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -90,8 +90,9 @@ void ScheduleCloseBalloon(const std::string& extension_id, Profile* profile) {
if (g_disable_close_balloon_for_testing)
return;
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&CloseBalloon, kNotificationPrefix + extension_id,
- NotificationUIManager::GetProfileID(profile)));
+ FROM_HERE,
+ base::BindOnce(&CloseBalloon, kNotificationPrefix + extension_id,
+ NotificationUIManager::GetProfileID(profile)));
}
// Delegate for the app/extension crash notification balloon. Restarts the
@@ -480,10 +481,11 @@ void BackgroundContentsService::OnExtensionLoaded(
component_backoff_map_.find(extension->id());
if (it != component_backoff_map_.end()) {
net::BackoffEntry* entry = component_backoff_map_[extension->id()].get();
- base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(FROM_HERE,
- base::Bind(&BackgroundContentsService::MaybeClearBackoffEntry,
- weak_ptr_factory_.GetWeakPtr(), extension->id(),
- entry->failure_count()),
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
+ FROM_HERE,
+ base::BindOnce(&BackgroundContentsService::MaybeClearBackoffEntry,
+ weak_ptr_factory_.GetWeakPtr(), extension->id(),
+ entry->failure_count()),
base::TimeDelta::FromSeconds(60));
}
}
@@ -570,7 +572,7 @@ void BackgroundContentsService::RestartForceInstalledExtensionOnCrash(
}
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
- FROM_HERE, base::Bind(&ReloadExtension, extension->id(), profile),
+ FROM_HERE, base::BindOnce(&ReloadExtension, extension->id(), profile),
base::TimeDelta::FromMilliseconds(restart_delay));
}
« no previous file with comments | « chrome/browser/apps/shortcut_manager.cc ('k') | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698