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

Issue 8528031: Fix memory leak in SetDefaultContentSettings. (Closed)

Created:
9 years, 1 month ago by markusheintz_
Modified:
9 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix memory leak in the SetDefaultContentSettings method of the HostContentSettingaMap. BUG=104775, 102637 TEST=HostContentSettingsMapTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110908

Patch Set 1 #

Patch Set 2 : Fix memory leaks #

Total comments: 8

Patch Set 3 : Remove unneccessary delete and comment #

Total comments: 2

Patch Set 4 : Remove Valgrind suppressions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -28 lines) Patch
M chrome/browser/content_settings/content_settings_default_provider.cc View 1 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 2 1 chunk +9 lines, -6 lines 0 comments Download
M tools/heapcheck/suppressions.txt View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
markusheintz_
Please have a look at this tiny CL that is based on http://codereview.chromium.org/8539004/ THX
9 years, 1 month ago (2011-11-14 18:17:52 UTC) #1
markusheintz_
Please review this small CL. It fixes another memory leak and changes SetDefaultContentSetting to use ...
9 years, 1 month ago (2011-11-18 16:25:15 UTC) #2
Bernhard Bauer
http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc#newcode221 chrome/browser/content_settings/host_content_settings_map.cc:221: value); You should still check the return value for ...
9 years, 1 month ago (2011-11-18 16:32:42 UTC) #3
James Hawkins
http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc#newcode244 chrome/browser/content_settings/host_content_settings_map.cc:244: // There should be at least one provider that ...
9 years, 1 month ago (2011-11-18 16:39:44 UTC) #4
Bernhard Bauer
http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc#newcode221 chrome/browser/content_settings/host_content_settings_map.cc:221: value); On 2011/11/18 16:32:42, Bernhard Bauer wrote: > You ...
9 years, 1 month ago (2011-11-18 16:44:44 UTC) #5
James Hawkins
http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc#newcode244 chrome/browser/content_settings/host_content_settings_map.cc:244: // There should be at least one provider that ...
9 years, 1 month ago (2011-11-18 16:53:40 UTC) #6
markusheintz_
http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc#newcode244 chrome/browser/content_settings/host_content_settings_map.cc:244: // There should be at least one provider that ...
9 years, 1 month ago (2011-11-18 17:01:18 UTC) #7
markusheintz_
Ok it is actually as simple as this: The other fix from yesterday (http://codereview.chromium.org/8592001/) didn't ...
9 years, 1 month ago (2011-11-18 21:04:31 UTC) #8
James Hawkins
http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/8528031/diff/3001/chrome/browser/content_settings/host_content_settings_map.cc#newcode244 chrome/browser/content_settings/host_content_settings_map.cc:244: // There should be at least one provider that ...
9 years, 1 month ago (2011-11-18 21:07:23 UTC) #9
markusheintz_
The "delete value "is already removed in the latest pachset.
9 years, 1 month ago (2011-11-18 21:09:30 UTC) #10
markusheintz_
On 2011/11/18 21:09:30, markusheintz_ wrote: > The "delete value "is already removed in the latest ...
9 years, 1 month ago (2011-11-18 21:13:31 UTC) #11
James Hawkins
http://codereview.chromium.org/8528031/diff/12001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/8528031/diff/12001/chrome/browser/content_settings/host_content_settings_map.cc#newcode216 chrome/browser/content_settings/host_content_settings_map.cc:216: SetWebsiteSetting( I don't understand why you got rid of ...
9 years, 1 month ago (2011-11-18 21:21:13 UTC) #12
markusheintz_
http://codereview.chromium.org/8528031/diff/12001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/8528031/diff/12001/chrome/browser/content_settings/host_content_settings_map.cc#newcode216 chrome/browser/content_settings/host_content_settings_map.cc:216: SetWebsiteSetting( On 2011/11/18 21:21:13, James Hawkins wrote: > I ...
9 years, 1 month ago (2011-11-18 21:28:17 UTC) #13
James Hawkins
Gotcha; LGTM. Please remove the suppression that was added (in this CL).
9 years, 1 month ago (2011-11-18 21:29:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markusheintz@chromium.org/8528031/14001
9 years, 1 month ago (2011-11-21 11:55:53 UTC) #15
commit-bot: I haz the power
9 years, 1 month ago (2011-11-21 13:20:37 UTC) #16
Change committed as 110908

Powered by Google App Engine
This is Rietveld 408576698