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

Side by Side Diff: components/ownership/owner_key_util.cc

Issue 1552023002: Convert Pass()→std::move() in //components (CrOS edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/ownership/owner_key_util.h" 5 #include "components/ownership/owner_key_util.h"
6 6
7 #include <utility>
8
7 namespace ownership { 9 namespace ownership {
8 10
9 /////////////////////////////////////////////////////////////////////////// 11 ///////////////////////////////////////////////////////////////////////////
10 // PublicKey 12 // PublicKey
11 13
12 PublicKey::PublicKey() { 14 PublicKey::PublicKey() {
13 } 15 }
14 16
15 PublicKey::~PublicKey() { 17 PublicKey::~PublicKey() {
16 } 18 }
17 19
18 /////////////////////////////////////////////////////////////////////////// 20 ///////////////////////////////////////////////////////////////////////////
19 // PrivateKey 21 // PrivateKey
20 22
21 PrivateKey::PrivateKey(crypto::ScopedSECKEYPrivateKey key) : key_(key.Pass()) { 23 PrivateKey::PrivateKey(crypto::ScopedSECKEYPrivateKey key)
22 } 24 : key_(std::move(key)) {}
23 25
24 PrivateKey::~PrivateKey() { 26 PrivateKey::~PrivateKey() {
25 } 27 }
26 28
27 } // namespace ownership 29 } // namespace ownership
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver_desktop.cc ('k') | components/ownership/owner_key_util_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698