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

Issue 11360014: Only check if a 'new' preference already exists in checking builds (Closed)

Created:
8 years, 1 month ago by aberent
Modified:
8 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Only check if a 'new' preference already exists in checking builds PrefService::RegisterPref should never be called with an existing preference. It is a bug in Chromium if it is. The existing code checked this whether or not DCHECK checks were enabled. It isn't necessary to check this if DCHECKs are disabled. BUG=158818 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165372

Patch Set 1 #

Total comments: 2

Patch Set 2 : Code review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -4 lines) Patch
M chrome/browser/prefs/pref_service.cc View 1 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Anthony Berent
This replaces some of changes that were originally part of https://codereview.chromium.org/11307005/. It is, however, independent ...
8 years, 1 month ago (2012-10-31 20:02:29 UTC) #1
Bernhard Bauer
https://codereview.chromium.org/11360014/diff/1/chrome/browser/prefs/pref_service.cc File chrome/browser/prefs/pref_service.cc (right): https://codereview.chromium.org/11360014/diff/1/chrome/browser/prefs/pref_service.cc#newcode790 chrome/browser/prefs/pref_service.cc:790: DCHECK(FindPreference(path) == NULL) << You could just write DCHECK(!FindPreference(path)) ...
8 years, 1 month ago (2012-10-31 23:06:14 UTC) #2
Anthony Berent
https://codereview.chromium.org/11360014/diff/1/chrome/browser/prefs/pref_service.cc File chrome/browser/prefs/pref_service.cc (right): https://codereview.chromium.org/11360014/diff/1/chrome/browser/prefs/pref_service.cc#newcode790 chrome/browser/prefs/pref_service.cc:790: DCHECK(FindPreference(path) == NULL) << On 2012/10/31 23:06:14, Bernhard Bauer ...
8 years, 1 month ago (2012-11-01 10:25:24 UTC) #3
Bernhard Bauer
lgtm
8 years, 1 month ago (2012-11-01 11:06:45 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/11360014/5001
8 years, 1 month ago (2012-11-01 11:10:38 UTC) #5
commit-bot: I haz the power
8 years, 1 month ago (2012-11-01 14:41:31 UTC) #6
Change committed as 165372

Powered by Google App Engine
This is Rietveld 408576698