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

Issue 489753002: Added proper extension manifest parser for launcher_page. (Closed)

Created:
6 years, 4 months ago by Matt Giuca
Modified:
6 years, 3 months ago
Reviewers:
calamity, benwells
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, benwells
Project:
chromium
Visibility:
Public.

Description

Added proper extension manifest parser for launcher_page. Previously, AppListViewDelegate manually parsed the manifest. We now have a proper parser class that generates appropriate errors for invalid launcher_page fields in a manifest, with full valid and invalid unit tests. BUG=399131 Committed: https://crrev.com/2be0d05247cc0f2f236540bd19b62a41896dd2ae Cr-Commit-Position: refs/heads/master@{#291856}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Formatting and remove valid test from 'init' file (already tested in other file). #

Patch Set 3 : calamity suggestions. #

Patch Set 4 : Add ASSERT in test (avoid NULL deref if it happens to have failed). #

Total comments: 2

Patch Set 5 : Rebase. #

Patch Set 6 : Blank line. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -14 lines) Patch
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 3 4 5 2 chunks +6 lines, -14 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc View 1 2 3 4 4 chunks +17 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_tests/extension_manifests_launcher_page_unittest.cc View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/init_invalid_launcher_page_invalid.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/init_invalid_launcher_page_page_invalid.json View 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/init_invalid_launcher_page_page_missing.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/init_valid_launcher_page.json View 1 chunk +14 lines, -0 lines 0 comments Download
M extensions/common/common_manifest_handlers.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
A extensions/common/manifest_handlers/launcher_page_info.h View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A extensions/common/manifest_handlers/launcher_page_info.cc View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/extensions_strings.grd View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Matt Giuca
calamity@: Sorry bro, I choose YOU to review this rather large CL. (It feels a ...
6 years, 4 months ago (2014-08-20 06:55:42 UTC) #1
calamity
lgtm w/ nits. https://codereview.chromium.org/489753002/diff/1/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc (right): https://codereview.chromium.org/489753002/diff/1/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc#newcode33 chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc:33: nit: remove whitespace. https://codereview.chromium.org/489753002/diff/1/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc#newcode93 chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc:93: RunTestcases(testcases, ...
6 years, 4 months ago (2014-08-21 02:53:09 UTC) #2
Matt Giuca
benwells@: for OWNERS of: chrome/common/extensions/manifest_tests/* extensions/common/* https://codereview.chromium.org/489753002/diff/1/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc (right): https://codereview.chromium.org/489753002/diff/1/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc#newcode33 chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc:33: On 2014/08/21 02:53:08, ...
6 years, 4 months ago (2014-08-22 02:48:41 UTC) #3
Matt Giuca
benwells: ping
6 years, 3 months ago (2014-08-26 02:54:04 UTC) #4
benwells
lgtm https://codereview.chromium.org/489753002/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/489753002/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode142 chrome/browser/ui/app_list/app_list_view_delegate.cc:142: urls->push_back(extension->GetResourceURL(info->page)); Nit: please add a blank line after ...
6 years, 3 months ago (2014-08-26 03:29:13 UTC) #5
Matt Giuca
https://codereview.chromium.org/489753002/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/489753002/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode142 chrome/browser/ui/app_list/app_list_view_delegate.cc:142: urls->push_back(extension->GetResourceURL(info->page)); On 2014/08/26 03:29:12, benwells wrote: > Nit: please ...
6 years, 3 months ago (2014-08-26 03:36:30 UTC) #6
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 3 months ago (2014-08-26 03:36:41 UTC) #7
Matt Giuca
The CQ bit was unchecked by mgiuca@chromium.org
6 years, 3 months ago (2014-08-26 03:36:46 UTC) #8
Matt Giuca
Patchset #5 (id:80001) has been deleted
6 years, 3 months ago (2014-08-26 03:37:04 UTC) #9
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 3 months ago (2014-08-26 03:39:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/489753002/120001
6 years, 3 months ago (2014-08-26 03:40:54 UTC) #11
commit-bot: I haz the power
Committed patchset #6 (120001) as 5f06f2017bc7514afbe8b58cc3c5907a6ca78a81
6 years, 3 months ago (2014-08-26 06:42:31 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:41:03 UTC) #13
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2be0d05247cc0f2f236540bd19b62a41896dd2ae
Cr-Commit-Position: refs/heads/master@{#291856}

Powered by Google App Engine
This is Rietveld 408576698