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

Issue 836093005: Remove dead code related to base::JsonPrefStore without a path. (Closed)

Created:
5 years, 11 months ago by Daniel Bratell
Modified:
5 years, 11 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, erikwright+watch_chromium.org, eirik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Nobody uses base::JsonPrefStore::ReadResult without a path and if they had tried it, it would have crashed. This removes the code that tried to support non-path JsonPrefStore and adds a DCHECK in the constructor in case it happens in the future. If the code is ever needed in the future, the scoped_ptr<ReadResult> need to be initialized with new ReadResult. BUG= R=bauerb@chromium.org Committed: https://crrev.com/970f39d3eeac9baa033a48dfe3310df8e388c68f Cr-Commit-Position: refs/heads/master@{#310300}

Patch Set 1 #

Patch Set 2 : Less code is better (removed instead of fixed). #

Total comments: 2

Patch Set 3 : Moved DCHECK to constructors. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -13 lines) Patch
M base/prefs/json_pref_store.cc View 1 2 4 chunks +2 lines, -13 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
Daniel Bratell
baurb, please take a look at this 2 line patch. The code has been like ...
5 years, 11 months ago (2015-01-07 10:14:12 UTC) #1
Daniel Bratell
bauerb, please take a look at this 2 line patch (sorry about the misspelling. :-( ...
5 years, 11 months ago (2015-01-07 10:16:02 UTC) #3
Bernhard Bauer
Yeah, constructing a JsonPrefStore with an empty path seems like more of a programmer error ...
5 years, 11 months ago (2015-01-07 10:28:58 UTC) #4
Daniel Bratell
Less code is better so just a DCHECK for now. Does this look fine? The ...
5 years, 11 months ago (2015-01-07 10:53:01 UTC) #5
Bernhard Bauer
On 2015/01/07 10:53:01, Daniel Bratell wrote: > Less code is better so just a DCHECK ...
5 years, 11 months ago (2015-01-07 11:01:03 UTC) #6
Daniel Bratell
Please take a new look. Moved the DCHECK to the constructors, and got the code ...
5 years, 11 months ago (2015-01-07 13:44:34 UTC) #7
Bernhard Bauer
LGTM, but can you update the description to reflect the new code? Thanks!
5 years, 11 months ago (2015-01-07 15:40:04 UTC) #8
Daniel Bratell
On 2015/01/07 15:40:04, Bernhard Bauer wrote: > LGTM, but can you update the description to ...
5 years, 11 months ago (2015-01-07 15:41:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836093005/40001
5 years, 11 months ago (2015-01-07 15:46:22 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-07 16:41:31 UTC) #12
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 16:42:36 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/970f39d3eeac9baa033a48dfe3310df8e388c68f
Cr-Commit-Position: refs/heads/master@{#310300}

Powered by Google App Engine
This is Rietveld 408576698