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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h

Issue 2910423002: cros: Add UMA metrics in migration UI to get more information from migration failures. (Closed)
Patch Set: Add Cryptohome.MigrationUI.ShowFailureScreen. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // WebUIMessageHandler implementation: 60 // WebUIMessageHandler implementation:
61 void RegisterMessages() override; 61 void RegisterMessages() override;
62 62
63 // PowerManagerClient::Observer implementation: 63 // PowerManagerClient::Observer implementation:
64 void PowerChanged(const power_manager::PowerSupplyProperties& proto) override; 64 void PowerChanged(const power_manager::PowerSupplyProperties& proto) override;
65 65
66 // Handlers for JS API callbacks. 66 // Handlers for JS API callbacks.
67 void HandleStartMigration(); 67 void HandleStartMigration();
68 void HandleSkipMigration(); 68 void HandleSkipMigration();
69 void HandleRequestRestart(); 69 void HandleRequestRestart();
70 void HandleRequestRestartOnFailure();
70 void HandleOpenFeedbackDialog(); 71 void HandleOpenFeedbackDialog();
71 72
72 // Updates UI state. 73 // Updates UI state.
73 void UpdateUIState(UIState state); 74 void UpdateUIState(UIState state);
74 75
75 void CheckAvailableStorage(); 76 void CheckAvailableStorage();
76 void OnGetAvailableStorage(int64_t size); 77 void OnGetAvailableStorage(int64_t size);
77 void WaitBatteryAndMigrate(); 78 void WaitBatteryAndMigrate();
78 void StartMigration(); 79 void StartMigration();
79 void OnMountExistingVault(bool success, 80 void OnMountExistingVault(bool success,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 std::unique_ptr<LoginFeedback> login_feedback_; 126 std::unique_ptr<LoginFeedback> login_feedback_;
126 127
127 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_; 128 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler); 130 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler);
130 }; 131 };
131 132
132 } // namespace chromeos 133 } // namespace chromeos
133 134
134 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA NDLER_H_ 135 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA NDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698