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

Issue 2762623004: Fix SettingsTestCase.test[Metrics|Breakpad]Reporting on Official (Closed)

Created:
3 years, 9 months ago by lpromero
Modified:
3 years, 9 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SettingsTestCase.test[Metrics|Breakpad]Reporting on Official The issue was: * chrome_test_util::SetWWANStateTo() calls -connectionTypeChanged: on the metrics mediator. * -connectionTypeChanged: should only be called when the mediator cares about WWAN status (DCHECK in the method). * The metrics mediator doesn't care about WWAN status when not recording or not on wifi-only ([self setWatchWWANEnabled:(optIn && wifiOnly)], which turns off listening to connection type changes). To fix it, I remove the calls to change the WWAN status within the test, as it calls -connectionTypeChanged:, which is not expected on the mediator in that configuration. BUG=700839 R=liaoyuke@chromium.org,olivierrobin@chromium.org Review-Url: https://codereview.chromium.org/2762623004 Cr-Commit-Position: refs/heads/master@{#458705} Committed: https://chromium.googlesource.com/chromium/src/+/0e1ab062c1452c0baa9c9adf3ad9671c268e06fe

Patch Set 1 #

Total comments: 1

Patch Set 2 : Don't add DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -6 lines) Patch
M ios/chrome/app/application_delegate/metrics_mediator.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/settings/settings_egtest.mm View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
lpromero
3 years, 9 months ago (2017-03-20 16:55:45 UTC) #1
lpromero
marq@chromium.org: Please review changes in metrics_mediator.
3 years, 9 months ago (2017-03-20 16:56:09 UTC) #5
lpromero
https://codereview.chromium.org/2762623004/diff/1/ios/chrome/browser/ui/settings/settings_egtest.mm File ios/chrome/browser/ui/settings/settings_egtest.mm (left): https://codereview.chromium.org/2762623004/diff/1/ios/chrome/browser/ui/settings/settings_egtest.mm#oldcode612 ios/chrome/browser/ui/settings/settings_egtest.mm:612: [self assertMetricsServiceDisabled:serviceType]; Note that this was a typo already, ...
3 years, 9 months ago (2017-03-20 16:56:56 UTC) #6
liaoyuke
lgtm on eg test file. Thank you for fixing this!
3 years, 9 months ago (2017-03-21 05:35:34 UTC) #8
marq (ping after 24h)
lgtm
3 years, 9 months ago (2017-03-21 08:38:45 UTC) #9
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/2762623004/20001
3 years, 9 months ago (2017-03-22 10:01:14 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 10:12:20 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0e1ab062c1452c0baa9c9adf3ad9...

Powered by Google App Engine
This is Rietveld 408576698