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

Issue 525303004: Domain Reliability: Don't create Service if metrics reporting disabled (Closed)

Created:
6 years, 3 months ago by Deprecated (see juliatuttle)
Modified:
6 years, 3 months ago
Reviewers:
mmenke
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Domain Reliability: Don't create Service if metrics reporting disabled Given that the metrics reporting pref is labelled in the UI as requiring a restart to apply, this is a much simpler way of gating Domain Reliability uploads on it. We simply don't create the Service (so we don't collect data and upload it) if the pref is false. This will need to be revisited when we also start using the Monitor for JavaScript hooks (e.g. the Navigation Error Logging API). BUG=407170 Committed: https://crrev.com/8d0540250a09769fa5f3a323302ceb4a0d498a51 Cr-Commit-Position: refs/heads/master@{#293226}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Even simpler. #

Total comments: 1

Patch Set 3 : Even even simpler. #

Total comments: 1

Patch Set 4 : Add braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M chrome/browser/domain_reliability/service_factory.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
Deprecated (see juliatuttle)
PTAL, mmenke. (This is a very tiny version of the earlier UMA change.)
6 years, 3 months ago (2014-09-02 15:53:38 UTC) #2
mmenke
https://codereview.chromium.org/525303004/diff/1/chrome/browser/domain_reliability/service_factory.cc File chrome/browser/domain_reliability/service_factory.cc (right): https://codereview.chromium.org/525303004/diff/1/chrome/browser/domain_reliability/service_factory.cc#newcode55 chrome/browser/domain_reliability/service_factory.cc:55: g_browser_process->local_state()); Do we even need this member variable? Seems ...
6 years, 3 months ago (2014-09-02 18:45:40 UTC) #3
Deprecated (see juliatuttle)
PTAL, mmenke. https://codereview.chromium.org/525303004/diff/1/chrome/browser/domain_reliability/service_factory.cc File chrome/browser/domain_reliability/service_factory.cc (right): https://codereview.chromium.org/525303004/diff/1/chrome/browser/domain_reliability/service_factory.cc#newcode55 chrome/browser/domain_reliability/service_factory.cc:55: g_browser_process->local_state()); On 2014/09/02 18:45:40, mmenke wrote: > ...
6 years, 3 months ago (2014-09-02 20:41:27 UTC) #4
Deprecated (see juliatuttle)
PTAL, mmenke.
6 years, 3 months ago (2014-09-03 14:55:31 UTC) #5
mmenke
https://codereview.chromium.org/525303004/diff/20001/chrome/browser/domain_reliability/service_factory.h File chrome/browser/domain_reliability/service_factory.h (right): https://codereview.chromium.org/525303004/diff/20001/chrome/browser/domain_reliability/service_factory.h#newcode39 chrome/browser/domain_reliability/service_factory.h:39: bool reporting_enabled_; I don't think this is needed, either, ...
6 years, 3 months ago (2014-09-03 14:59:47 UTC) #6
Deprecated (see juliatuttle)
PTAL, mmenke.
6 years, 3 months ago (2014-09-03 17:05:59 UTC) #7
mmenke
LGTM https://codereview.chromium.org/525303004/diff/40001/chrome/browser/domain_reliability/service_factory.cc File chrome/browser/domain_reliability/service_factory.cc (right): https://codereview.chromium.org/525303004/diff/40001/chrome/browser/domain_reliability/service_factory.cc#newcode64 chrome/browser/domain_reliability/service_factory.cc:64: return NULL; nit: Use braces when the conditional ...
6 years, 3 months ago (2014-09-03 17:12:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/525303004/60001
6 years, 3 months ago (2014-09-03 19:28:18 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-03 20:31:16 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001) as cc49de567a96b0436dae30c979b85fae2aeea47b
6 years, 3 months ago (2014-09-03 23:57:54 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:28:43 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8d0540250a09769fa5f3a323302ceb4a0d498a51
Cr-Commit-Position: refs/heads/master@{#293226}

Powered by Google App Engine
This is Rietveld 408576698