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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator.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: Add cryptohome::Identification() . 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/ui/startup/startup_browser_creator.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc
index d8b21e373beda1d3ab05db5f3a7c39fc3028cbe1..5a7d914c7a323bfa0ea31ff3a716e3af9deb6cf7 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -85,6 +85,8 @@
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chromeos/chromeos_switches.h"
+#include "chromeos/cryptohome/cryptohome_parameters.h"
+#include "chromeos/login/auth/utils.h"
#include "components/user_manager/user_manager.h"
#endif
@@ -673,7 +675,9 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
// possible. We should instead cleanly exit and go back to the OOBE screen,
// where we will launch again after the timeout has expired.
if (chromeos::DemoAppLauncher::IsDemoAppSession(
- command_line.GetSwitchValueASCII(chromeos::switches::kLoginUser))) {
+ cryptohome::GetAccountId(cryptohome::Identification::FromString(
+ command_line.GetSwitchValueASCII(
+ chromeos::switches::kLoginUser))))) {
chrome::AttemptUserExit();
return false;
}

Powered by Google App Engine
This is Rietveld 408576698