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

Side by Side Diff: components/signin/core/browser/account_info.h

Issue 1728033002: components: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_INFO_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_INFO_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_INFO_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 // Information about a specific account. 10 // Information about a specific account.
11 struct AccountInfo { 11 struct AccountInfo {
12 AccountInfo(); 12 AccountInfo();
13 AccountInfo(const AccountInfo& other);
13 ~AccountInfo(); 14 ~AccountInfo();
14 15
15 std::string account_id; // The account ID used by OAuth2TokenService. 16 std::string account_id; // The account ID used by OAuth2TokenService.
16 std::string gaia; 17 std::string gaia;
17 std::string email; 18 std::string email;
18 std::string full_name; 19 std::string full_name;
19 std::string given_name; 20 std::string given_name;
20 std::string hosted_domain; 21 std::string hosted_domain;
21 std::string locale; 22 std::string locale;
22 std::string picture_url; 23 std::string picture_url;
23 bool is_child_account; 24 bool is_child_account;
24 25
25 bool IsValid() const; 26 bool IsValid() const;
26 // Updates the empty fields of |this| with |other|. Returns whether at least 27 // Updates the empty fields of |this| with |other|. Returns whether at least
27 // one field was updated. 28 // one field was updated.
28 bool UpdateWith(const AccountInfo& other); 29 bool UpdateWith(const AccountInfo& other);
29 }; 30 };
30 31
31 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_INFO_H_ 32 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698