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

Unified Diff: components/signin/core/account_id/account_id.h

Issue 2617763003: Add a mojo interface for AccountId (Closed)
Patch Set: rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/ash/session_controller_client.cc ('k') | components/signin/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/account_id/account_id.h
diff --git a/components/signin/core/account_id/account_id.h b/components/signin/core/account_id/account_id.h
index 4bc02054a86caede0d828110db4523693b789483..81082b5fe0445252c4c272afde8c676e33e7b5dd 100644
--- a/components/signin/core/account_id/account_id.h
+++ b/components/signin/core/account_id/account_id.h
@@ -24,6 +24,13 @@ class AccountId {
public:
struct EmptyAccountId;
+ // Creates an empty account id.
+ //
+ // Note: This constructor is public as it is required for mojo serialization
+ // To create an AccountId object, prefer using the static FromXXXX methods or
+ // the EmptyAccountId method when creating an empty account id.
+ AccountId();
+
AccountId(const AccountId& other);
// If any of the comparable AccountIds has AccountType == UNKNOWN then it
@@ -90,7 +97,6 @@ class AccountId {
AccountId* out_account_id);
private:
- AccountId();
AccountId(const std::string& id,
const std::string& user_email,
const AccountType& account_type);
« no previous file with comments | « chrome/browser/ui/ash/session_controller_client.cc ('k') | components/signin/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698