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

Issue 10261004: Move both instances of address_of into stl_util. (Closed)

Created:
8 years, 7 months ago by gavinp
Modified:
8 years, 7 months ago
CC:
chromium-reviews, erikwright (departed), Ilya Sherman, dhollowa+watch_chromium.org, dyu1, brettw-cc_chromium.org
Visibility:
Public.

Description

Move both instances of address_of into stl_util. The PrerenderManager ended up wanting address_of, and rather than introduce a third instance of this relatively common pattern, I moved it into stl_util.h. BUG=None

Patch Set 1 #

Total comments: 6

Patch Set 2 : remediate to dhallowa review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -21 lines) Patch
M base/stl_util.h View 1 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.cc View 1 2 chunks +2 lines, -14 lines 0 comments Download
M chrome/browser/webdata/autofill_table.cc View 1 2 chunks +2 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
gavinp
Instead of adding a third instance of this template, I wrote this CL. Does it ...
8 years, 7 months ago (2012-04-29 00:44:45 UTC) #1
dhollowa
>Does it belong in base:: ? It depends, where will your code be using it? ...
8 years, 7 months ago (2012-04-30 16:03:09 UTC) #2
gavinp
Thanks for your review, David. You may be right about moving it into chrome/common; my ...
8 years, 7 months ago (2012-04-30 16:27:16 UTC) #3
willchan no longer on Chromium
It's not clear why this functor is even necessary, since it's not being used to ...
8 years, 7 months ago (2012-04-30 18:09:34 UTC) #4
dhollowa
On 2012/04/30 18:09:34, willchan wrote: > It's not clear why this functor is even necessary, ...
8 years, 7 months ago (2012-04-30 18:29:35 UTC) #5
willchan no longer on Chromium
On Mon, Apr 30, 2012 at 11:29 AM, <dhollowa@chromium.org> wrote: > On 2012/04/30 18:09:34, willchan ...
8 years, 7 months ago (2012-04-30 18:39:21 UTC) #6
gavinp
On 2012/04/30 18:39:21, willchan wrote: > I guess what I'd like to see is what ...
8 years, 7 months ago (2012-04-30 19:32:29 UTC) #7
dhollowa
On 2012/04/30 18:39:21, willchan wrote: > On Mon, Apr 30, 2012 at 11:29 AM, <mailto:dhollowa@chromium.org> ...
8 years, 7 months ago (2012-04-30 19:35:16 UTC) #8
gavinp
Here's my use case: http://codereview.chromium.org/10198040/diff/38003/chrome/browser/prerender/prerender_manager.cc#pair-1085 I don't think that's a use case that justifies an ...
8 years, 7 months ago (2012-04-30 19:39:37 UTC) #9
gavinp
Err, try again the link: http://codereview.chromium.org/10198040/diff/38003/chrome/browser/prerender/prerender_manager.cc#pair-1113 On 2012/04/30 19:39:37, gavinp wrote: > Here's my use ...
8 years, 7 months ago (2012-04-30 19:41:06 UTC) #10
dhollowa
On 2012/04/30 19:41:06, gavinp wrote: > Err, try again the link: > http://codereview.chromium.org/10198040/diff/38003/chrome/browser/prerender/prerender_manager.cc#pair-1113 > > ...
8 years, 7 months ago (2012-04-30 19:49:01 UTC) #11
gavinp
On 2012/04/30 19:49:01, dhollowa wrote: > On 2012/04/30 19:41:06, gavinp wrote: > > Err, try ...
8 years, 7 months ago (2012-04-30 19:53:51 UTC) #12
dhollowa
Fine by be to close, yes. I'll try to get back to this TODO at ...
8 years, 7 months ago (2012-04-30 20:00:19 UTC) #13
willchan no longer on Chromium
8 years, 7 months ago (2012-04-30 20:30:42 UTC) #14
Great, thanks folks!

On Mon, Apr 30, 2012 at 1:00 PM, <dhollowa@chromium.org> wrote:

> Fine by be to close, yes.  I'll try to get back to this TODO at some point
> and
> rationalize the interfaces as described.
>
>
>
> On 2012/04/30 19:53:51, gavinp wrote:
>
>> On 2012/04/30 19:49:01, dhollowa wrote:
>> > On 2012/04/30 19:41:06, gavinp wrote:
>> > > Err, try again the link:
>> > >
>> >
>>
>
> http://codereview.chromium.**org/10198040/diff/38003/**
>
chrome/browser/prerender/**prerender_manager.cc#pair-1113<http://codereview.chromium.org/10198040/diff/38003/chrome/browser/prerender/prerender_manager.cc#pair-1113>
>
>> > >
>> > > On 2012/04/30 19:39:37, gavinp wrote:
>> > > > Here's my use case:
>> > > >
>> > > >
>> > >
>> >
>>
>
> http://codereview.chromium.**org/10198040/diff/38003/**
>
chrome/browser/prerender/**prerender_manager.cc#pair-1085<http://codereview.chromium.org/10198040/diff/38003/chrome/browser/prerender/prerender_manager.cc#pair-1085>
>
>> > > >
>> > > > I don't think that's a use case that justifies an API in base.
>> >
>> > Ha, ya.  I'd stick with |&| in that case.  :-)
>>
>
>  Yup.   It would have been MAYBE fine if the interface was already there;
>>
> that's
>
>> why I'd have been happy to promote this if appropriate.  But given where
>> this
>>
> is
>
>> going, I think I should close this issue.
>>
>
>  David, WDYT?
>>
>
>
>
>
https://chromiumcodereview.**appspot.com/10261004/<https://chromiumcodereview...
>

Powered by Google App Engine
This is Rietveld 408576698