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

Unified Diff: chrome/browser/chromeos/policy/consumer_management_service.cc

Issue 617183003: Make sure GetAuthenticatedAccountId() returns a canonicalized id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/policy/consumer_management_service.cc
diff --git a/chrome/browser/chromeos/policy/consumer_management_service.cc b/chrome/browser/chromeos/policy/consumer_management_service.cc
index 448b97d7f6a47854ac9396ab736de4fc7d7d424c..3e06d8661102b835e50b5bdfc0765ad7b699f117 100644
--- a/chrome/browser/chromeos/policy/consumer_management_service.cc
+++ b/chrome/browser/chromeos/policy/consumer_management_service.cc
@@ -67,7 +67,7 @@ const char kEnrollmentNotificationUrl[] = "chrome://consumer-management/enroll";
const char kConsumerManagementOverlay[] = "consumer-management-overlay";
// Returns the account ID signed in to |profile|.
-const std::string& GetAccountIdFromProfile(Profile* profile) {
+std::string GetAccountIdFromProfile(Profile* profile) {
return SigninManagerFactory::GetForProfile(profile)->
GetAuthenticatedAccountId();
}

Powered by Google App Engine
This is Rietveld 408576698