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

Issue 6974011: Don't send a reference to a string that goes out of scope. (Closed)

Created:
9 years, 7 months ago by Sam Kerner (Chrome)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Don't send a reference to a string that goes out of scope. Send a reference to a string on an object that lives longer than the callback which uses the string. Committed because the change is simple, and fixes failures on the waterfall. Antony, I would be happy to roll back if you feel this is not the correct solution. TBR=asargent BUG=83592 TEST=sync integration tests on mac Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86289

Patch Set 1 : Add bug to comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M chrome/common/net/url_fetcher.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/net/url_fetcher.cc View 3 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Sam Kerner (Chrome)
9 years, 7 months ago (2011-05-23 15:39:35 UTC) #1
asargent_no_longer_on_chrome
9 years, 7 months ago (2011-05-23 16:20:24 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698