|
|
Created:
4 years, 3 months ago by sfiera Modified:
4 years, 3 months ago Reviewers:
Marc Treib CC:
chromium-reviews, ntp-dev+reviews_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMake NTPTile copyable.
iOS likes to copy things. We'll make it easy for them.
BUG=631990
Committed: https://crrev.com/08b57f8c38e4332deb3ef9a421fd4b93d59634c7
Cr-Commit-Position: refs/heads/master@{#420297}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Add copy constructor. #
Messages
Total messages: 24 (13 generated)
The CQ bit was checked by sfiera@chromium.org to run a CQ dry run
sfiera@chromium.org changed reviewers: + treib@chromium.org
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2341963002/diff/1/components/ntp_tiles/ntp_ti... File components/ntp_tiles/ntp_tile.h (right): https://codereview.chromium.org/2341963002/diff/1/components/ntp_tiles/ntp_ti... components/ntp_tiles/ntp_tile.h:46: NTPTile Copy() const; Hm, at this point, we might as well just remove the DISALLOW_COPY_AND_ASSIGN and let the thing be copyable the regular way. (Then we probably could also remove the move ctor and move assignment implementations.) WDYT?
Description was changed from ========== Add NTPTile::Copy(). iOS likes to copy things. We'll make it easy for them. BUG=631990 ========== to ========== Make NTPTile copyable. iOS likes to copy things. We'll make it easy for them. BUG=631990 ==========
The CQ bit was checked by sfiera@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2341963002/diff/1/components/ntp_tiles/ntp_ti... File components/ntp_tiles/ntp_tile.h (right): https://codereview.chromium.org/2341963002/diff/1/components/ntp_tiles/ntp_ti... components/ntp_tiles/ntp_tile.h:46: NTPTile Copy() const; On 2016/09/15 09:10:27, Marc Treib wrote: > Hm, at this point, we might as well just remove the DISALLOW_COPY_AND_ASSIGN and > let the thing be copyable the regular way. (Then we probably could also remove > the move ctor and move assignment implementations.) > WDYT? Sure, done. (I think I was channeling google3's extreme implicit-copy avoidance)
https://codereview.chromium.org/2341963002/diff/1/components/ntp_tiles/ntp_ti... File components/ntp_tiles/ntp_tile.h (right): https://codereview.chromium.org/2341963002/diff/1/components/ntp_tiles/ntp_ti... components/ntp_tiles/ntp_tile.h:46: NTPTile Copy() const; On 2016/09/21 08:56:28, sfiera wrote: > On 2016/09/15 09:10:27, Marc Treib wrote: > > Hm, at this point, we might as well just remove the DISALLOW_COPY_AND_ASSIGN > and > > let the thing be copyable the regular way. (Then we probably could also remove > > the move ctor and move assignment implementations.) > > WDYT? > > Sure, done. (I think I was channeling google3's extreme implicit-copy avoidance) We mostly have that in Chromium as well, but in this case it's IMO fine to have it copyable. You might want to put a "Copy and assign allowed" comment in place of the DISALLOW_COPY_AND_ASSIGN.
https://codereview.chromium.org/2341963002/diff/1/components/ntp_tiles/ntp_ti... File components/ntp_tiles/ntp_tile.h (right): https://codereview.chromium.org/2341963002/diff/1/components/ntp_tiles/ntp_ti... components/ntp_tiles/ntp_tile.h:46: NTPTile Copy() const; On 2016/09/21 08:58:06, Marc Treib wrote: > On 2016/09/21 08:56:28, sfiera wrote: > > On 2016/09/15 09:10:27, Marc Treib wrote: > > > Hm, at this point, we might as well just remove the DISALLOW_COPY_AND_ASSIGN > > and > > > let the thing be copyable the regular way. (Then we probably could also > remove > > > the move ctor and move assignment implementations.) > > > WDYT? > > > > Sure, done. (I think I was channeling google3's extreme implicit-copy > avoidance) > > We mostly have that in Chromium as well, but in this case it's IMO fine to have > it copyable. You might want to put a "Copy and assign allowed" comment in place > of the DISALLOW_COPY_AND_ASSIGN. I had to add the default copy constructor explicitly for a compiler check, so I figure I'll let that stand as the indication that copy is allowed.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
(ping)
Oh sorry, I though I had said "lgtm" already. So, lgtm :)
The CQ bit was checked by sfiera@chromium.org
Figured as much :) Thanks.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Make NTPTile copyable. iOS likes to copy things. We'll make it easy for them. BUG=631990 ========== to ========== Make NTPTile copyable. iOS likes to copy things. We'll make it easy for them. BUG=631990 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Make NTPTile copyable. iOS likes to copy things. We'll make it easy for them. BUG=631990 ========== to ========== Make NTPTile copyable. iOS likes to copy things. We'll make it easy for them. BUG=631990 Committed: https://crrev.com/08b57f8c38e4332deb3ef9a421fd4b93d59634c7 Cr-Commit-Position: refs/heads/master@{#420297} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/08b57f8c38e4332deb3ef9a421fd4b93d59634c7 Cr-Commit-Position: refs/heads/master@{#420297} |