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

Unified Diff: chrome/browser/chromeos/login/demo_mode/demo_app_launcher.cc

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests. Created 4 years, 10 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/demo_mode/demo_app_launcher.cc
diff --git a/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.cc b/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.cc
index e5f452cd129b6a91b67ec5976d3c8e8ab78e87b5..5c9c45d597d75813fa060f3da410ae6039fc256b 100644
--- a/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.cc
+++ b/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.cc
@@ -49,14 +49,14 @@ DemoAppLauncher::~DemoAppLauncher() {
void DemoAppLauncher::StartDemoAppLaunch() {
DVLOG(1) << "Launching demo app...";
// user_id = DemoAppUserId, force_emphemeral = true, delegate = this.
- kiosk_profile_loader_.reset(new KioskProfileLoader(
- login::DemoAccountId().GetUserEmail(), true, this));
+ kiosk_profile_loader_.reset(
+ new KioskProfileLoader(login::DemoAccountId(), true, this));
kiosk_profile_loader_->Start();
}
// static
-bool DemoAppLauncher::IsDemoAppSession(const std::string& user_id) {
- return user_id == login::DemoAccountId().GetUserEmail();
+bool DemoAppLauncher::IsDemoAppSession(const AccountId& account_id) {
+ return account_id == login::DemoAccountId();
}
// static

Powered by Google App Engine
This is Rietveld 408576698