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

Issue 2804743002: Require native before logging a histogram (Closed)

Created:
3 years, 8 months ago by David Trainor- moved to gerrit
Modified:
3 years, 8 months ago
Reviewers:
Ted C
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Require native before logging a histogram The download recovery code added a call to RecordHistogram.recordBooleanHistogram to help track when we hit the recovery path, but this can happen when the native library isn't loaded. Since we just want a rough idea of if this is happening, guard it by requiring native to be loaded before logging the result. BUG=699323 Review-Url: https://codereview.chromium.org/2804743002 Cr-Commit-Position: refs/heads/master@{#462140} Committed: https://chromium.googlesource.com/chromium/src/+/60240a376d22f0951ee9dd063c4c297183a21122

Patch Set 1 #

Total comments: 1

Patch Set 2 : Moved to browser startup controller #

Patch Set 3 : Call BrowserStartupController in a way that actually works :) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java View 1 2 3 chunks +7 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (4 generated)
David Trainor- moved to gerrit
ptal :/
3 years, 8 months ago (2017-04-05 16:22:14 UTC) #2
Ted C
https://codereview.chromium.org/2804743002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java (right): https://codereview.chromium.org/2804743002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode182 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:182: if (LibraryLoader.isInitialized()) { Use CachedMetrics here
3 years, 8 months ago (2017-04-05 16:26:18 UTC) #3
David Trainor- moved to gerrit
On 2017/04/05 16:26:18, Ted C wrote: > https://codereview.chromium.org/2804743002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java > File > chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java > (right): > ...
3 years, 8 months ago (2017-04-05 16:59:04 UTC) #4
Ted C
lgtm
3 years, 8 months ago (2017-04-05 16:59:57 UTC) #5
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/2804743002/40001
3 years, 8 months ago (2017-04-05 17:01:41 UTC) #7
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 17:57:06 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/60240a376d22f0951ee9dd063c4c...

Powered by Google App Engine
This is Rietveld 408576698