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

Issue 287843002: ServiceWorker: DB functions should return status code instead of boolean (2) (Closed)

Created:
6 years, 7 months ago by nhiroki
Modified:
6 years, 7 months ago
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org
Visibility:
Public.

Description

ServiceWorker: DB functions should return status code instead of boolean (2) Part1: https://codereview.chromium.org/275103004/ This change makes the following functions return status code instead of boolean. - GetRegistrationsForOrigin() - GetAllRegistrations() - LazyOpen() - ReadDatabaseVersion() Other remaining functions will be fixed in the following CLs. BUG=372704 TEST=should pass all existing tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271329

Patch Set 1 : #

Patch Set 2 : fix #

Total comments: 11

Patch Set 3 : address comments partially #

Total comments: 1

Patch Set 4 : add ServiceWorkerDatabase::Status #

Patch Set 5 : add IsNewOrNonexistentDatabase() #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -176 lines) Patch
M content/browser/service_worker/service_worker_database.h View 1 2 3 4 5 5 chunks +41 lines, -19 lines 0 comments Download
M content/browser/service_worker/service_worker_database.cc View 1 2 3 4 21 chunks +112 lines, -90 lines 0 comments Download
M content/browser/service_worker/service_worker_database_unittest.cc View 1 2 3 4 5 14 chunks +38 lines, -24 lines 0 comments Download
M content/browser/service_worker/service_worker_registration_status.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_storage.h View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.cc View 1 2 3 4 5 11 chunks +51 lines, -31 lines 0 comments Download
M content/common/service_worker/service_worker_status_code.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/service_worker/service_worker_status_code.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
nhiroki
PTAL, thanks!
6 years, 7 months ago (2014-05-15 07:12:08 UTC) #1
michaeln
lgtm If we end up translating from the error returned by the DB class to ...
6 years, 7 months ago (2014-05-15 19:59:29 UTC) #2
nhiroki
Thank you! Addressed comments partially for now. https://codereview.chromium.org/287843002/diff/140001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/287843002/diff/140001/content/browser/service_worker/service_worker_database.cc#newcode300 content/browser/service_worker/service_worker_database.cc:300: origins->clear(); On ...
6 years, 7 months ago (2014-05-16 02:11:11 UTC) #3
nhiroki
https://codereview.chromium.org/287843002/diff/160001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/287843002/diff/160001/content/browser/service_worker/service_worker_database.cc#newcode785 content/browser/service_worker/service_worker_database.cc:785: DCHECK(ids->clear()); Oops... will fix this.
6 years, 7 months ago (2014-05-16 02:48:20 UTC) #4
nhiroki
Updated. Can you take another look? Thanks!
6 years, 7 months ago (2014-05-16 05:16:42 UTC) #5
michaeln
lgtm!
6 years, 7 months ago (2014-05-16 21:52:12 UTC) #6
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 7 months ago (2014-05-18 13:05:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/287843002/250001
6 years, 7 months ago (2014-05-18 13:05:40 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-18 14:58:30 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-18 15:55:33 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/28242)
6 years, 7 months ago (2014-05-18 15:55:33 UTC) #11
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 7 months ago (2014-05-19 01:21:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/287843002/250001
6 years, 7 months ago (2014-05-19 01:21:51 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 02:20:34 UTC) #14
Message was sent while issue was closed.
Change committed as 271329

Powered by Google App Engine
This is Rietveld 408576698