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

Issue 491753003: Domain Reliability: Don't upload when metrics reporting is off. (Closed)

Created:
6 years, 4 months ago by Deprecated (see juliatuttle)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Domain Reliability: Don't upload when metrics reporting is off. Tie Domain Reliability uploads to metrics reporting -- halt uploads when reporting is turned off. (Keep recording, since we will eventually be able to access reports through JavaScript as well.) BUG=407170 Committed: https://crrev.com/fa8427f940699df3073889af4ab20a1fb2b9ed37 Cr-Commit-Position: refs/heads/master@{#291740}

Patch Set 1 #

Patch Set 2 : Also depend on base_prefs #

Patch Set 3 : Block uploads in uploader, not dispatcher #

Total comments: 8

Patch Set 4 : Fix things David spotted #

Patch Set 5 : Tweak changes to pref_member #

Patch Set 6 : Fix pref handling #

Total comments: 4

Patch Set 7 : Refactor pref initialization, clarify threading #

Patch Set 8 : Pass pref_thread explicitly for unittests #

Patch Set 9 : Make sure constructor and destructor are on correct threads. #

Total comments: 2

Patch Set 10 : Fix a last couple of nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -60 lines) Patch
M base/prefs/pref_member.h View 1 2 3 4 5 chunks +8 lines, -6 lines 0 comments Download
M base/prefs/pref_member.cc View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -6 lines 0 comments Download
M components/domain_reliability.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/domain_reliability/monitor.h View 1 2 3 4 5 6 7 8 9 5 chunks +58 lines, -9 lines 0 comments Download
M components/domain_reliability/monitor.cc View 1 2 3 4 5 6 7 8 8 chunks +87 lines, -19 lines 0 comments Download
M components/domain_reliability/monitor_unittest.cc View 1 2 3 4 5 6 7 4 chunks +24 lines, -3 lines 0 comments Download
M components/domain_reliability/service.h View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M components/domain_reliability/service.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -3 lines 0 comments Download
M components/domain_reliability/test_util.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M components/domain_reliability/test_util.cc View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M components/domain_reliability/uploader.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/domain_reliability/uploader.cc View 1 2 3 4 5 4 chunks +14 lines, -1 line 0 comments Download
M components/domain_reliability/uploader_unittest.cc View 1 2 2 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
Deprecated (see juliatuttle)
PTAL, davidben.
6 years, 4 months ago (2014-08-20 20:37:47 UTC) #1
davidben
https://codereview.chromium.org/491753003/diff/40001/components/domain_reliability/monitor.cc File components/domain_reliability/monitor.cc (right): https://codereview.chromium.org/491753003/diff/40001/components/domain_reliability/monitor.cc#newcode48 components/domain_reliability/monitor.cc:48: void DomainReliabilityMonitor::InitReportingPref( Is this called anywhere outside of test ...
6 years, 4 months ago (2014-08-20 21:49:03 UTC) #2
Deprecated (see juliatuttle)
PTAL, davidven. https://codereview.chromium.org/491753003/diff/40001/components/domain_reliability/monitor.cc File components/domain_reliability/monitor.cc (right): https://codereview.chromium.org/491753003/diff/40001/components/domain_reliability/monitor.cc#newcode48 components/domain_reliability/monitor.cc:48: void DomainReliabilityMonitor::InitReportingPref( On 2014/08/20 21:49:02, David Benjamin ...
6 years, 4 months ago (2014-08-21 18:35:29 UTC) #3
Deprecated (see juliatuttle)
*davidben
6 years, 4 months ago (2014-08-21 18:35:38 UTC) #4
brettw
base lgtm
6 years, 4 months ago (2014-08-21 21:41:31 UTC) #5
davidben
lgtm with one comment on OnReportingPrefChanged. Also a suggestion on initializing that might be cleaner, ...
6 years, 4 months ago (2014-08-22 19:00:40 UTC) #6
davidben
https://codereview.chromium.org/491753003/diff/100001/components/domain_reliability/monitor.cc File components/domain_reliability/monitor.cc (right): https://codereview.chromium.org/491753003/diff/100001/components/domain_reliability/monitor.cc#newcode67 components/domain_reliability/monitor.cc:67: const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) { On 2014/08/22 19:00:40, David Benjamin ...
6 years, 4 months ago (2014-08-22 19:02:10 UTC) #7
Deprecated (see juliatuttle)
https://codereview.chromium.org/491753003/diff/100001/components/domain_reliability/monitor.cc File components/domain_reliability/monitor.cc (right): https://codereview.chromium.org/491753003/diff/100001/components/domain_reliability/monitor.cc#newcode262 components/domain_reliability/monitor.cc:262: void DomainReliabilityMonitor::OnReportingPrefChanged() { On 2014/08/22 19:00:40, David Benjamin wrote: ...
6 years, 4 months ago (2014-08-23 00:10:29 UTC) #8
Deprecated (see juliatuttle)
The CQ bit was checked by ttuttle@chromium.org
6 years, 4 months ago (2014-08-23 00:10:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/491753003/160001
6 years, 4 months ago (2014-08-23 04:56:37 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-23 06:04:46 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-23 06:07:29 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/6226)
6 years, 4 months ago (2014-08-23 06:07:30 UTC) #13
Deprecated (see juliatuttle)
PTAL at profiles, noms.
6 years, 3 months ago (2014-08-25 16:53:17 UTC) #14
noms (inactive)
profiles lgtm with a potential nit https://codereview.chromium.org/491753003/diff/160001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/491753003/diff/160001/chrome/browser/profiles/profile_impl_io_data.cc#newcode18 chrome/browser/profiles/profile_impl_io_data.cc:18: #include "chrome/browser/browser_process.h" Is ...
6 years, 3 months ago (2014-08-25 16:57:10 UTC) #15
Deprecated (see juliatuttle)
Thanks! https://codereview.chromium.org/491753003/diff/160001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/491753003/diff/160001/chrome/browser/profiles/profile_impl_io_data.cc#newcode18 chrome/browser/profiles/profile_impl_io_data.cc:18: #include "chrome/browser/browser_process.h" On 2014/08/25 16:57:10, Monica Dinculescu wrote: ...
6 years, 3 months ago (2014-08-25 17:04:49 UTC) #16
Deprecated (see juliatuttle)
The CQ bit was checked by ttuttle@chromium.org
6 years, 3 months ago (2014-08-25 17:04:56 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/491753003/180001
6 years, 3 months ago (2014-08-25 17:05:42 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-25 18:16:38 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-25 18:19:15 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/6411)
6 years, 3 months ago (2014-08-25 18:19:16 UTC) #21
Deprecated (see juliatuttle)
ttuttle@chromium.org changed reviewers: + michaeln@chromium.org
6 years, 3 months ago (2014-08-25 19:31:53 UTC) #22
Deprecated (see juliatuttle)
PTAL at browsing_data, michaeln.
6 years, 3 months ago (2014-08-25 19:31:54 UTC) #23
michaeln
On 2014/08/25 19:31:54, ttuttle wrote: > PTAL at browsing_data, michaeln. r/s lgtm
6 years, 3 months ago (2014-08-25 19:33:17 UTC) #24
Deprecated (see juliatuttle)
The CQ bit was checked by ttuttle@chromium.org
6 years, 3 months ago (2014-08-25 19:33:55 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/491753003/180001
6 years, 3 months ago (2014-08-25 19:34:23 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (180001) as 84591c3ab30b2595a0a6936d5305720b3c9d7ac8
6 years, 3 months ago (2014-08-25 19:38:19 UTC) #27
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:36:50 UTC) #28
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/fa8427f940699df3073889af4ab20a1fb2b9ed37
Cr-Commit-Position: refs/heads/master@{#291740}

Powered by Google App Engine
This is Rietveld 408576698