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

Issue 1164073005: Allow script to request durable storage permission (chrome side) (Closed)

Created:
5 years, 6 months ago by dgrogan
Modified:
5 years, 1 month ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, felt, jam, markusheintz_, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow script to request durable storage permission (chrome side) - Entry point from blink is PermissionDispatcher::requestPermission - IPC is handled internally by the permission service - Permission service stores user's choice in content settings Corresponding Blink change, which must land first, is https://codereview.chromium.org/1154573005/ BUG=482814 Committed: https://crrev.com/388c056b78a6cf1f43520e6c44b7ffcc57e7de6c Cr-Commit-Position: refs/heads/master@{#343468}

Patch Set 1 #

Patch Set 2 : Need to implement infobar #

Patch Set 3 : update for ToT #

Patch Set 4 : promises resolve and strings are ready for translating #

Patch Set 5 : fix webkit enum style #

Patch Set 6 : Might just be working now #

Patch Set 7 : update to ToT #

Patch Set 8 : ToT #

Patch Set 9 : remove UpdateTabContext #

Patch Set 10 : ToT #

Patch Set 11 : update for bubbles #

Patch Set 12 : rename WebSomeCallbacks #

Patch Set 13 : rebased onto content setting patch #

Total comments: 11

Patch Set 14 : ToT #

Patch Set 15 : trimmed down version #

Patch Set 16 : update include paths #

Patch Set 17 : switched message to 'Store files on your computer' #

Patch Set 18 : Just the permission request part #

Patch Set 19 : ToT #

Patch Set 20 : add DurableStorage to histograms.xml #

Patch Set 21 : Add entry to 1 more enum #

Patch Set 22 : ToT #

Patch Set 23 : Tot and Update method name #

Patch Set 24 : ToT and Fix WebPermissionQueryCallback->WebPermissionCallback #

Patch Set 25 : ToT and browser test #

Patch Set 26 : Fix test name #

Patch Set 27 : clean up for review #

Patch Set 28 : ToT #

Total comments: 18

Patch Set 29 : ToT #

Patch Set 30 : follow Mounir's suggestions for code cleanup #

Total comments: 2

Patch Set 31 : ToT #

Patch Set 32 : add Durable to PermissionType enum in histograms.xml #

Patch Set 33 : ToT #

Total comments: 2

Patch Set 34 : ToT #

Patch Set 35 : move files to storage subdir #

Patch Set 36 : alphabetize OWNERS #

Patch Set 37 : fix compile after url_formatter.h changes #

Patch Set 38 : fix enums in webview #

Patch Set 39 : ToT #

Patch Set 40 : add switch entry for vector icon #

Patch Set 41 : fix conflicts after midi constant permission landed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -40 lines) Patch
M android_webview/browser/aw_permission_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_bubble_request_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_context_uma_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_queue_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2 chunks +6 lines, -0 lines 0 comments Download
A + chrome/browser/storage/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/storage/durable_storage_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/storage/durable_storage_permission_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/storage/durable_storage_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/storage/durable_storage_permission_context_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/storage/durable_storage_permission_context_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +40 lines, -0 lines 0 comments Download
A + chrome/browser/storage/durable_storage_permission_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 3 chunks +15 lines, -18 lines 0 comments Download
A + chrome/browser/storage/durable_storage_permission_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +18 lines, -21 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/test/data/durable/durability-window1.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/durable/durability-window2.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/permissions/permission_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/permission_service.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/permission_type.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (18 generated)
dgrogan
Hi Mounir and Michael, This CL is not ready for landing but I'd appreciate any ...
5 years, 6 months ago (2015-06-19 22:20:23 UTC) #3
dgrogan
I'm going to refactor this into >1 patches. The first will just add the new ...
5 years, 5 months ago (2015-07-01 00:03:15 UTC) #4
mlamouri (slow - plz ping)
Thanks for your CL dgrogan@. Given that you said it will be split in multiple ...
5 years, 5 months ago (2015-07-02 09:53:01 UTC) #5
dgrogan
+felt for question about infobars https://codereview.chromium.org/1164073005/diff/260001/chrome/browser/durable_storage_permission_infobar_delegate.h File chrome/browser/durable_storage_permission_infobar_delegate.h (left): https://codereview.chromium.org/1164073005/diff/260001/chrome/browser/durable_storage_permission_infobar_delegate.h#oldcode19 chrome/browser/durable_storage_permission_infobar_delegate.h:19: class MidiPermissionInfoBarDelegate : public ...
5 years, 5 months ago (2015-07-07 04:15:11 UTC) #7
dgrogan
https://codereview.chromium.org/1164073005/diff/260001/content/renderer/durable_dispatcher.h File content/renderer/durable_dispatcher.h (right): https://codereview.chromium.org/1164073005/diff/260001/content/renderer/durable_dispatcher.h#newcode29 content/renderer/durable_dispatcher.h:29: blink::WebDurableStoragePermissionCallbacks* callbacks); On 2015/07/07 04:15:11, dgrogan wrote: > On ...
5 years, 5 months ago (2015-07-09 02:59:22 UTC) #8
felt
https://codereview.chromium.org/1164073005/diff/260001/chrome/browser/durable_storage_permission_infobar_delegate.h File chrome/browser/durable_storage_permission_infobar_delegate.h (left): https://codereview.chromium.org/1164073005/diff/260001/chrome/browser/durable_storage_permission_infobar_delegate.h#oldcode19 chrome/browser/durable_storage_permission_infobar_delegate.h:19: class MidiPermissionInfoBarDelegate : public PermissionInfobarDelegate { On 2015/07/07 04:15:11, ...
5 years, 5 months ago (2015-07-13 18:43:44 UTC) #9
mlamouri (slow - plz ping)
As said in the Blink Cl, I think this CL should use the PermissionClient::request() currently ...
5 years, 5 months ago (2015-07-16 12:21:02 UTC) #11
dgrogan
Mounir, can you review this CL? It will have to wait for the blink CL ...
5 years, 4 months ago (2015-08-01 00:52:31 UTC) #12
mlamouri (slow - plz ping)
I've left a few comments on the CL, see below. It looks generally good, mostly ...
5 years, 4 months ago (2015-08-05 13:54:55 UTC) #13
dgrogan
https://codereview.chromium.org/1164073005/diff/530001/chrome/browser/durable_storage_permission_context.cc File chrome/browser/durable_storage_permission_context.cc (right): https://codereview.chromium.org/1164073005/diff/530001/chrome/browser/durable_storage_permission_context.cc#newcode18 chrome/browser/durable_storage_permission_context.cc:18: } On 2015/08/05 13:54:55, Mounir Lamouri wrote: > nit: ...
5 years, 4 months ago (2015-08-07 20:11:44 UTC) #14
mlamouri (slow - plz ping)
permissions related code lgtm https://codereview.chromium.org/1164073005/diff/570001/chrome/browser/durable_storage_permission_infobar_delegate.cc File chrome/browser/durable_storage_permission_infobar_delegate.cc (left): https://codereview.chromium.org/1164073005/diff/570001/chrome/browser/durable_storage_permission_infobar_delegate.cc#oldcode41 chrome/browser/durable_storage_permission_infobar_delegate.cc:41: int MidiPermissionInfoBarDelegate::GetIconID() const { You ...
5 years, 4 months ago (2015-08-10 14:41:15 UTC) #15
dgrogan
https://codereview.chromium.org/1164073005/diff/570001/chrome/browser/durable_storage_permission_infobar_delegate.cc File chrome/browser/durable_storage_permission_infobar_delegate.cc (left): https://codereview.chromium.org/1164073005/diff/570001/chrome/browser/durable_storage_permission_infobar_delegate.cc#oldcode41 chrome/browser/durable_storage_permission_infobar_delegate.cc:41: int MidiPermissionInfoBarDelegate::GetIconID() const { On 2015/08/10 14:41:15, Mounir Lamouri ...
5 years, 4 months ago (2015-08-10 22:39:19 UTC) #16
dgrogan
tsepez, can you review permission_service.mojom? isherman, can you review histograms.xml? jochen, could you review as ...
5 years, 4 months ago (2015-08-11 00:24:21 UTC) #18
dgrogan
isherman, can you review histograms.xml?
5 years, 4 months ago (2015-08-11 00:25:05 UTC) #20
Ilya Sherman
histograms.xml
5 years, 4 months ago (2015-08-11 19:50:51 UTC) #21
dgrogan
On 2015/08/11 19:50:51, Ilya Sherman wrote: > histograms.xml I hope you meant to add 4 ...
5 years, 4 months ago (2015-08-11 19:56:27 UTC) #22
Ilya Sherman
On 2015/08/11 19:56:27, dgrogan wrote: > On 2015/08/11 19:50:51, Ilya Sherman wrote: > > histograms.xml ...
5 years, 4 months ago (2015-08-11 20:24:40 UTC) #23
Tom Sepez
Mojom LGTM
5 years, 4 months ago (2015-08-11 20:34:20 UTC) #24
jochen (gone - plz use gerrit)
please move the durable storage files into a subdirectory of chrome/browser/ and add an appropriate ...
5 years, 4 months ago (2015-08-12 16:26:51 UTC) #25
jochen (gone - plz use gerrit)
lgtm with my previous comment addressed https://codereview.chromium.org/1164073005/diff/630001/chrome/browser/durable_storage_permission_context.cc File chrome/browser/durable_storage_permission_context.cc (right): https://codereview.chromium.org/1164073005/diff/630001/chrome/browser/durable_storage_permission_context.cc#newcode20 chrome/browser/durable_storage_permission_context.cc:20: no empty line
5 years, 4 months ago (2015-08-12 16:29:03 UTC) #26
dgrogan
Thanks for the reviews, all. Created chrome/browser/storage subdir. https://codereview.chromium.org/1164073005/diff/630001/chrome/browser/durable_storage_permission_context.cc File chrome/browser/durable_storage_permission_context.cc (right): https://codereview.chromium.org/1164073005/diff/630001/chrome/browser/durable_storage_permission_context.cc#newcode20 chrome/browser/durable_storage_permission_context.cc:20: On ...
5 years, 4 months ago (2015-08-12 19:09:15 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164073005/710001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1164073005/710001
5 years, 4 months ago (2015-08-12 19:10:09 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/46975)
5 years, 4 months ago (2015-08-12 19:37:02 UTC) #32
dgrogan
Torne, can you review android_webview/browser/aw_permission_manager.cc? Who should I talk to about enabling durable storage in ...
5 years, 4 months ago (2015-08-12 22:29:56 UTC) #34
Torne
android_webview LGTM for now, but we would really prefer to be able to ship this ...
5 years, 4 months ago (2015-08-14 11:10:02 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164073005/730001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1164073005/730001
5 years, 4 months ago (2015-08-14 16:46:23 UTC) #38
dgrogan
On 2015/08/14 11:10:02, Torne wrote: > android_webview LGTM for now, but we would really prefer ...
5 years, 4 months ago (2015-08-14 16:50:24 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/39818)
5 years, 4 months ago (2015-08-14 17:33:10 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164073005/770001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1164073005/770001
5 years, 4 months ago (2015-08-14 17:56:31 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/99016) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 4 months ago (2015-08-14 17:58:02 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164073005/780025 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1164073005/780025
5 years, 4 months ago (2015-08-14 18:51:17 UTC) #49
commit-bot: I haz the power
Committed patchset #41 (id:780025)
5 years, 4 months ago (2015-08-14 20:01:25 UTC) #50
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 20:02:06 UTC) #51
Message was sent while issue was closed.
Patchset 41 (id:??) landed as
https://crrev.com/388c056b78a6cf1f43520e6c44b7ffcc57e7de6c
Cr-Commit-Position: refs/heads/master@{#343468}

Powered by Google App Engine
This is Rietveld 408576698