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

Unified Diff: chrome/browser/chromeos/login/authenticator.h

Issue 10443125: Allow re-enrollment to the same domain in case of policy data loss. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 8 years, 6 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/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/authenticator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/authenticator.h
diff --git a/chrome/browser/chromeos/login/authenticator.h b/chrome/browser/chromeos/login/authenticator.h
index f992d31d2c31fdfb3f9f8a121d7d0e92fda0c186..ab0e2f26791c9a7e87e1f3861c141afe6a82add3 100644
--- a/chrome/browser/chromeos/login/authenticator.h
+++ b/chrome/browser/chromeos/login/authenticator.h
@@ -97,10 +97,16 @@ class Authenticator : public base::RefCountedThreadSafe<Authenticator> {
// http://mail.google.com/support/bin/answer.py?hl=en&ctx=mail&answer=10313#
static std::string Canonicalize(const std::string& email_address);
+ // Returns the canonical form of the given domain.
+ static std::string CanonicalizeDomain(const std::string& domain);
+
// Sanitize emails. Currently, it only ensures all emails have a domain by
// adding gmail.com if no domain is present.
static std::string Sanitize(const std::string& email_address);
+ // Extract the domain part from the canonical form of the given email.
+ static std::string ExtractDomainName(const std::string& email);
+
protected:
LoginStatusConsumer* consumer_;
Profile* authentication_profile_;
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698