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

Issue 2971953002: Skip TabObserver#onUrlUpdated when not in main frame (Closed)

Created:
3 years, 5 months ago by wychen
Modified:
3 years, 5 months ago
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Skip TabObserver#onUrlUpdated when not in main frame onUrlUpdated() should be called when the URL is updated. It doesn't make sense to call onUrlUpdated() at didFinishNavigation() of the iframes, since the main URL is not updated. onUrlUpdated() triggers GoogleApiIcingClientImpl#reportContext(), and excessive calls to onUrlUpdated() translates to excessive Icing calls. This CL lowers reporting per navigation to <5 roughly. In UMA, total count and Success bucket count of Search.IcingContextReportingStatus per navigation should decrease. BUG=739570 Review-Url: https://codereview.chromium.org/2971953002 Cr-Commit-Position: refs/heads/master@{#485468} Committed: https://chromium.googlesource.com/chromium/src/+/b1ff788c214ab8c446f9a6df82f333872c6c0da7

Patch Set 1 #

Total comments: 2

Patch Set 2 : merge blocks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
wychen
PTAL
3 years, 5 months ago (2017-07-06 01:44:30 UTC) #9
Yusuf
https://codereview.chromium.org/2971953002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java File chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java (right): https://codereview.chromium.org/2971953002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java#newcode236 chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java:236: if (isInMainFrame) { why not do this in the ...
3 years, 5 months ago (2017-07-06 05:20:46 UTC) #10
wychen
https://codereview.chromium.org/2971953002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java File chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java (right): https://codereview.chromium.org/2971953002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java#newcode236 chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java:236: if (isInMainFrame) { On 2017/07/06 05:20:46, Yusuf wrote: > ...
3 years, 5 months ago (2017-07-06 19:22:37 UTC) #11
Yusuf
lgtm
3 years, 5 months ago (2017-07-10 23:20:00 UTC) #15
David Trainor- moved to gerrit
lgtm
3 years, 5 months ago (2017-07-10 23:20:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2971953002/20001
3 years, 5 months ago (2017-07-10 23:59:20 UTC) #18
commit-bot: I haz the power
3 years, 5 months ago (2017-07-11 00:49:59 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b1ff788c214ab8c446f9a6df82f3...

Powered by Google App Engine
This is Rietveld 408576698