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

Issue 566763002: Use a std::string to store return value from FieldTrialList::FindFullName() (Closed)

Created:
6 years, 3 months ago by Randy Smith (Not in Mondays)
Modified:
6 years, 3 months ago
Reviewers:
mef, sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use a std::string to store return value from FieldTrialList::FindFullName() to prevent memory from being freed. R=mef@chromium.org BUG=413400 Committed: https://crrev.com/2d076284582761510b76429f1718797b6c776b83 Cr-Commit-Position: refs/heads/master@{#294660}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move back to StringPiece and prefix checking. #

Total comments: 2

Patch Set 3 : Added warning comment. #

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

Messages

Total messages: 13 (2 generated)
Randy Smith (Not in Mondays)
Misha: Could you review this? It's reasonably high priority; it's blocking enabling SDCH on HTTPS ...
6 years, 3 months ago (2014-09-11 22:02:04 UTC) #1
mef
I wonder if it is possible to detect this pattern programmatically (at compile or run ...
6 years, 3 months ago (2014-09-12 13:28:33 UTC) #2
Randy Smith (Not in Mondays)
Well, on Windows the memory is scribbled on as part of deallcoation. More invalidation than ...
6 years, 3 months ago (2014-09-12 17:49:42 UTC) #3
mef
lgtm
6 years, 3 months ago (2014-09-12 17:54:03 UTC) #4
Randy Smith (Not in Mondays)
Thanks! Scott: Willing to stamp?
6 years, 3 months ago (2014-09-12 17:55:55 UTC) #6
sky
LGTM https://codereview.chromium.org/566763002/diff/20001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/566763002/diff/20001/chrome/browser/chrome_browser_main.cc#newcode1387 chrome/browser/chrome_browser_main.cc:1387: std::string sdch_trial_group_string = How about a comment so ...
6 years, 3 months ago (2014-09-12 18:14:50 UTC) #7
Randy Smith (Not in Mondays)
Thanks! https://codereview.chromium.org/566763002/diff/20001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/566763002/diff/20001/chrome/browser/chrome_browser_main.cc#newcode1387 chrome/browser/chrome_browser_main.cc:1387: std::string sdch_trial_group_string = On 2014/09/12 18:14:49, sky wrote: ...
6 years, 3 months ago (2014-09-12 19:35:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/566763002/40001
6 years, 3 months ago (2014-09-12 19:38:44 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 30f9b54f427103fbf25d8a06bf01fe368db37671
6 years, 3 months ago (2014-09-12 21:24:00 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/2d076284582761510b76429f1718797b6c776b83 Cr-Commit-Position: refs/heads/master@{#294660}
6 years, 3 months ago (2014-09-12 21:28:41 UTC) #12
sky
6 years, 3 months ago (2014-09-16 22:06:27 UTC) #13
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698