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

Issue 88703002: Add WARN_UNUSED_RESULT to DictionaryValue::GetXYZWithoutPathExpansion (Closed)

Created:
7 years ago by gab
Modified:
7 years ago
Reviewers:
CC:
chromium-reviews, erikwright+watch_chromium.org, Mattias Nissler (ping if slow), Bernhard Bauer, battre, Pam (message me for reviews)
Visibility:
Public.

Description

Add WARN_UNUSED_RESULT to DictionaryValue::GetXYZWithoutPathExpansion BUG=323346

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -20 lines) Patch
M base/values.h View 1 chunk +30 lines, -20 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
gab
FYI, I tried this after a discussion on https://codereview.chromium.org/81183005/ that this would be nice. Ideally ...
7 years ago (2013-11-26 19:27:23 UTC) #1
gab
7 years ago (2013-11-26 22:34:46 UTC) #2
On 2013/11/26 19:27:23, gab wrote:
> FYI, I tried this after a discussion on
> https://codereview.chromium.org/81183005/ that this would be nice.
> 
> Ideally I think all getters in values.h should probably force their users to
> check the return value of the getter.
> 
> This doesn't appear to be trivial however as it looks like some of the
failures
> are in third_party code depending on base :(...
> 
> Cheers!
> Gab

FYI, I think this would be a great improvement to the API, but I don't have time
to refactor everything required to make it happen.

I will close this CL, feel free to pick it up if you want.

Cheers,
Gab

Powered by Google App Engine
This is Rietveld 408576698