Commit 71eaa4f8 authored by Sahel Sharify's avatar Sahel Sharify Committed by Commit Bot

[Payments] add uma metric to record cases that service worker timesout.

Bug: 927793
Change-Id: I57ca3806130a93cc244a75fd0af2dfb6066039b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1690394Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
Reviewed-by: default avatarRobert Kaplow <rkaplow@chromium.org>
Reviewed-by: default avatarSahel Sharify <sahel@chromium.org>
Commit-Queue: Sahel Sharify <sahel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676045}
parent fc748344
......@@ -12,6 +12,7 @@
#include "base/base64.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/task/post_task.h"
......@@ -206,6 +207,8 @@ class RespondWithCallbacks
} else if (service_worker_status ==
blink::ServiceWorkerStatusCode::kErrorTimeout) {
response_type = PaymentEventResponseType::PAYMENT_EVENT_TIMEOUT;
UMA_HISTOGRAM_BOOLEAN("PaymentRequest.ServiceWorkerStatusCodeTimeout",
true);
}
RespondWithErrorAndDeleteSelf(response_type);
......
......@@ -95345,6 +95345,11 @@ uploading your change for review.
</summary>
</histogram>
<histogram name="PaymentRequest.ServiceWorkerStatusCodeTimeout" enum="Boolean">
<owner>sahel@chromium.org</owner>
<summary>True when a service worker times out 5 mins after request.</summary>
</histogram>
<histogram
name="PaymentRequest.UserDidNotHaveCompleteSuggestionsForEverything.EffectOnCompletion"
enum="PaymentRequestFlowCompletionStatus">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment