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

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: Moved the domain extraction to Authenticator and added custom error message. 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
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..d329aab5a69eec6df4f7a9ee1bc878648529001c 100644
--- a/chrome/browser/chromeos/login/authenticator.h
+++ b/chrome/browser/chromeos/login/authenticator.h
@@ -101,6 +101,9 @@ class Authenticator : public base::RefCountedThreadSafe<Authenticator> {
// 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_;

Powered by Google App Engine
This is Rietveld 408576698