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

Issue 477193003: Refactor setIcon to allow for more general use of imageData (Closed)

Created:
6 years, 4 months ago by gpdavis
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactor setIcon to allow for more general use of imageData. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291119

Patch Set 1 #

Total comments: 11

Patch Set 2 : Added page action binding, cleaned up setIcon logic #

Total comments: 20

Patch Set 3 : Minor changes, reworked conversion logic #

Total comments: 10

Patch Set 4 : Moar minor changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -95 lines) Patch
M chrome/renderer/resources/extensions/browser_action_custom_bindings.js View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/page_action_custom_bindings.js View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/system_indicator_custom_bindings.js View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M extensions/renderer/resources/set_icon.js View 1 2 3 4 chunks +49 lines, -44 lines 0 comments Download
M extensions/renderer/set_icon_natives.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/renderer/set_icon_natives.cc View 1 2 3 3 chunks +28 lines, -42 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
gpdavis
Should I create a bug for this? Passed BrowserActionApi browser tests (y)
6 years, 4 months ago (2014-08-15 20:43:51 UTC) #1
not at google - send to devlin
Sorry I didn't get time to finish this review, but that's a couple of things ...
6 years, 4 months ago (2014-08-19 00:04:43 UTC) #2
gpdavis
https://codereview.chromium.org/477193003/diff/40001/chrome/browser/extensions/api/extension_action/extension_action_api.cc File chrome/browser/extensions/api/extension_action/extension_action_api.cc (right): https://codereview.chromium.org/477193003/diff/40001/chrome/browser/extensions/api/extension_action/extension_action_api.cc#newcode684 chrome/browser/extensions/api/extension_action/extension_action_api.cc:684: IPC::Message pickle(binary_data.c_str(), binary_data.length()); On 2014/08/19 00:04:43, kalman wrote: > ...
6 years, 4 months ago (2014-08-19 00:54:15 UTC) #3
not at google - send to devlin
Closer :) https://codereview.chromium.org/477193003/diff/40001/chrome/browser/extensions/api/extension_action/extension_action_api.cc File chrome/browser/extensions/api/extension_action/extension_action_api.cc (right): https://codereview.chromium.org/477193003/diff/40001/chrome/browser/extensions/api/extension_action/extension_action_api.cc#newcode684 chrome/browser/extensions/api/extension_action/extension_action_api.cc:684: IPC::Message pickle(binary_data.c_str(), binary_data.length()); On 2014/08/19 00:54:15, gpdavis ...
6 years, 4 months ago (2014-08-19 17:32:30 UTC) #4
gpdavis
https://codereview.chromium.org/477193003/diff/60001/extensions/renderer/resources/set_icon.js File extensions/renderer/resources/set_icon.js (right): https://codereview.chromium.org/477193003/diff/60001/extensions/renderer/resources/set_icon.js#newcode12 extensions/renderer/resources/set_icon.js:12: path + '\'.'); On 2014/08/19 17:32:29, kalman wrote: > ...
6 years, 4 months ago (2014-08-19 22:05:08 UTC) #5
not at google - send to devlin
lgtm with just a few more fairly straightforward changes. https://codereview.chromium.org/477193003/diff/60001/extensions/renderer/resources/set_icon.js File extensions/renderer/resources/set_icon.js (right): https://codereview.chromium.org/477193003/diff/60001/extensions/renderer/resources/set_icon.js#newcode118 extensions/renderer/resources/set_icon.js:118: ...
6 years, 4 months ago (2014-08-20 14:42:19 UTC) #6
gpdavis
https://codereview.chromium.org/477193003/diff/80001/chrome/renderer/resources/extensions/browser_action_custom_bindings.js File chrome/renderer/resources/extensions/browser_action_custom_bindings.js (right): https://codereview.chromium.org/477193003/diff/80001/chrome/renderer/resources/extensions/browser_action_custom_bindings.js#newcode3 chrome/renderer/resources/extensions/browser_action_custom_bindings.js:3: // found in the LICENSE file. On 2014/08/20 14:42:18, ...
6 years, 4 months ago (2014-08-20 17:58:19 UTC) #7
gpdavis
The CQ bit was checked by gpdavis.chromium@gmail.com
6 years, 4 months ago (2014-08-20 17:58:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gpdavis.chromium@gmail.com/477193003/100001
6 years, 4 months ago (2014-08-20 18:00:50 UTC) #9
not at google - send to devlin
(still lgtm) https://codereview.chromium.org/477193003/diff/80001/extensions/renderer/resources/set_icon.js File extensions/renderer/resources/set_icon.js (right): https://codereview.chromium.org/477193003/diff/80001/extensions/renderer/resources/set_icon.js#newcode56 extensions/renderer/resources/set_icon.js:56: * The ImageDetails passed into an extension ...
6 years, 4 months ago (2014-08-20 18:20:29 UTC) #10
gpdavis
https://codereview.chromium.org/477193003/diff/80001/extensions/renderer/resources/set_icon.js File extensions/renderer/resources/set_icon.js (right): https://codereview.chromium.org/477193003/diff/80001/extensions/renderer/resources/set_icon.js#newcode56 extensions/renderer/resources/set_icon.js:56: * The ImageDetails passed into an extension action-style API. ...
6 years, 4 months ago (2014-08-20 18:27:18 UTC) #11
not at google - send to devlin
On 2014/08/20 18:27:18, gpdavis wrote: > https://codereview.chromium.org/477193003/diff/80001/extensions/renderer/resources/set_icon.js > File extensions/renderer/resources/set_icon.js (right): > > https://codereview.chromium.org/477193003/diff/80001/extensions/renderer/resources/set_icon.js#newcode56 > ...
6 years, 4 months ago (2014-08-20 18:49:23 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-20 20:02:36 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-20 20:07:33 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/7850)
6 years, 4 months ago (2014-08-20 20:07:34 UTC) #15
gpdavis
The CQ bit was checked by gpdavis.chromium@gmail.com
6 years, 4 months ago (2014-08-20 20:17:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gpdavis.chromium@gmail.com/477193003/100001
6 years, 4 months ago (2014-08-20 20:18:58 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-20 22:19:09 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-20 22:22:51 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/7962)
6 years, 4 months ago (2014-08-20 22:22:52 UTC) #20
gpdavis
The CQ bit was checked by gpdavis.chromium@gmail.com
6 years, 4 months ago (2014-08-20 23:23:36 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gpdavis.chromium@gmail.com/477193003/100001
6 years, 4 months ago (2014-08-20 23:25:55 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 00:16:08 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 00:19:40 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/8084)
6 years, 4 months ago (2014-08-21 00:19:41 UTC) #25
not at google - send to devlin
The CQ bit was checked by kalman@chromium.org
6 years, 4 months ago (2014-08-21 00:37:28 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gpdavis.chromium@gmail.com/477193003/100001
6 years, 4 months ago (2014-08-21 00:38:27 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 01:25:46 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 01:28:55 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/8146)
6 years, 4 months ago (2014-08-21 01:28:56 UTC) #30
gpdavis
The CQ bit was checked by gpdavis.chromium@gmail.com
6 years, 4 months ago (2014-08-21 17:05:33 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gpdavis.chromium@gmail.com/477193003/100001
6 years, 4 months ago (2014-08-21 17:08:18 UTC) #32
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 17:22:54 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (100001) as 291119

Powered by Google App Engine
This is Rietveld 408576698