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

Issue 2847533003: PaymentHandler: Add a key prefix to avoid key conflicts with others. (Closed)

Created:
3 years, 7 months ago by zino
Modified:
3 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentHandler: Add a key prefix to avoid key conflicts with others. The current implementation is using the service worker database (is based on level DB) to store payment instrument data. The other SW features also use the same way. The instrument key is mapping with database key directly, So, the database key might be conflict with other SW related features such as push notification. To avoid this problem, this CL adds a prefix to instrument key. BUG=661608 TEST=existing tests Review-Url: https://codereview.chromium.org/2847533003 Cr-Commit-Position: refs/heads/master@{#467736} Committed: https://chromium.googlesource.com/chromium/src/+/e052a49fd7fad23a559f05c54e6dce8671c13883

Patch Set 1 #

Total comments: 1

Patch Set 2 : PaymentHandler: Add a key prefix to avoid key conflicts with others. #

Total comments: 1

Patch Set 3 : PaymentHandler: Add a key prefix to avoid key conflicts with others. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M content/browser/payments/payment_app_database.cc View 1 2 6 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
zino
PTAL
3 years, 7 months ago (2017-04-27 15:26:42 UTC) #3
please use gerrit instead
https://codereview.chromium.org/2847533003/diff/1/content/browser/payments/payment_app_database.cc File content/browser/payments/payment_app_database.cc (right): https://codereview.chromium.org/2847533003/diff/1/content/browser/payments/payment_app_database.cc#newcode29 content/browser/payments/payment_app_database.cc:29: return base::StringPrintf("%s%s", kPaymentInstrumentKeyPrefix, Stringprintf seems like an overkill. Why ...
3 years, 7 months ago (2017-04-27 15:37:40 UTC) #4
zino
On 2017/04/27 15:37:40, ಠ_ಠ wrote: > https://codereview.chromium.org/2847533003/diff/1/content/browser/payments/payment_app_database.cc > File content/browser/payments/payment_app_database.cc (right): > > https://codereview.chromium.org/2847533003/diff/1/content/browser/payments/payment_app_database.cc#newcode29 > ...
3 years, 7 months ago (2017-04-27 15:46:17 UTC) #5
please use gerrit instead
lgtm % comment https://codereview.chromium.org/2847533003/diff/20001/content/browser/payments/payment_app_database.cc File content/browser/payments/payment_app_database.cc (right): https://codereview.chromium.org/2847533003/diff/20001/content/browser/payments/payment_app_database.cc#newcode11 content/browser/payments/payment_app_database.cc:11: #include "base/strings/stringprintf.h" No longer used.
3 years, 7 months ago (2017-04-27 15:48:31 UTC) #6
zino
On 2017/04/27 15:48:31, ಠ_ಠ wrote: > lgtm % comment > > https://codereview.chromium.org/2847533003/diff/20001/content/browser/payments/payment_app_database.cc > File content/browser/payments/payment_app_database.cc ...
3 years, 7 months ago (2017-04-27 15:56:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2847533003/40001
3 years, 7 months ago (2017-04-27 16:26:55 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 17:57:14 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e052a49fd7fad23a559f05c54e6d...

Powered by Google App Engine
This is Rietveld 408576698