summaryrefslogtreecommitdiff
path: root/chromium/components/update_client/component_patcher_operation.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-03 13:42:47 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-15 10:27:51 +0000
commit8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec (patch)
treed29d987c4d7b173cf853279b79a51598f104b403 /chromium/components/update_client/component_patcher_operation.cc
parent830c9e163d31a9180fadca926b3e1d7dfffb5021 (diff)
downloadqtwebengine-chromium-8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec.tar.gz
BASELINE: Update Chromium to 66.0.3359.156
Change-Id: I0c9831ad39911a086b6377b16f995ad75a51e441 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/components/update_client/component_patcher_operation.cc')
-rw-r--r--chromium/components/update_client/component_patcher_operation.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/components/update_client/component_patcher_operation.cc b/chromium/components/update_client/component_patcher_operation.cc
index 99906e495ad..cc36bb36ea6 100644
--- a/chromium/components/update_client/component_patcher_operation.cc
+++ b/chromium/components/update_client/component_patcher_operation.cc
@@ -62,7 +62,7 @@ DeltaUpdateOp::~DeltaUpdateOp() {
void DeltaUpdateOp::Run(const base::DictionaryValue* command_args,
const base::FilePath& input_dir,
const base::FilePath& unpack_dir,
- const scoped_refptr<CrxInstaller>& installer,
+ scoped_refptr<CrxInstaller> installer,
ComponentPatcher::Callback callback) {
callback_ = std::move(callback);
std::string output_rel_path;
@@ -117,7 +117,7 @@ DeltaUpdateOpCopy::~DeltaUpdateOpCopy() {
UnpackerError DeltaUpdateOpCopy::DoParseArguments(
const base::DictionaryValue* command_args,
const base::FilePath& input_dir,
- const scoped_refptr<CrxInstaller>& installer) {
+ scoped_refptr<CrxInstaller> installer) {
std::string input_rel_path;
if (!command_args->GetString(kInput, &input_rel_path))
return UnpackerError::kDeltaBadCommands;
@@ -144,7 +144,7 @@ DeltaUpdateOpCreate::~DeltaUpdateOpCreate() {
UnpackerError DeltaUpdateOpCreate::DoParseArguments(
const base::DictionaryValue* command_args,
const base::FilePath& input_dir,
- const scoped_refptr<CrxInstaller>& installer) {
+ scoped_refptr<CrxInstaller> installer) {
std::string patch_rel_path;
if (!command_args->GetString(kPatch, &patch_rel_path))
return UnpackerError::kDeltaBadCommands;
@@ -174,7 +174,7 @@ DeltaUpdateOpPatch::~DeltaUpdateOpPatch() {
UnpackerError DeltaUpdateOpPatch::DoParseArguments(
const base::DictionaryValue* command_args,
const base::FilePath& input_dir,
- const scoped_refptr<CrxInstaller>& installer) {
+ scoped_refptr<CrxInstaller> installer) {
std::string patch_rel_path;
std::string input_rel_path;
if (!command_args->GetString(kPatch, &patch_rel_path) ||
@@ -193,8 +193,8 @@ UnpackerError DeltaUpdateOpPatch::DoParseArguments(
void DeltaUpdateOpPatch::DoRun(ComponentPatcher::Callback callback) {
patch::Patch(connector_, operation_, input_abs_path_, patch_abs_path_,
output_abs_path_,
- base::Bind(&DeltaUpdateOpPatch::DonePatching, this,
- base::Passed(&callback)));
+ base::BindOnce(&DeltaUpdateOpPatch::DonePatching, this,
+ std::move(callback)));
}
void DeltaUpdateOpPatch::DonePatching(ComponentPatcher::Callback callback,