Skip to content

Commit

Permalink
[ChromeCart][DOM] Change start time for execution time recording
Browse files Browse the repository at this point in the history
Bug: 1393161
Change-Id: I572e87f855e6b60bff830519a69b3067454eab8d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4342455
Commit-Queue: Mei Liang <meiliang@chromium.org>
Auto-Submit: Yue Zhang <yuezhanggg@chromium.org>
Reviewed-by: Mei Liang <meiliang@chromium.org>
Commit-Queue: Yue Zhang <yuezhanggg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1117865}
  • Loading branch information
Yue Zhang authored and Chromium LUCI CQ committed Mar 16, 2023
1 parent e27596f commit 22c43aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/renderer/cart/commerce_hint_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,7 @@ void CommerceHintAgent::OnMainFrameIntersectionChanged(

void CommerceHintAgent::FocusedElementChanged(
const blink::WebElement& focused_element) {
base::Time before_check = base::Time::Now();
if (!should_skip_.has_value() || should_skip_.value()) {
return;
}
Expand All @@ -1266,7 +1267,6 @@ void CommerceHintAgent::FocusedElementChanged(
}
auto builder = ukm::builders::Shopping_AddToCartDetection(
render_frame()->GetWebFrame()->GetDocument().GetUkmSourceId());
base::Time before_check = base::Time::Now();
blink::WebElement element = focused_element;
if (IsAddToCartButton(element)) {
add_to_cart_focus_time_ = base::Time::Now();
Expand Down

0 comments on commit 22c43aa

Please sign in to comment.