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

Issue 266353006: Add generateAppForLink function in chrome.management (Closed)

Created:
6 years, 7 months ago by wjywbs
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, jar (doing other things), asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Reland: Add generateAppForLink function in chrome.management This function takes a url and a title as input, generates and returns a bookmark app. R=benwells@chromium.org,kalman@chromium.org,calamity@chromium.org BUG=370350 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274732

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : fix win and clang errors #

Patch Set 12 : #

Total comments: 2

Patch Set 13 : #

Total comments: 1

Patch Set 14 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -3 lines) Patch
M chrome/browser/extensions/api/management/management_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +87 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/management/management_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/extensions/bookmark_app_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +62 lines, -1 line 1 comment Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/management.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/test/generateAppForLink.html View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/test/generateAppForLink.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/test/generateAppForLinkNotInStable.html View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/test/generateAppForLinkNotInStable.js View 1 chunk +12 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
wjywbs
Please take a look. The design doc is at https://docs.google.com/document/d/1lSfKLt6E-vOgYpBiiNxFhCI4FXWFX3woiirWfxkBZ5w/edit Thanks.
6 years, 7 months ago (2014-05-06 06:02:15 UTC) #1
wjywbs
The development of this function is finished. Now it observes NOTIFICATION_CRX_INSTALLER_DONE of the CrxInstaller. Please ...
6 years, 7 months ago (2014-05-11 20:21:09 UTC) #2
not at google - send to devlin
No opinion, defer to BenW.
6 years, 7 months ago (2014-05-12 17:55:42 UTC) #3
calamity
https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc#newcode791 chrome/browser/extensions/api/management/management_api.cc:791: installer->InstallWebApp(*web_app); You can use BookmarkAppHelper::CreateOrUpdateBookmarkApp() here. https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc#newcode832 chrome/browser/extensions/api/management/management_api.cc:832: &cancelable_task_tracker_); ...
6 years, 7 months ago (2014-05-13 01:59:04 UTC) #4
wjywbs
https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc#newcode791 chrome/browser/extensions/api/management/management_api.cc:791: installer->InstallWebApp(*web_app); On 2014/05/13 01:59:04, calamity wrote: > You can ...
6 years, 7 months ago (2014-05-20 00:01:58 UTC) #5
wjywbs
https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc#newcode791 chrome/browser/extensions/api/management/management_api.cc:791: installer->InstallWebApp(*web_app); On 2014/05/13 01:59:04, calamity wrote: > You can ...
6 years, 7 months ago (2014-05-20 00:01:58 UTC) #6
calamity
https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc#newcode791 chrome/browser/extensions/api/management/management_api.cc:791: installer->InstallWebApp(*web_app); On 2014/05/20 00:01:59, wjywbs wrote: > On 2014/05/13 ...
6 years, 7 months ago (2014-05-20 01:39:35 UTC) #7
wjywbs
PTAL. Thanks. https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/266353006/diff/20001/chrome/browser/extensions/api/management/management_api.cc#newcode832 chrome/browser/extensions/api/management/management_api.cc:832: &cancelable_task_tracker_); On 2014/05/20 01:39:35, calamity wrote: > ...
6 years, 7 months ago (2014-05-20 04:31:50 UTC) #8
calamity
Cool, lgtm. You'll need benwells@ to do the OWNERS review.
6 years, 7 months ago (2014-05-21 08:37:46 UTC) #9
benwells
https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc#newcode751 chrome/browser/extensions/api/management/management_api.cc:751: case chrome::NOTIFICATION_CRX_INSTALLER_DONE: { Could we push all this code ...
6 years, 7 months ago (2014-05-22 02:49:24 UTC) #10
wjywbs
PTAL, thanks. https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc#newcode751 chrome/browser/extensions/api/management/management_api.cc:751: case chrome::NOTIFICATION_CRX_INSTALLER_DONE: { On 2014/05/22 02:49:25, benwells ...
6 years, 7 months ago (2014-05-22 03:21:35 UTC) #11
benwells
https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc#newcode751 chrome/browser/extensions/api/management/management_api.cc:751: case chrome::NOTIFICATION_CRX_INSTALLER_DONE: { On 2014/05/22 03:21:35, wjywbs wrote: > ...
6 years, 7 months ago (2014-05-25 23:59:43 UTC) #12
wjywbs
https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc#newcode751 chrome/browser/extensions/api/management/management_api.cc:751: case chrome::NOTIFICATION_CRX_INSTALLER_DONE: { On 2014/05/25 23:59:43, benwells wrote: > ...
6 years, 7 months ago (2014-05-26 03:22:24 UTC) #13
calamity
On 2014/05/26 03:22:24, wjywbs wrote: > https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc > File chrome/browser/extensions/api/management/management_api.cc (right): > > https://codereview.chromium.org/266353006/diff/40001/chrome/browser/extensions/api/management/management_api.cc#newcode751 > ...
6 years, 7 months ago (2014-05-26 06:39:52 UTC) #14
wjywbs
I merged the changes into BookmarkAppHelper. It turned out to be simple. Please review again. ...
6 years, 7 months ago (2014-05-26 15:54:36 UTC) #15
benwells
On 2014/05/26 15:54:36, wjywbs wrote: > I merged the changes into BookmarkAppHelper. It turned out ...
6 years, 7 months ago (2014-05-27 03:24:04 UTC) #16
calamity
Great! This is much cleaner. https://codereview.chromium.org/266353006/diff/100001/chrome/browser/extensions/bookmark_app_helper.cc File chrome/browser/extensions/bookmark_app_helper.cc (right): https://codereview.chromium.org/266353006/diff/100001/chrome/browser/extensions/bookmark_app_helper.cc#newcode258 chrome/browser/extensions/bookmark_app_helper.cc:258: SkBitmap* icon = &web_app_info_.icons[0].data; ...
6 years, 7 months ago (2014-05-27 05:32:11 UTC) #17
wjywbs
PTAL, thanks. https://codereview.chromium.org/266353006/diff/100001/chrome/browser/extensions/bookmark_app_helper.cc File chrome/browser/extensions/bookmark_app_helper.cc (right): https://codereview.chromium.org/266353006/diff/100001/chrome/browser/extensions/bookmark_app_helper.cc#newcode258 chrome/browser/extensions/bookmark_app_helper.cc:258: SkBitmap* icon = &web_app_info_.icons[0].data; On 2014/05/27 05:32:12, ...
6 years, 7 months ago (2014-05-27 06:22:31 UTC) #18
calamity
New changes here lgtm. https://codereview.chromium.org/266353006/diff/100001/chrome/browser/extensions/bookmark_app_helper.cc File chrome/browser/extensions/bookmark_app_helper.cc (right): https://codereview.chromium.org/266353006/diff/100001/chrome/browser/extensions/bookmark_app_helper.cc#newcode262 chrome/browser/extensions/bookmark_app_helper.cc:262: On 2014/05/27 06:22:32, wjywbs wrote: ...
6 years, 7 months ago (2014-05-27 07:18:47 UTC) #19
benwells
this is looking really good, just one more question.. https://codereview.chromium.org/266353006/diff/120001/chrome/browser/extensions/api/management/management_api.h File chrome/browser/extensions/api/management/management_api.h (right): https://codereview.chromium.org/266353006/diff/120001/chrome/browser/extensions/api/management/management_api.h#newcode209 chrome/browser/extensions/api/management/management_api.h:209: ...
6 years, 6 months ago (2014-05-27 22:05:53 UTC) #20
wjywbs
PTAL, thanks. https://codereview.chromium.org/266353006/diff/100001/chrome/browser/extensions/bookmark_app_helper.cc File chrome/browser/extensions/bookmark_app_helper.cc (right): https://codereview.chromium.org/266353006/diff/100001/chrome/browser/extensions/bookmark_app_helper.cc#newcode262 chrome/browser/extensions/bookmark_app_helper.cc:262: On 2014/05/27 07:18:48, calamity wrote: > Clearing ...
6 years, 6 months ago (2014-05-27 22:20:20 UTC) #21
benwells
lgtm https://codereview.chromium.org/266353006/diff/140001/chrome/browser/extensions/api/management/management_api.h File chrome/browser/extensions/api/management/management_api.h (right): https://codereview.chromium.org/266353006/diff/140001/chrome/browser/extensions/api/management/management_api.h#newcode216 chrome/browser/extensions/api/management/management_api.h:216: GURL launch_url_; Nit: no need for the blank ...
6 years, 6 months ago (2014-05-28 01:04:17 UTC) #22
wjywbs
PTAL. Thanks. I'm going to rebase the histograms again and commit later when the histograms ...
6 years, 6 months ago (2014-05-28 01:19:00 UTC) #23
Ilya Sherman
Histograms LGTM. Apologies for the delayed review -- I was traveling.
6 years, 6 months ago (2014-05-28 06:31:04 UTC) #24
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 6 months ago (2014-05-29 20:56:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/266353006/180001
6 years, 6 months ago (2014-05-29 20:57:31 UTC) #26
wjywbs
The CQ bit was unchecked by wjywbs@gmail.com
6 years, 6 months ago (2014-05-29 21:38:40 UTC) #27
wjywbs
The CreateBookmarkApp unit test used NULL as WebContents in BookmarkAppHelper and now failed, because we ...
6 years, 6 months ago (2014-05-29 23:17:31 UTC) #28
calamity
That looks fine but you should also add a test for the new logic that ...
6 years, 6 months ago (2014-05-30 01:44:10 UTC) #29
wjywbs
On 2014/05/30 01:44:10, calamity wrote: > That looks fine but you should also add a ...
6 years, 6 months ago (2014-05-30 01:50:09 UTC) #30
calamity
I think the BookmarkAppHelper's test should reflect the fact that the WebAppInfo's icons are now ...
6 years, 6 months ago (2014-05-30 04:20:59 UTC) #31
wjywbs
I updated the unit test. I also added icon size checks in generateAppForLink.js. Thanks. https://codereview.chromium.org/266353006/diff/240001/chrome/browser/extensions/bookmark_app_helper_unittest.cc ...
6 years, 6 months ago (2014-05-30 14:43:03 UTC) #32
wjywbs
Can I proceed and commit this? Thanks.
6 years, 6 months ago (2014-06-03 03:14:08 UTC) #33
benwells
On 2014/06/03 03:14:08, wjywbs wrote: > Can I proceed and commit this? Thanks. calamity?
6 years, 6 months ago (2014-06-03 03:46:37 UTC) #34
calamity
slgtm!
6 years, 6 months ago (2014-06-03 05:48:16 UTC) #35
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 6 months ago (2014-06-03 13:42:00 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/266353006/240001
6 years, 6 months ago (2014-06-03 13:44:04 UTC) #37
commit-bot: I haz the power
Change committed as 274549
6 years, 6 months ago (2014-06-03 16:40:38 UTC) #38
wjywbs
I'm going to reland this CL. If this fix fails on the main builders again, ...
6 years, 6 months ago (2014-06-03 23:01:05 UTC) #39
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 6 months ago (2014-06-03 23:03:15 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/266353006/260001
6 years, 6 months ago (2014-06-03 23:03:53 UTC) #41
commit-bot: I haz the power
Change committed as 274732
6 years, 6 months ago (2014-06-04 08:58:07 UTC) #42
wjywbs
6 years, 6 months ago (2014-06-17 02:49:49 UTC) #43
Message was sent while issue was closed.
@calamity, can you please take a look at #10 in the bug? Thanks.
https://code.google.com/p/chromium/issues/detail?id=370350#c10

Powered by Google App Engine
This is Rietveld 408576698