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

Unified Diff: chrome/browser/media_galleries/media_galleries_preferences.cc

Issue 2827853003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/media_galleries (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
« no previous file with comments | « chrome/browser/media_galleries/media_file_system_registry.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_galleries/media_galleries_preferences.cc
diff --git a/chrome/browser/media_galleries/media_galleries_preferences.cc b/chrome/browser/media_galleries/media_galleries_preferences.cc
index 649e3102995d153e16aa5c2047156d6d4f3d6277..e87fa6df4c4a1f9c0da13840a93a00635a8cc818 100644
--- a/chrome/browser/media_galleries/media_galleries_preferences.cc
+++ b/chrome/browser/media_galleries/media_galleries_preferences.cc
@@ -670,10 +670,9 @@ void MediaGalleriesPreferences::OnFinderDeviceID(const std::string& device_id) {
if (!gallery_name.empty()) {
pre_initialization_callbacks_waiting_++;
content::BrowserThread::PostTaskAndReply(
- content::BrowserThread::FILE,
- FROM_HERE,
- base::Bind(&InitializeImportedMediaGalleryRegistryOnFileThread),
- base::Bind(
+ content::BrowserThread::FILE, FROM_HERE,
+ base::BindOnce(&InitializeImportedMediaGalleryRegistryOnFileThread),
+ base::BindOnce(
&MediaGalleriesPreferences::OnInitializationCallbackReturned,
weak_factory_.GetWeakPtr()));
}
« no previous file with comments | « chrome/browser/media_galleries/media_file_system_registry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698