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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc

Issue 2524673003: arc: Stop/start ARC++ kiosk app when maintenance session started/finished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits and includes Created 4 years 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/app_list/arc/arc_app_list_prefs.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
index c7c8218560a6618a85f2ccb7e9790778e84889a1..fdf876e111667b9939e59d53cd521002f0345b10 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
@@ -12,7 +12,6 @@
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/task_runner_util.h"
-#include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.h"
#include "chrome/browser/chromeos/arc/policy/arc_policy_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/app_list/app_list_service.h"
@@ -668,12 +667,6 @@ void ArcAppListPrefs::OnInstanceReady() {
// Note, sync_service_ may be nullptr in testing.
sync_service_ = arc::ArcPackageSyncableService::Get(profile_);
- // Kiosk apps should be run only for kiosk sessions.
- if (user_manager::UserManager::Get()->IsLoggedInAsArcKioskApp()) {
- kiosk_app_service_ = chromeos::ArcKioskAppService::Get(profile_);
- DCHECK(kiosk_app_service_);
- }
-
// In some tests app_instance may not be set.
if (!app_instance)
return;
@@ -693,7 +686,6 @@ void ArcAppListPrefs::OnInstanceClosed() {
sync_service_ = nullptr;
}
- kiosk_app_service_ = nullptr;
is_initialized_ = false;
package_list_initial_refreshed_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698