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

Unified Diff: chrome/browser/extensions/install_verifier.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/install_signer.cc ('k') | chrome/browser/extensions/isolated_app_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/install_verifier.cc
diff --git a/chrome/browser/extensions/install_verifier.cc b/chrome/browser/extensions/install_verifier.cc
index ba9b12cb5042ee3a18b78a723c93ae0c5ee999a7..8cc3a60da0f7bdacded8175d727938411896449e 100644
--- a/chrome/browser/extensions/install_verifier.cc
+++ b/chrome/browser/extensions/install_verifier.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <string>
+#include <utility>
#include "base/base_switches.h"
#include "base/bind.h"
@@ -235,7 +236,7 @@ void InstallVerifier::Init() {
LogInitResultHistogram(INIT_INVALID_SIGNATURE);
DVLOG(1) << "Init - ignoring invalid signature";
} else {
- signature_ = signature_from_prefs.Pass();
+ signature_ = std::move(signature_from_prefs);
LogInitResultHistogram(INIT_VALID_SIGNATURE);
UMA_HISTOGRAM_COUNTS_100("ExtensionInstallVerifier.InitSignatureCount",
signature_->ids.size());
@@ -636,7 +637,7 @@ void InstallVerifier::SignatureCallback(
// TODO(asargent) - if this was something like a network error, we need to
// do retries with exponential back off.
} else {
- signature_ = signature.Pass();
+ signature_ = std::move(signature);
SaveToPrefs();
if (!provisional_.empty()) {
« no previous file with comments | « chrome/browser/extensions/install_signer.cc ('k') | chrome/browser/extensions/isolated_app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698