Index: chrome/browser/chromeos/arc/arc_auth_context.cc |
diff --git a/chrome/browser/chromeos/arc/arc_auth_context.cc b/chrome/browser/chromeos/arc/arc_auth_context.cc |
index dc0e829e1a4b82b2e991210c4d8abf63a6292819..99d78b3e6723b584ed0d6a8b4920df17935194b2 100644 |
--- a/chrome/browser/chromeos/arc/arc_auth_context.cc |
+++ b/chrome/browser/chromeos/arc/arc_auth_context.cc |
@@ -6,10 +6,12 @@ |
#include "base/callback_helpers.h" |
#include "base/strings/stringprintf.h" |
+#include "base/strings/utf_string_conversions.h" |
#include "chrome/browser/chromeos/arc/arc_support_host.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
#include "chrome/browser/signin/signin_manager_factory.h" |
+#include "chrome/browser/signin/signin_ui_util.h" |
#include "components/signin/core/browser/profile_oauth2_token_service.h" |
#include "components/signin/core/browser/signin_manager_base.h" |
#include "content/public/browser/browser_context.h" |
@@ -42,6 +44,9 @@ ArcAuthContext::ArcAuthContext(Profile* profile) { |
SigninManagerFactory::GetForProfile(profile); |
CHECK(token_service_ && signin_manager); |
account_id_ = signin_manager->GetAuthenticatedAccountId(); |
+ |
+ full_account_id_ = base::UTF16ToUTF8( |
+ signin_ui_util::GetAuthenticatedUsername(signin_manager)); |
} |
ArcAuthContext::~ArcAuthContext() { |