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

Issue 10796081: Do not inherit from std::vector. (Closed)

Created:
8 years, 5 months ago by tfarina
Modified:
8 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, erikwright (departed), wtc, darin-cc_chromium.org, rkn, markusheintz_, battre
Visibility:
Public.

Description

Do not inherit from std::vector. vector does not have a virtual destructor, see Item 7 from of Effective STL from Scott Meyers for a detailed explanation. BUG=135335 R=markusheintz@chromium.org,willchan@chromium.org TBR=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148315

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -22 lines) Patch
M chrome/browser/content_settings/tab_specific_content_settings.h View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/cookies/cookies_api.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.h View 3 chunks +6 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.h View 2 chunks +1 line, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 2 chunks +1 line, -1 line 0 comments Download
M net/base/network_delegate.h View 2 chunks +1 line, -1 line 0 comments Download
M net/cookies/canonical_cookie.h View 2 chunks +1 line, -3 lines 0 comments Download
M net/cookies/cookie_monster.h View 2 chunks +1 line, -2 lines 0 comments Download
M net/url_request/url_request.h View 2 chunks +1 line, -1 line 0 comments Download
M net/url_request/url_request_job.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
tfarina
8 years, 5 months ago (2012-07-22 01:46:04 UTC) #1
markusheintz_
Looks good from my perspective.
8 years, 5 months ago (2012-07-23 15:04:20 UTC) #2
wtc
Drive-by review of patch set 1: Please wait for willchan's review. I reviewed the changes ...
8 years, 5 months ago (2012-07-23 19:34:07 UTC) #3
willchan no longer on Chromium
lgtm. I shared wtc's concerns, but I think good style is more important here. That ...
8 years, 5 months ago (2012-07-23 20:33:10 UTC) #4
erikwright (departed)
wtc, willchan: Thanks to battre's recent contributions, only canonical_cookie.h (not cookie_monster.h) need be included. That's ...
8 years, 4 months ago (2012-07-30 18:36:43 UTC) #5
willchan no longer on Chromium
8 years, 4 months ago (2012-07-30 21:01:38 UTC) #6
In all honesty, the effect of this change is minor enough in either
direction that it's not worth discussing :)


On Mon, Jul 30, 2012 at 11:36 AM, <erikwright@chromium.org> wrote:

> wtc, willchan:
>
> Thanks to battre's recent contributions, only canonical_cookie.h (not
> cookie_monster.h) need be included. That's a nice, concise header file, so
> not
> as bad as it would have been a few weeks ago.
>
> That being said, I don't even see much of a benefit to the typedef vs. an
> explicit std::vector<net::**CanonicalCookie> (which _would_ allow for
> forward-decl
> of CanonicalCookie) but perhaps I'm just a fast typist.
>
>
http://codereview.chromium.**org/10796081/<http://codereview.chromium.org/107...
>

Powered by Google App Engine
This is Rietveld 408576698