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

Unified Diff: chrome/browser/extensions/unpacked_installer.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (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/extensions/unpacked_installer.cc
diff --git a/chrome/browser/extensions/unpacked_installer.cc b/chrome/browser/extensions/unpacked_installer.cc
index 6d7bda46c0975c58707a5c2168b573d321077208..4d9ccaa5b84dd297352aff64fb9279fdb876a345 100644
--- a/chrome/browser/extensions/unpacked_installer.cc
+++ b/chrome/browser/extensions/unpacked_installer.cc
@@ -130,9 +130,8 @@ void UnpackedInstaller::Load(const base::FilePath& path_in) {
DCHECK(extension_path_.empty());
extension_path_ = path_in;
BrowserThread::PostTask(
- BrowserThread::FILE,
- FROM_HERE,
- base::Bind(&UnpackedInstaller::GetAbsolutePath, this));
+ BrowserThread::FILE, FROM_HERE,
+ base::BindOnce(&UnpackedInstaller::GetAbsolutePath, this));
}
bool UnpackedInstaller::LoadFromCommandLine(const base::FilePath& path_in,
@@ -309,14 +308,14 @@ void UnpackedInstaller::GetAbsolutePath() {
std::string error;
if (!file_util::CheckForIllegalFilenames(extension_path_, &error)) {
BrowserThread::PostTask(
- BrowserThread::UI,
- FROM_HERE,
- base::Bind(&UnpackedInstaller::ReportExtensionLoadError, this, error));
+ BrowserThread::UI, FROM_HERE,
+ base::BindOnce(&UnpackedInstaller::ReportExtensionLoadError, this,
+ error));
return;
}
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&UnpackedInstaller::CheckExtensionFileAccess, this));
+ base::BindOnce(&UnpackedInstaller::CheckExtensionFileAccess, this));
}
void UnpackedInstaller::CheckExtensionFileAccess() {
@@ -330,9 +329,8 @@ void UnpackedInstaller::CheckExtensionFileAccess() {
}
BrowserThread::PostTask(
- BrowserThread::FILE,
- FROM_HERE,
- base::Bind(&UnpackedInstaller::LoadWithFileAccess, this, GetFlags()));
+ BrowserThread::FILE, FROM_HERE,
+ base::BindOnce(&UnpackedInstaller::LoadWithFileAccess, this, GetFlags()));
}
void UnpackedInstaller::LoadWithFileAccess(int flags) {
@@ -346,16 +344,15 @@ void UnpackedInstaller::LoadWithFileAccess(int flags) {
!extension_l10n_util::ValidateExtensionLocales(
extension_path_, extension()->manifest()->value(), &error)) {
BrowserThread::PostTask(
- BrowserThread::UI,
- FROM_HERE,
- base::Bind(&UnpackedInstaller::ReportExtensionLoadError, this, error));
+ BrowserThread::UI, FROM_HERE,
+ base::BindOnce(&UnpackedInstaller::ReportExtensionLoadError, this,
+ error));
return;
}
BrowserThread::PostTask(
- BrowserThread::UI,
- FROM_HERE,
- base::Bind(&UnpackedInstaller::ShowInstallPrompt, this));
+ BrowserThread::UI, FROM_HERE,
+ base::BindOnce(&UnpackedInstaller::ShowInstallPrompt, this));
}
void UnpackedInstaller::ReportExtensionLoadError(const std::string &error) {
« no previous file with comments | « chrome/browser/extensions/test_extension_prefs.cc ('k') | chrome/browser/extensions/updater/extension_cache_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698