New issue
Advanced search Search tips

Issue 715008 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Nov 28
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Investigate making ShellLinkItem not refcounted

Project Member Reported by grt@chromium.org, Apr 25 2017

Issue description

It's not obvious that there's a need for ShellLinkItem to be refcounted. If possible, massage things so that item ownership is clear and that instances are held in std::unique_ptrs rather than scoped_refptrs.
 

Comment 1 by chengx@chromium.org, Apr 25 2017

I'll take a look. Thanks!
The ShellLinkItem object is now stored in two different container objects. See the following code snippet for an example: https://cs.chromium.org/chromium/src/chrome/browser/win/jumplist.cc?l=458-460

In this example, |link| is stored in both |most_visited_pages_| and |icon_urls_|. In this case, I think shared pointer is more appropriate.
Status: WontFix (was: Assigned)

Sign in to add a comment