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

Issue 2748463004: No 'prefs' state is necessary for an active file. (Closed)

Created:
3 years, 9 months ago by bcwhite
Modified:
3 years, 9 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

No 'prefs' state is necessary for an active file and it interferes with reading the file for the previous run. Also add a DCHECK to have future users not set a pref-key for "active" files since it's not necessary as the file contents itself are updated. BUG=696721 Review-Url: https://codereview.chromium.org/2748463004 Cr-Commit-Position: refs/heads/master@{#456695} Committed: https://chromium.googlesource.com/chromium/src/+/4ff719bc73eb4d3d6b780f15392baffcf77ee062

Patch Set 1 #

Patch Set 2 : add comments and DCHECK to validate this case #

Patch Set 3 : fixed test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -9 lines) Patch
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M components/metrics/file_metrics_provider.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M components/metrics/file_metrics_provider.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M components/metrics/file_metrics_provider_unittest.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (17 generated)
bcwhite
3 years, 9 months ago (2017-03-10 23:33:23 UTC) #7
Sigurður Ásgeirsson
rubber stamp lgtm as Scott's OOO this week.
3 years, 9 months ago (2017-03-13 16:47:11 UTC) #16
Alexei Svitkine (slow)
lgtm
3 years, 9 months ago (2017-03-13 21:29:11 UTC) #17
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/2748463004/40001
3 years, 9 months ago (2017-03-14 13:14:55 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 14:06:31 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4ff719bc73eb4d3d6b780f15392b...

Powered by Google App Engine
This is Rietveld 408576698