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

Unified Diff: chrome/browser/chromeos/arc/arc_support_host.cc

Issue 2618603003: arc: Restore UMA statistics for failures in LSO flow. (Closed)
Patch Set: Created 3 years, 11 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/arc/arc_support_host.cc
diff --git a/chrome/browser/chromeos/arc/arc_support_host.cc b/chrome/browser/chromeos/arc/arc_support_host.cc
index ec1bbfd5352c1237908ce253255b60c22f7a423c..5ce98ef288893a8496e196911dd76aeb9bd0462e 100644
--- a/chrome/browser/chromeos/arc/arc_support_host.cc
+++ b/chrome/browser/chromeos/arc/arc_support_host.cc
@@ -69,6 +69,8 @@ constexpr char kEventOnWindowClosed[] = "onWindowClosed";
// extension.
// The auth token is passed via "code" field.
constexpr char kEventOnAuthSucceeded[] = "onAuthSucceeded";
+// "onAuthFailed" is fired when LSO authorization has failed in extension.
+constexpr char kEventOnAuthFailed[] = "onAuthFailed";
constexpr char kCode[] = "code";
// "onAgree" is fired when a user clicks "Agree" button.
@@ -524,6 +526,9 @@ void ArcSupportHost::OnMessage(const base::DictionaryValue& message) {
} else {
NOTREACHED();
}
+ } else if (event == kEventOnAuthFailed) {
+ for (auto& observer : observer_list_)
+ observer.OnAuthFailed();
} else if (event == kEventOnAgreed) {
bool is_metrics_enabled;
bool is_backup_restore_enabled;
« no previous file with comments | « chrome/browser/chromeos/arc/arc_support_host.h ('k') | chrome/browser/chromeos/arc/auth/arc_manual_auth_code_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698