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

Side by Side Diff: chrome/browser/extensions/api/identity/extension_token_key.cc

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/extensions/api/identity/extension_token_key.h" 5 #include "chrome/browser/extensions/api/identity/extension_token_key.h"
6 6
7 #include <tuple> 7 #include <tuple>
8 8
9 namespace extensions { 9 namespace extensions {
10 10
11 ExtensionTokenKey::ExtensionTokenKey(const std::string& extension_id, 11 ExtensionTokenKey::ExtensionTokenKey(const std::string& extension_id,
12 const std::string& account_id, 12 const std::string& account_id,
13 const std::set<std::string>& scopes) 13 const std::set<std::string>& scopes)
14 : extension_id(extension_id), account_id(account_id), scopes(scopes) {} 14 : extension_id(extension_id), account_id(account_id), scopes(scopes) {}
15 15
16 ExtensionTokenKey::ExtensionTokenKey(const ExtensionTokenKey& other) = default;
17
16 ExtensionTokenKey::~ExtensionTokenKey() {} 18 ExtensionTokenKey::~ExtensionTokenKey() {}
17 19
18 bool ExtensionTokenKey::operator<(const ExtensionTokenKey& rhs) const { 20 bool ExtensionTokenKey::operator<(const ExtensionTokenKey& rhs) const {
19 return std::tie(extension_id, account_id, scopes) < 21 return std::tie(extension_id, account_id, scopes) <
20 std::tie(rhs.extension_id, rhs.account_id, rhs.scopes); 22 std::tie(rhs.extension_id, rhs.account_id, rhs.scopes);
21 } 23 }
22 24
23 } // namespace extensions 25 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698