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

Issue 1135213004: Returning error when NotificationConversionHelper::NotificationBitmapToGfxImage() get failed in not… (Closed)

Created:
5 years, 7 months ago by Deepak
Modified:
5 years, 6 months ago
Reviewers:
Peter Beverloo, dewittj
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Returning error when NotificationConversionHelper::NotificationBitmapToGfxImage() get failed in notification_api.cc. Proper Error code should get returned when their is some error in NotificationBitmapToGfxImage() call for better error handling. BUG=487183 Committed: https://crrev.com/24b9c277b2b946591035dd7b3dc0e6f550b2fe90 Cr-Commit-Position: refs/heads/master@{#332540}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : Changes as per review comments. #

Patch Set 6 : Changes as per review comments. #

Patch Set 7 : Changes as per review comments. #

Total comments: 6

Patch Set 8 : Changes as per review comments. #

Patch Set 9 : #

Patch Set 10 : Changes as per review comments. #

Patch Set 11 : Changes as per review comments. #

Total comments: 5

Patch Set 12 : Fixing merge issue. #

Patch Set 13 : Changes as per review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -46 lines) Patch
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +45 lines, -38 lines 0 comments Download
M chrome/browser/notifications/notification_conversion_helper.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/notification_conversion_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -7 lines 0 comments Download

Messages

Total messages: 26 (4 generated)
Deepak
@rockot As dewittj is OOO, Please review.
5 years, 7 months ago (2015-05-13 03:53:35 UTC) #2
Peter Beverloo
A few nits. You probably want Justin's approval despite his OOO since this changes behavior ...
5 years, 7 months ago (2015-05-13 10:52:43 UTC) #4
Peter Beverloo
https://codereview.chromium.org/1135213004/diff/60001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/1135213004/diff/60001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode332 chrome/browser/extensions/api/notifications/notifications_api.cc:332: if (!NotificationConversionHelper::NotificationBitmapToGfxImage( On a slightly higher-level note, now that ...
5 years, 7 months ago (2015-05-13 10:54:04 UTC) #5
Deepak
@Peter Thanks for review. Changes done as suggested. PTAL https://codereview.chromium.org/1135213004/diff/60001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/1135213004/diff/60001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode318 chrome/browser/extensions/api/notifications/notifications_api.cc:318: ...
5 years, 7 months ago (2015-05-13 13:21:11 UTC) #6
dewittj
this change seems to make a lot of extra changes. If the point is truly ...
5 years, 7 months ago (2015-05-21 17:32:21 UTC) #7
Deepak
On 2015/05/21 17:32:21, dewittj wrote: @dewittj Thanks for review. > this change seems to make ...
5 years, 7 months ago (2015-05-22 05:41:15 UTC) #8
Peter Beverloo
On 2015/05/21 17:32:21, dewittj wrote: > * It seems inconsistent that one place in the ...
5 years, 7 months ago (2015-05-22 13:44:24 UTC) #9
Deepak
On 2015/05/22 13:44:24, Peter Beverloo wrote: > On 2015/05/21 17:32:21, dewittj wrote: > > * ...
5 years, 7 months ago (2015-05-22 14:45:03 UTC) #10
dewittj
https://codereview.chromium.org/1135213004/diff/120001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/1135213004/diff/120001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode314 chrome/browser/extensions/api/notifications/notifications_api.cc:314: if (options->icon_bitmap.get()) { icon is required, we need to ...
5 years, 7 months ago (2015-05-22 16:42:24 UTC) #12
Deepak
PTAL https://codereview.chromium.org/1135213004/diff/120001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/1135213004/diff/120001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode314 chrome/browser/extensions/api/notifications/notifications_api.cc:314: if (options->icon_bitmap.get()) { On 2015/05/22 16:42:23, dewittj wrote: ...
5 years, 7 months ago (2015-05-23 14:03:40 UTC) #13
Deepak
@dewittj Thanks for review. Returning error when icon_bitmap is not present while calling UpdateNotification().And Updating ...
5 years, 7 months ago (2015-05-25 06:37:38 UTC) #14
Deepak
@dewittj PTAL
5 years, 7 months ago (2015-05-27 11:54:21 UTC) #15
dewittj
sorry, I don't want the icon_url to be required for update (that would be a ...
5 years, 7 months ago (2015-05-27 18:01:25 UTC) #16
Deepak
On 2015/05/27 18:01:25, dewittj wrote: > sorry, I don't want the icon_url to be required ...
5 years, 7 months ago (2015-05-28 05:45:55 UTC) #17
Deepak
On 2015/05/28 05:45:55, Deepak wrote: >On 2015/05/27 18:01:25, dewittj wrote: > sorry, I don't want ...
5 years, 6 months ago (2015-06-01 13:12:36 UTC) #18
dewittj
https://codereview.chromium.org/1135213004/diff/200001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/1135213004/diff/200001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode186 chrome/browser/extensions/api/notifications/notifications_api.cc:186: if (options->icon_bitmap.get() && this line should read if (!options->icon_bitmap.get() ...
5 years, 6 months ago (2015-06-01 16:00:57 UTC) #19
Deepak
@dewittj Thanks for review. *Changes done as suggested. *Try bot run successfully. Please review. https://codereview.chromium.org/1135213004/diff/200001/chrome/browser/extensions/api/notifications/notifications_api.cc ...
5 years, 6 months ago (2015-06-02 07:36:35 UTC) #20
dewittj
lgtm
5 years, 6 months ago (2015-06-02 17:19:35 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135213004/240001
5 years, 6 months ago (2015-06-03 02:46:25 UTC) #23
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 6 months ago (2015-06-03 03:23:58 UTC) #24
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/24b9c277b2b946591035dd7b3dc0e6f550b2fe90 Cr-Commit-Position: refs/heads/master@{#332540}
5 years, 6 months ago (2015-06-03 03:25:18 UTC) #25
Deepak
5 years, 6 months ago (2015-06-03 05:34:25 UTC) #26
Message was sent while issue was closed.
On 2015/06/02 17:19:35, dewittj wrote:
> lgtm

Thanks @dewittj for review.

Powered by Google App Engine
This is Rietveld 408576698