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

Issue 2850163002: Fix main intent metrics when zero tabs present. (Closed)

Created:
3 years, 7 months ago by Ted C
Modified:
3 years, 7 months ago
Reviewers:
Theresa
CC:
chromium-reviews, asvitkine+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix main intent metrics when zero tabs present. The previous ignore logic was incorrect as it was both calling create and set index. Thus the zero tabs case was resulting in switch tabs always. Adds tests to catch regressions going forward. BUG=717062 Review-Url: https://codereview.chromium.org/2850163002 Cr-Commit-Position: refs/heads/master@{#468493} Committed: https://chromium.googlesource.com/chromium/src/+/7fb9cb4281ac50effd7bdb628e6737fb2d518c4e

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Add findbugs suppression in code only used for testing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -26 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/metrics/MainIntentBehaviorMetrics.java View 1 2 8 chunks +41 lines, -25 lines 0 comments Download
M chrome/android/java_sources.gni View 1 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/metrics/MainIntentBehaviorMetricsIntegrationTest.java View 1 chunk +133 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Ted C
PTAL
3 years, 7 months ago (2017-05-01 16:32:21 UTC) #2
Theresa
lgtm
3 years, 7 months ago (2017-05-01 17:06:50 UTC) #3
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/2850163002/20001
3 years, 7 months ago (2017-05-01 17:11:50 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/259279)
3 years, 7 months ago (2017-05-01 18:54:55 UTC) #10
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/2850163002/40001
3 years, 7 months ago (2017-05-01 21:40:23 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 23:49:42 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7fb9cb4281ac50effd7bdb628e67...

Powered by Google App Engine
This is Rietveld 408576698