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

Issue 191983002: Clarify Value::Get*()'s interface to reflect the current implementation. (Closed)

Created:
6 years, 9 months ago by gab
Modified:
6 years, 9 months ago
Reviewers:
Bernhard Bauer, Nico
CC:
chromium-reviews, erikwright+watch_chromium.org, erikwright (departed)
Visibility:
Public.

Description

Clarify Value::Get*()'s interface to reflect the current implementation. The fact that each Get methods can be used with a NULL out-value simply to check that a value exists (and has the desired type) under a given key is used all over chrome, but isn't actually documented so this simply makes it official by documenting and testing this fact. Also document the fact that GetDouble will succeed for TYPE_INTEGER as well as TYPE_DOUBLE (which was a surprise to me when I wrote the tests for this CL). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255834

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -0 lines) Patch
M base/values.h View 3 chunks +10 lines, -0 lines 0 comments Download
M base/values_unittest.cc View 1 chunk +285 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
gab
Bernhard PTAL. Thanks! Gab
6 years, 9 months ago (2014-03-08 17:08:59 UTC) #1
Bernhard Bauer
LGTM! You're going to need to find an OWNER for base/ as well though.
6 years, 9 months ago (2014-03-08 19:35:33 UTC) #2
gab
On 2014/03/08 19:35:33, Bernhard Bauer wrote: > LGTM! You're going to need to find an ...
6 years, 9 months ago (2014-03-09 00:54:53 UTC) #3
Nico
lgtm
6 years, 9 months ago (2014-03-09 04:01:31 UTC) #4
gab
The CQ bit was checked by gab@chromium.org
6 years, 9 months ago (2014-03-09 04:54:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/191983002/1
6 years, 9 months ago (2014-03-09 04:55:14 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-09 04:55:28 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-09 04:55:28 UTC) #8
gab
The CQ bit was checked by gab@chromium.org
6 years, 9 months ago (2014-03-09 05:16:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/191983002/1
6 years, 9 months ago (2014-03-09 05:16:36 UTC) #10
commit-bot: I haz the power
6 years, 9 months ago (2014-03-09 07:13:24 UTC) #11
Message was sent while issue was closed.
Change committed as 255834

Powered by Google App Engine
This is Rietveld 408576698