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

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

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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/extensions/blob_reader.cc ('k') | chrome/browser/extensions/chrome_extension_function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/bundle_installer.cc
diff --git a/chrome/browser/extensions/bundle_installer.cc b/chrome/browser/extensions/bundle_installer.cc
index 30e489d9f05e1c9cab8e7b2cf7252adb775fc4e0..7e6d269de893accc96f9311395152aff223dd9e3 100644
--- a/chrome/browser/extensions/bundle_installer.cc
+++ b/chrome/browser/extensions/bundle_installer.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <string>
+#include <utility>
#include <vector>
#include "base/command_line.h"
@@ -185,11 +186,7 @@ void BundleInstaller::CompleteInstall(content::WebContents* web_contents,
gfx::ImageSkia::CreateFrom1xBitmap(entry.second.icon);
scoped_refptr<WebstoreInstaller> installer = new WebstoreInstaller(
- profile_,
- this,
- web_contents,
- entry.first,
- approval.Pass(),
+ profile_, this, web_contents, entry.first, std::move(approval),
WebstoreInstaller::INSTALL_SOURCE_OTHER);
installer->Start();
}
@@ -298,7 +295,7 @@ void BundleInstaller::ShowPrompt() {
}
prompt->set_bundle(this);
install_ui_->ShowDialog(
- this, nullptr, &icon_, prompt.Pass(), permissions.Pass(),
+ this, nullptr, &icon_, std::move(prompt), std::move(permissions),
ExtensionInstallPrompt::GetDefaultShowDialogCallback());
}
}
« no previous file with comments | « chrome/browser/extensions/blob_reader.cc ('k') | chrome/browser/extensions/chrome_extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698