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

Unified Diff: chrome/browser/component_updater/cld_component_installer.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/browser/component_updater/cld_component_installer.cc
diff --git a/chrome/browser/component_updater/cld_component_installer.cc b/chrome/browser/component_updater/cld_component_installer.cc
index e69f7aca6465f72e543b53e04e340621da7dd528..d287f434cecb7a4152404e1055c4f996169cc6d6 100644
--- a/chrome/browser/component_updater/cld_component_installer.cc
+++ b/chrome/browser/component_updater/cld_component_installer.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/component_updater/cld_component_installer.h"
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -124,7 +125,7 @@ void RegisterCldComponent(ComponentUpdateService* cus) {
new CldComponentInstallerTraits());
// |cus| will take ownership of |installer| during installer->Register(cus).
DefaultComponentInstaller* installer =
- new DefaultComponentInstaller(traits.Pass());
+ new DefaultComponentInstaller(std::move(traits));
installer->Register(cus, base::Closure());
}

Powered by Google App Engine
This is Rietveld 408576698