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

Issue 2504683002: Adds a new constructor for gfx::Image on iOS. (Closed)

Created:
4 years, 1 month ago by stkhapugin
Modified:
4 years ago
Reviewers:
Nico, sdefresne
CC:
chromium-reviews, rsesek+watch_chromium.org, mac-reviews_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds a new constructor for gfx::Image on iOS. Chrome iOS is moving to Objective-C Automatic Reference Counting. Under it, arguments are supposed to be autoreleased. This CL adds a new constructor that can take both a retained and an autoreleased object. This is a part of a multiple CL setup that will change the Image(UIImage*) constructor from consuming +1 refcount to retaining the argument. TEST=none BUG=645125 Committed: https://crrev.com/90031d9584452e5018e68a3ad2ff47634aab70b6 Cr-Commit-Position: refs/heads/master@{#437513}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Feedback #

Total comments: 2

Patch Set 3 : fixed compilation #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -5 lines) Patch
M ios/chrome/browser/suggestions/image_fetcher_impl.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/suggestions/ios_image_decoder_impl.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle_ios.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/image/image.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gfx/image/image.cc View 1 2 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
stkhapugin
PTAL
4 years, 1 month ago (2016-11-22 14:07:18 UTC) #2
sdefresne
I would change the description to not list explicitly each CL but instead to say ...
4 years, 1 month ago (2016-11-22 14:23:16 UTC) #3
stkhapugin
PTAL > I would change the description to not list explicitly each CL but instead ...
4 years ago (2016-12-06 10:41:57 UTC) #5
sdefresne
https://codereview.chromium.org/2504683002/diff/20001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (right): https://codereview.chromium.org/2504683002/diff/20001/ui/gfx/image/image.cc#newcode423 ui/gfx/image/image.cc:423: Image::Image(UIImage* image) : Image(image, false) {} Image::Image(UIImage* image) : ...
4 years ago (2016-12-06 10:54:11 UTC) #6
stkhapugin
PTAL https://codereview.chromium.org/2504683002/diff/20001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (right): https://codereview.chromium.org/2504683002/diff/20001/ui/gfx/image/image.cc#newcode423 ui/gfx/image/image.cc:423: Image::Image(UIImage* image) : Image(image, false) {} On 2016/12/06 ...
4 years ago (2016-12-06 12:10:56 UTC) #7
sdefresne
lgtm
4 years ago (2016-12-06 12:15:33 UTC) #8
Nico
lgtm (I find the order of CLs here fairly confusing. I think I got it ...
4 years ago (2016-12-06 14:24:24 UTC) #9
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/2504683002/40001
4 years ago (2016-12-07 17:30:45 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/118746) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-07 17:33:10 UTC) #13
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/2504683002/60001
4 years ago (2016-12-08 12:20:32 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/82211)
4 years ago (2016-12-08 13:36:11 UTC) #18
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/2504683002/60001
4 years ago (2016-12-09 10:44:09 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-09 10:48:41 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-09 10:51:15 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/90031d9584452e5018e68a3ad2ff47634aab70b6
Cr-Commit-Position: refs/heads/master@{#437513}

Powered by Google App Engine
This is Rietveld 408576698