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

Issue 2667993003: Don't use LazyInstance in chrome/browser/image_decoder.* (Closed)

Created:
3 years, 10 months ago by scottmg
Modified:
3 years, 10 months ago
Reviewers:
Nico
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't use LazyInstance in chrome/browser/image_decoder.* R=thakis@chromium.org BUG=686866 Review-Url: https://codereview.chromium.org/2667993003 Cr-Commit-Position: refs/heads/master@{#448384} Committed: https://chromium.googlesource.com/chromium/src/+/d69ee9d7f4329d536d02cda7b00046b102c55fc1

Patch Set 1 #

Total comments: 3

Patch Set 2 : auto* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -12 lines) Patch
M chrome/browser/image_decoder.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/image_decoder.cc View 1 6 chunks +10 lines, -10 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (4 generated)
Nico
lgtm Out of interest, did you compare assembly for the LazyInstance and the static version ...
3 years, 10 months ago (2017-02-02 22:13:19 UTC) #1
Nico
Oh I think you maybe never sent this out? Ignore if you didn't want a ...
3 years, 10 months ago (2017-02-02 22:13:59 UTC) #2
scottmg
On 2017/02/02 22:13:19, Nico wrote: > lgtm > > Out of interest, did you compare ...
3 years, 10 months ago (2017-02-04 01:44:27 UTC) #3
scottmg
https://codereview.chromium.org/2667993003/diff/1/chrome/browser/image_decoder.cc File chrome/browser/image_decoder.cc (right): https://codereview.chromium.org/2667993003/diff/1/chrome/browser/image_decoder.cc#newcode96 chrome/browser/image_decoder.cc:96: static auto image_decoder = new ImageDecoder(); On 2017/02/02 22:13:19, ...
3 years, 10 months ago (2017-02-04 01:44:32 UTC) #4
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/2667993003/20001
3 years, 10 months ago (2017-02-06 20:09:35 UTC) #7
scottmg
https://codereview.chromium.org/2667993003/diff/1/chrome/browser/image_decoder.cc File chrome/browser/image_decoder.cc (right): https://codereview.chromium.org/2667993003/diff/1/chrome/browser/image_decoder.cc#newcode96 chrome/browser/image_decoder.cc:96: static auto image_decoder = new ImageDecoder(); On 2017/02/04 01:44:32, ...
3 years, 10 months ago (2017-02-06 20:46:29 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/d69ee9d7f4329d536d02cda7b00046b102c55fc1
3 years, 10 months ago (2017-02-06 20:56:21 UTC) #11
Nico
Huh, http://chromium-cpp.appspot.com/ says it in the for loop section but not in general. I don't ...
3 years, 10 months ago (2017-02-06 21:01:36 UTC) #12
scottmg
On 2017/02/06 21:01:36, Nico wrote: > Huh, http://chromium-cpp.appspot.com/ says it in the for loop section ...
3 years, 10 months ago (2017-02-06 21:16:09 UTC) #13
Nico
3 years, 10 months ago (2017-02-13 21:17:58 UTC) #14
Message was sent while issue was closed.
Looks like I wasn't completely imagining the auto* bit:
https://bugs.chromium.org/p/chromium/issues/detail?id=554600#c73

On Mon, Feb 6, 2017 at 4:16 PM, <scottmg@chromium.org> wrote:

> On 2017/02/06 21:01:36, Nico wrote:
> > Huh, http://chromium-cpp.appspot.com/ says it in the for loop section
> but
> > not in general. I don't remember if we wanted this only in loops, or in
> > general. I guess I'll stop asking for this then, thanks!
>
> Ah, I didn't notice that one, thanks. Seems sensible there.
>
> >
> > On Mon, Feb 6, 2017 at 3:46 PM, <mailto:scottmg@chromium.org> wrote:
> >
> > >
> > > https://codereview.chromium.org/2667993003/diff/1/chrome/
> > > browser/image_decoder.cc
> > > File chrome/browser/image_decoder.cc (right):
> > >
> > > https://codereview.chromium.org/2667993003/diff/1/chrome/
> > > browser/image_decoder.cc#newcode96
> > > chrome/browser/image_decoder.cc:96: static auto image_decoder = new
> > > ImageDecoder();
> > > On 2017/02/04 01:44:32, scottmg wrote:
> > > > On 2017/02/02 22:13:19, Nico wrote:
> > > > > style guide says "auto*" for pointers
> > > >
> > > > Huh, I didn't know that. I have some places to fix.
> > >
> > > [I was going to make a CL with a link to the style guide to make other
> > > places match this, but I can't find anything in a guide that says that.
> > > In the guide https://google.github.io/styleguide/cppguide.html#auto
> > > itself auto is suggested for `new`, but it doesn't mention preferring
> > > auto*.
> > >
> > > Way far down in the "Another discussion thread" link on chromium-cpp,
> > > Daniel suggested it and a couple people agreed, but I would say it's
> not
> > > terribly obvious or codified. I personally think it's reasonable but
> I'm
> > > not sure I feel strongly enough to wage war upon cxx@ again.]
> > >
> > > https://codereview.chromium.org/2667993003/
> > >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-reviews" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> email
> > to mailto:chromium-reviews+unsubscribe@chromium.org.
>
>
>
> https://codereview.chromium.org/2667993003/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698