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

Issue 889303004: JSONStringValueSerializer: Constructor argument must not be null. (Closed)

Created:
5 years, 10 months ago by Matt Giuca
Modified:
5 years, 10 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@calamity-doodle-static
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

JSONStringValueSerializer: Constructor argument must not be null. Previously, this class would fail gracefully if given a nullptr. Now it has undefined behaviour. Dealing with null isn't necessary as no caller passes nullptr here, and in general, pass-by-result style functions do not expect null pointers. Dealing with nullptr makes my follow-up work messy, so I am just removing it. Also, moved constructor implementation to .cc file, and properly documented the lifetime constraints on |json_string|. BUG=455068 Committed: https://crrev.com/4ea5490a5e7b248389249756f132403b61a6944a Cr-Commit-Position: refs/heads/master@{#314703}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -21 lines) Patch
M base/json/json_string_value_serializer.h View 3 chunks +8 lines, -17 lines 0 comments Download
M base/json/json_string_value_serializer.cc View 3 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Matt Giuca
Hi Ricardo, This is a precursor to https://codereview.chromium.org/895913004 (it is much easier if I don't ...
5 years, 10 months ago (2015-02-04 03:52:15 UTC) #2
rvargas (doing something else)
lgtm
5 years, 10 months ago (2015-02-04 21:05:11 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889303004/1
5 years, 10 months ago (2015-02-04 23:12:36 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-05 01:22:52 UTC) #6
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 01:23:56 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/4ea5490a5e7b248389249756f132403b61a6944a
Cr-Commit-Position: refs/heads/master@{#314703}

Powered by Google App Engine
This is Rietveld 408576698