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

Unified Diff: chrome/browser/chromeos/login/arc_kiosk_controller.cc

Issue 2944553003: cros: Enable Ext4 migration in ARC kiosk mode. (Closed)
Patch Set: Add UMA. Created 3 years, 6 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/arc_kiosk_controller.cc
diff --git a/chrome/browser/chromeos/login/arc_kiosk_controller.cc b/chrome/browser/chromeos/login/arc_kiosk_controller.cc
index 54ef2846ebd6a50b9439eb2f9d1b0491b44d11a3..92328863816ac981b711058d0f44829dce513a23 100644
--- a/chrome/browser/chromeos/login/arc_kiosk_controller.cc
+++ b/chrome/browser/chromeos/login/arc_kiosk_controller.cc
@@ -9,8 +9,10 @@
#include "base/timer/timer.h"
#include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h"
#include "chrome/browser/chromeos/login/auth/chrome_login_performer.h"
+#include "chrome/browser/chromeos/login/screens/encryption_migration_screen.h"
#include "chrome/browser/chromeos/login/ui/login_display_host.h"
#include "chrome/browser/chromeos/login/ui/webui_login_view.h"
+#include "chrome/browser/chromeos/login/wizard_controller.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
@@ -99,6 +101,19 @@ void ArcKioskController::SetAuthFlowOffline(bool offline) {
NOTREACHED();
}
+void ArcKioskController::OnOldEncryptionDetected(
+ const UserContext& user_context,
+ bool has_incomplete_migration) {
+ host_->StartWizard(OobeScreen::SCREEN_ENCRYPTION_MIGRATION);
+
+ EncryptionMigrationScreen* migration_screen =
+ static_cast<EncryptionMigrationScreen*>(
+ host_->GetWizardController()->current_screen());
+ DCHECK(migration_screen);
+ migration_screen->SetUserContext(user_context);
+ migration_screen->SetupInitialView();
+}
+
void ArcKioskController::OnProfilePrepared(Profile* profile,
bool browser_launched) {
DVLOG(1) << "Profile loaded... Starting app launch.";

Powered by Google App Engine
This is Rietveld 408576698