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

Unified Diff: chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.cc

Issue 2758593002: Enable screen capture for ARC++ Kiosk (Closed)
Patch Set: Achuith's nits Created 3 years, 9 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/app_mode/arc/arc_kiosk_app_manager.cc
diff --git a/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.cc b/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.cc
index a2b593fd6a3729537cdd374e8e3613a6e12a1acb..6687d28f742a760c27a6597ebf6f8b1b301da10d 100644
--- a/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.cc
+++ b/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.cc
@@ -184,6 +184,7 @@ void ArcKioskAppManager::UpdateApps() {
ArcKioskApps old_apps(std::move(apps_));
auto_launch_account_id_.clear();
+ auto_launched_with_zero_delay_ = false;
std::string auto_login_account_id_from_settings;
CrosSettings::Get()->GetString(kAccountsPrefDeviceLocalAccountAutoLoginId,
&auto_login_account_id_from_settings);
@@ -197,8 +198,13 @@ void ArcKioskAppManager::UpdateApps() {
const AccountId account_id(AccountId::FromUserEmail(account.user_id));
- if (account.account_id == auto_login_account_id_from_settings)
+ if (account.account_id == auto_login_account_id_from_settings) {
auto_launch_account_id_ = account_id;
+ int auto_launch_delay = 0;
+ CrosSettings::Get()->GetInteger(
+ kAccountsPrefDeviceLocalAccountAutoLoginDelay, &auto_launch_delay);
+ auto_launched_with_zero_delay_ = auto_launch_delay == 0;
+ }
auto old_it =
std::find(old_apps.begin(), old_apps.end(), account.arc_kiosk_app_info);

Powered by Google App Engine
This is Rietveld 408576698