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

Issue 1356813002: Autogrant the durable storage permission to bookmarked origins (Closed)

Created:
5 years, 3 months ago by dgrogan
Modified:
5 years, 2 months ago
Reviewers:
jsbell
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Autogrant the durable storage permission to bookmarked origins Bookmarked origins still have to request the permission but will get it without any user interaction. BUG=533197 Committed: https://crrev.com/53fb744488a4aa0a3e3e3aa22943686da1648989 Cr-Commit-Position: refs/heads/master@{#351119}

Patch Set 1 #

Patch Set 2 : check that bookmark model exists before using it #

Total comments: 8

Patch Set 3 : address comments; add tests; disregard unbookmarking #

Total comments: 10

Patch Set 4 : address comments #

Total comments: 1

Patch Set 5 : s/Karma/site engagement/ #

Patch Set 6 : EXPECT_EQ -> EXPECT_TRUE/FALSE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -10 lines) Patch
M chrome/browser/storage/durable_storage_browsertest.cc View 1 2 3 4 5 4 chunks +72 lines, -10 lines 0 comments Download
M chrome/browser/storage/durable_storage_permission_context.h View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/storage/durable_storage_permission_context.cc View 1 2 3 4 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/browser/storage/durable_storage_permission_context_unittest.cc View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
dgrogan
Josh, feel free to take a look but I want to discuss the desired behavior ...
5 years, 3 months ago (2015-09-18 02:26:07 UTC) #2
jsbell
code nits And yeah, it's slightly odd reading the code that *any* bookmark in the ...
5 years, 3 months ago (2015-09-21 17:22:53 UTC) #3
dgrogan
Take another look? https://codereview.chromium.org/1356813002/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): https://codereview.chromium.org/1356813002/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc#newcode58 chrome/browser/storage/durable_storage_permission_context.cc:58: std::vector<bookmarks::BookmarkModel::URLAndTitle> bookmarks; On 2015/09/21 17:22:52, jsbell ...
5 years, 3 months ago (2015-09-24 20:58:57 UTC) #4
jsbell
non-owner lgtm w/ nits https://codereview.chromium.org/1356813002/diff/40001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): https://codereview.chromium.org/1356813002/diff/40001/chrome/browser/storage/durable_storage_permission_context.cc#newcode37 chrome/browser/storage/durable_storage_permission_context.cc:37: if (!requesting_origin.is_valid() || !embedding_origin.is_valid()) { ...
5 years, 3 months ago (2015-09-24 22:07:37 UTC) #5
dgrogan
Josh, you are an OWNER, but I won't submit until you've taken another look. https://codereview.chromium.org/1356813002/diff/40001/chrome/browser/storage/durable_storage_permission_context.cc ...
5 years, 2 months ago (2015-09-25 20:23:43 UTC) #6
jsbell
still lgtm! https://codereview.chromium.org/1356813002/diff/60001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): https://codereview.chromium.org/1356813002/diff/60001/chrome/browser/storage/durable_storage_permission_context.cc#newcode76 chrome/browser/storage/durable_storage_permission_context.cc:76: // TODO(dgrogan): Remove bookmarks check in favor ...
5 years, 2 months ago (2015-09-28 16:18:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1356813002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1356813002/80001
5 years, 2 months ago (2015-09-28 17:57:28 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/37577) chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-09-28 18:16:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1356813002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1356813002/100001
5 years, 2 months ago (2015-09-28 18:37:09 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-09-28 19:39:11 UTC) #16
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 19:40:46 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/53fb744488a4aa0a3e3e3aa22943686da1648989
Cr-Commit-Position: refs/heads/master@{#351119}

Powered by Google App Engine
This is Rietveld 408576698