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

Issue 2504333003: Fix DictionaryValue leak in component_loader.cc (Closed)

Created:
4 years, 1 month ago by lazyboy
Modified:
4 years, 1 month ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix DictionaryValue leak in component_loader.cc ComponentLoader::GetExtensionID() used to leak |manifest|, but this function was unused, so removed it. Component::Add(DictionaryValue*,FilePath&,bool) also leaks DictionaryValue when it bails out early. BUG=666153 Committed: https://crrev.com/f4e5cdb1ac9b339725dae67d5f6af9df8c5fe6bb Cr-Commit-Position: refs/heads/master@{#433036}

Patch Set 1 #

Total comments: 13

Patch Set 2 : address comments + rewrite all loops #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -104 lines) Patch
M chrome/browser/extensions/component_loader.h View 1 3 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 8 chunks +57 lines, -70 lines 0 comments Download
M chrome/browser/extensions/component_loader_unittest.cc View 1 chunk +20 lines, -21 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
lazyboy
4 years, 1 month ago (2016-11-17 01:57:52 UTC) #2
Devlin
lgtm with nits (mostly on the existing code). Thanks for the cleanup! :) https://codereview.chromium.org/2504333003/diff/1/chrome/browser/extensions/component_loader.cc File ...
4 years, 1 month ago (2016-11-17 16:02:55 UTC) #7
lazyboy
https://codereview.chromium.org/2504333003/diff/1/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://codereview.chromium.org/2504333003/diff/1/chrome/browser/extensions/component_loader.cc#newcode114 chrome/browser/extensions/component_loader.cc:114: std::unique_ptr<base::DictionaryValue> manifest_param, On 2016/11/17 16:02:54, Devlin wrote: > optional ...
4 years, 1 month ago (2016-11-17 22:50:38 UTC) #9
Devlin
https://codereview.chromium.org/2504333003/diff/1/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://codereview.chromium.org/2504333003/diff/1/chrome/browser/extensions/component_loader.cc#newcode114 chrome/browser/extensions/component_loader.cc:114: std::unique_ptr<base::DictionaryValue> manifest_param, On 2016/11/17 22:50:38, lazyboy wrote: > On ...
4 years, 1 month ago (2016-11-17 23:34:48 UTC) #11
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/2504333003/20001
4 years, 1 month ago (2016-11-18 02:16:38 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-18 02:59:20 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 03:03:58 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f4e5cdb1ac9b339725dae67d5f6af9df8c5fe6bb
Cr-Commit-Position: refs/heads/master@{#433036}

Powered by Google App Engine
This is Rietveld 408576698