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

Issue 2821563002: [Offline Pages] Fix crash in chrome://offline-internals (Closed)

Created:
3 years, 8 months ago by dewittj
Modified:
3 years, 8 months ago
Reviewers:
Dan Beam, chili
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Fix crash in chrome://offline-internals The base::Value API changed semantics and internally started using std::move on the Value passed into it. We assumed that the pointer would remain valid even after being passed to the base::Value that would own it. This patch uses the new std::unique_ptr API and reorders the code so we don't fall victim to this bug. BUG=711472

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.cc View 5 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
dewittj
PTAL, thanks
3 years, 8 months ago (2017-04-13 22:20:09 UTC) #3
dewittj
Whoops, git-cl owners picked an "Emeritus." dbeam, PTAL.
3 years, 8 months ago (2017-04-13 22:22:25 UTC) #6
chili
lgtm Thanks for fixing this!
3 years, 8 months ago (2017-04-13 22:43:12 UTC) #7
Dan Beam
lgtm
3 years, 8 months ago (2017-04-18 02:09:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2821563002/1
3 years, 8 months ago (2017-04-18 02:11:33 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/413336)
3 years, 8 months ago (2017-04-18 02:17:22 UTC) #16
dewittj
3 years, 8 months ago (2017-04-18 16:50:41 UTC) #17
well, it looks like I was outraced by vabr@ who happened to make the exact same
change as me.  Closing.

Powered by Google App Engine
This is Rietveld 408576698