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

Issue 178253007: Parse manifest file with app.service_worker.script. (Closed)

Created:
6 years, 10 months ago by scheib
Modified:
6 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Parse manifest file with app.service_worker.script. Add parsing logic to load a manifest specifying a service worker script. This is a precursor to registering and using that script. BUG=344917 R=jyasskin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255424

Patch Set 1 : destructor added #

Total comments: 24

Patch Set 2 : #

Total comments: 24

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Moved test utils out of base #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -29 lines) Patch
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifest_test.h View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifest_test.cc View 1 2 3 4 chunks +23 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc View 1 2 3 1 chunk +120 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_unittest.cc View 1 chunk +7 lines, -1 line 0 comments Download
M extensions/common/manifest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/common/manifest_constants.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 3 chunks +7 lines, -0 lines 0 comments Download
M extensions/common/manifest_handlers/background_info.h View 1 3 chunks +11 lines, -0 lines 0 comments Download
M extensions/common/manifest_handlers/background_info.cc View 1 2 6 chunks +69 lines, -27 lines 0 comments Download
M extensions/common/test_util.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M extensions/common/test_util.cc View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 52 (0 generated)
scheib
6 years, 9 months ago (2014-02-27 20:33:06 UTC) #1
Jeffrey Yasskin
https://codereview.chromium.org/178253007/diff/80001/chrome/common/extensions/api/_manifest_features.json File chrome/common/extensions/api/_manifest_features.json (right): https://codereview.chromium.org/178253007/diff/80001/chrome/common/extensions/api/_manifest_features.json#newcode45 chrome/common/extensions/api/_manifest_features.json:45: "app.service_worker": { Did we say something about defining this ...
6 years, 9 months ago (2014-02-28 01:54:36 UTC) #2
scheib
Thanks. Some responses before I get into the code changes: https://codereview.chromium.org/178253007/diff/80001/chrome/common/extensions/api/_manifest_features.json File chrome/common/extensions/api/_manifest_features.json (right): https://codereview.chromium.org/178253007/diff/80001/chrome/common/extensions/api/_manifest_features.json#newcode45 ...
6 years, 9 months ago (2014-02-28 04:16:07 UTC) #3
Jeffrey Yasskin
On Thu, Feb 27, 2014 at 8:16 PM, <scheib@chromium.org> wrote: > Thanks. Some responses before ...
6 years, 9 months ago (2014-02-28 04:59:40 UTC) #4
not at google - send to devlin
Drive-by (sorta): Why is the service worker key being handled in "background info"? It seems ...
6 years, 9 months ago (2014-02-28 17:35:02 UTC) #5
Jeffrey Yasskin
On Fri, Feb 28, 2014 at 9:35 AM, <kalman@chromium.org> wrote: > Drive-by (sorta): > > ...
6 years, 9 months ago (2014-02-28 17:40:42 UTC) #6
not at google - send to devlin
To complicate things further, also +yoz in case he has any opinions about this (as ...
6 years, 9 months ago (2014-02-28 17:48:14 UTC) #7
scheib
On Fri, Feb 28, 2014 at 9:40 AM, Jeffrey Yasskin <jyasskin@chromium.org>wrote: > On Fri, Feb ...
6 years, 9 months ago (2014-02-28 17:49:17 UTC) #8
Yoyo Zhou
https://codereview.chromium.org/178253007/diff/80001/extensions/common/manifest_handlers/background_info.cc File extensions/common/manifest_handlers/background_info.cc (right): https://codereview.chromium.org/178253007/diff/80001/extensions/common/manifest_handlers/background_info.cc#newcode124 extensions/common/manifest_handlers/background_info.cc:124: bool BackgroundInfo::LoadServiceWorkerScript(const Extension* extension, On 2014/02/28 01:54:37, Jeffrey Yasskin ...
6 years, 9 months ago (2014-02-28 17:59:09 UTC) #9
not at google - send to devlin
On 2014/02/28 17:49:17, scheib wrote: > On Fri, Feb 28, 2014 at 9:40 AM, Jeffrey ...
6 years, 9 months ago (2014-02-28 18:03:27 UTC) #10
Jeffrey Yasskin
On Fri, Feb 28, 2014 at 10:03 AM, <kalman@chromium.org> wrote: > On 2014/02/28 17:49:17, scheib ...
6 years, 9 months ago (2014-02-28 18:09:33 UTC) #11
not at google - send to devlin
> It looks like a bunch of call sites are going to need to check ...
6 years, 9 months ago (2014-02-28 18:17:36 UTC) #12
scheib
On Fri, Feb 28, 2014 at 9:59 AM, <yoz@chromium.org> wrote: > > https://codereview.chromium.org/178253007/diff/80001/ > extensions/common/manifest_handlers/background_info.cc#newcode351 ...
6 years, 9 months ago (2014-02-28 18:18:51 UTC) #13
scheib
On Fri, Feb 28, 2014 at 10:17 AM, <kalman@chromium.org> wrote: > > It looks like ...
6 years, 9 months ago (2014-02-28 18:27:35 UTC) #14
not at google - send to devlin
Ok, the "parsing error for mutually exclusive concepts" thing is the compelling argument for having ...
6 years, 9 months ago (2014-02-28 18:27:46 UTC) #15
Yoyo Zhou
On 2014/02/28 18:18:51, scheib wrote: > On Fri, Feb 28, 2014 at 9:59 AM, <mailto:yoz@chromium.org> ...
6 years, 9 months ago (2014-02-28 22:51:31 UTC) #16
scheib
https://codereview.chromium.org/178253007/diff/80001/chrome/common/extensions/manifest_tests/extension_manifest_test.cc File chrome/common/extensions/manifest_tests/extension_manifest_test.cc (right): https://codereview.chromium.org/178253007/diff/80001/chrome/common/extensions/manifest_tests/extension_manifest_test.cc#newcode97 chrome/common/extensions/manifest_tests/extension_manifest_test.cc:97: std::string manifest_string = manifest_as_string_with_single_quotes; On 2014/02/28 01:54:37, Jeffrey Yasskin ...
6 years, 9 months ago (2014-03-03 19:54:00 UTC) #17
not at google - send to devlin
https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc (right): https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc#newcode115 chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc:115: " }," when do you plan on adding the ...
6 years, 9 months ago (2014-03-03 19:56:06 UTC) #18
scheib
https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc (right): https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc#newcode115 chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc:115: " }," On 2014/03/03 19:56:07, kalman wrote: > when ...
6 years, 9 months ago (2014-03-03 20:25:46 UTC) #19
not at google - send to devlin
https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc (right): https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc#newcode115 chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc:115: " }," On 2014/03/03 20:25:46, scheib wrote: > On ...
6 years, 9 months ago (2014-03-03 20:34:22 UTC) #20
scheib
Pawel, PTAL at base/test/values_test_util.* https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc (right): https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc#newcode115 chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc:115: " }," On 2014/03/03 20:34:22, ...
6 years, 9 months ago (2014-03-03 21:37:59 UTC) #21
Paweł Hajdan Jr.
https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc File base/test/values_test_util.cc (right): https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc#newcode77 base/test/values_test_util.cc:77: scoped_ptr<DictionaryValue> ParseJsonDictionaryWithSingleQuotes( Why not let the caller do things ...
6 years, 9 months ago (2014-03-03 22:50:43 UTC) #22
scheib
https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc File base/test/values_test_util.cc (right): https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc#newcode77 base/test/values_test_util.cc:77: scoped_ptr<DictionaryValue> ParseJsonDictionaryWithSingleQuotes( On 2014/03/03 22:50:47, Paweł Hajdan Jr. wrote: ...
6 years, 9 months ago (2014-03-03 22:56:43 UTC) #23
not at google - send to devlin
https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc File base/test/values_test_util.cc (right): https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc#newcode77 base/test/values_test_util.cc:77: scoped_ptr<DictionaryValue> ParseJsonDictionaryWithSingleQuotes( On 2014/03/03 22:50:47, Paweł Hajdan Jr. wrote: ...
6 years, 9 months ago (2014-03-03 22:59:03 UTC) #24
Jeffrey Yasskin
https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc File base/test/values_test_util.cc (right): https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc#newcode79 base/test/values_test_util.cc:79: std::string json_single_quotes_replaced = json.as_string(); Since you're making a copy ...
6 years, 9 months ago (2014-03-04 01:41:47 UTC) #25
scheib
Thanks, ptal. https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc File base/test/values_test_util.cc (right): https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc#newcode79 base/test/values_test_util.cc:79: std::string json_single_quotes_replaced = json.as_string(); On 2014/03/04 01:41:48, ...
6 years, 9 months ago (2014-03-04 15:34:31 UTC) #26
Jeffrey Yasskin
lgtm, but of course I can't approve base/ https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc (right): https://codereview.chromium.org/178253007/diff/160001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc#newcode45 chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc:45: CommandLine::ForCurrentProcess()->AppendSwitch( ...
6 years, 9 months ago (2014-03-04 17:29:15 UTC) #27
scheib
Thanks jyasskin. phajdan.jr PTAL. https://codereview.chromium.org/178253007/diff/180001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc (right): https://codereview.chromium.org/178253007/diff/180001/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc#newcode98 chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc:98: .Pass()))); On 2014/03/04 17:29:16, Jeffrey ...
6 years, 9 months ago (2014-03-04 17:51:23 UTC) #28
Paweł Hajdan Jr.
https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc File base/test/values_test_util.cc (right): https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc#newcode77 base/test/values_test_util.cc:77: scoped_ptr<DictionaryValue> ParseJsonDictionaryWithSingleQuotes( On 2014/03/03 22:59:04, kalman wrote: > On ...
6 years, 9 months ago (2014-03-05 03:52:56 UTC) #29
scheib
Thanks Pawel: https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc File base/test/values_test_util.cc (right): https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc#newcode77 base/test/values_test_util.cc:77: scoped_ptr<DictionaryValue> ParseJsonDictionaryWithSingleQuotes( On 2014/03/05 03:52:56, Paweł Hajdan ...
6 years, 9 months ago (2014-03-05 04:49:41 UTC) #30
scheib
Moved out of base into extensions/common instead. jyasskin, PTAL.
6 years, 9 months ago (2014-03-05 22:14:20 UTC) #31
Jeffrey Yasskin
On Tue, Mar 4, 2014 at 7:52 PM, <phajdan.jr@chromium.org> wrote: > > https://codereview.chromium.org/178253007/diff/160001/base/test/values_test_util.cc > File ...
6 years, 9 months ago (2014-03-05 22:16:52 UTC) #32
scheib
Sorry! I should have mentioned that I discussed in person with Pawel. On Wed, Mar ...
6 years, 9 months ago (2014-03-05 22:19:23 UTC) #33
Jeffrey Yasskin
Still LGTM.
6 years, 9 months ago (2014-03-05 22:20:55 UTC) #34
Jeffrey Yasskin
On 2014/03/05 22:19:23, scheib wrote: > Sorry! I should have mentioned that I discussed in ...
6 years, 9 months ago (2014-03-05 22:21:26 UTC) #35
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 9 months ago (2014-03-05 22:29:38 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/178253007/260001
6 years, 9 months ago (2014-03-05 22:31:16 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 22:48:36 UTC) #38
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 9 months ago (2014-03-05 22:48:38 UTC) #39
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 9 months ago (2014-03-06 06:08:47 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/178253007/260001
6 years, 9 months ago (2014-03-06 06:10:02 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 08:31:20 UTC) #42
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276199
6 years, 9 months ago (2014-03-06 08:31:20 UTC) #43
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 9 months ago (2014-03-06 15:09:56 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/178253007/260001
6 years, 9 months ago (2014-03-06 15:10:31 UTC) #45
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 18:19:42 UTC) #46
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276399
6 years, 9 months ago (2014-03-06 18:19:42 UTC) #47
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 9 months ago (2014-03-06 19:23:10 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/178253007/260001
6 years, 9 months ago (2014-03-06 19:29:17 UTC) #49
scheib
Committed patchset #4 manually as r255424 (presubmit successful).
6 years, 9 months ago (2014-03-06 20:52:37 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/178253007/260001
6 years, 9 months ago (2014-03-06 21:01:26 UTC) #51
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 21:01:31 UTC) #52
Message was sent while issue was closed.
Failed to apply patch for chrome/chrome_tests_unit.gypi:
While running patch -p1 --forward --force --no-backup-if-mismatch;
  patching file chrome/chrome_tests_unit.gypi
  Hunk #1 FAILED at 1827.
  1 out of 1 hunk FAILED -- saving rejects to file
chrome/chrome_tests_unit.gypi.rej

Patch:       chrome/chrome_tests_unit.gypi
Index: chrome/chrome_tests_unit.gypi
diff --git a/chrome/chrome_tests_unit.gypi b/chrome/chrome_tests_unit.gypi
index
f947ff9a21419192ee2e3da5a93ab0dcffe037ca..961961a7deb432ef5edbc1b871063793c947ef19
100644
--- a/chrome/chrome_tests_unit.gypi
+++ b/chrome/chrome_tests_unit.gypi
@@ -1827,6 +1827,7 @@
        
'common/extensions/manifest_tests/extension_manifests_portsinpermissions_unittest.cc',
        
'common/extensions/manifest_tests/extension_manifests_requirements_unittest.cc',
        
'common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc',
+       
'common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc',
        
'common/extensions/manifest_tests/extension_manifests_storage_unittest.cc',
         'common/extensions/manifest_tests/extension_manifests_ui_unittest.cc',
        
'common/extensions/manifest_tests/extension_manifests_update_unittest.cc',

Powered by Google App Engine
This is Rietveld 408576698