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

Issue 2561673003: Handle per-tab AUTOMATIC_DOWNLOADS setting in DownloadRequestLimiter. (Closed)

Created:
4 years ago by alshabalin
Modified:
3 years, 9 months ago
CC:
asanka, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle per-tab AUTOMATIC_DOWNLOADS setting in DownloadRequestLimiter. BUG=672395 Review-Url: https://codereview.chromium.org/2561673003 Cr-Commit-Position: refs/heads/master@{#454228} Committed: https://chromium.googlesource.com/chromium/src/+/3db897f00b693287702dc2b88c5ebe757e2babaf

Patch Set 1 #

Total comments: 1

Patch Set 2 : Handle per-tab AUTOMATIC_DOWNLOADS setting in DownloadRequestLimiter. #

Total comments: 16

Patch Set 3 : Address review comments. #

Total comments: 4

Patch Set 4 : Address review comments. #

Patch Set 5 : Fix whitespace #

Total comments: 5

Patch Set 6 : Add more diagnostics. #

Patch Set 7 : Rebase. #

Patch Set 8 : Fix ContentSettingBubbleDialogTest #

Patch Set 9 : Handle absent DownloadRequestLimiter in tests #

Total comments: 3

Patch Set 10 : Rebase. #

Patch Set 11 : Fix after rebase. #

Patch Set 12 : Remove custom HostContentSettingsMap from DRL unit tests. #

Total comments: 3

Patch Set 13 : Get HostContentSettingsMap directly in DRL tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -155 lines) Patch
M chrome/browser/content_settings/tab_specific_content_settings.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 4 chunks +5 lines, -14 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_request_limiter.h View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +30 lines, -22 lines 0 comments Download
M chrome/browser/download/download_request_limiter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +114 lines, -65 lines 0 comments Download
M chrome/browser/download/download_request_limiter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +10 lines, -31 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_browsertest.mm View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.h View 1 2 3 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 2 3 4 5 6 7 8 8 chunks +125 lines, -9 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_image_model.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +58 lines, -3 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_image_model_browsertest.cc View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_bubble_dialog_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (23 generated)
alshabalin
https://codereview.chromium.org/2561673003/diff/1/chrome/browser/download/download_request_limiter.cc File chrome/browser/download/download_request_limiter.cc (right): https://codereview.chromium.org/2561673003/diff/1/chrome/browser/download/download_request_limiter.cc#newcode196 chrome/browser/download/download_request_limiter.cc:196: if (tab_settings) { This is called right after permission ...
4 years ago (2016-12-08 11:39:06 UTC) #3
alshabalin
Also I've encountered a problem with download_request_limiter_unittest.cc. I removed TestingProfile, created HostContentSettingsMap from HostContentSettingsMapFactory for ...
4 years ago (2016-12-08 12:06:54 UTC) #4
alshabalin
Also I've encountered a problem with download_request_limiter_unittest.cc. I removed TestingProfile, created HostContentSettingsMap from HostContentSettingsMapFactory for ...
4 years ago (2016-12-08 12:06:55 UTC) #5
dominickn
On 2016/12/08 12:06:55, alshabalin wrote: > Also I've encountered a problem with download_request_limiter_unittest.cc. I > ...
4 years ago (2016-12-09 00:53:28 UTC) #6
alshabalin
On 2016/12/09 00:53:28, dominickn wrote: > On 2016/12/08 12:06:55, alshabalin wrote: > > Also I've ...
4 years ago (2016-12-09 10:15:22 UTC) #7
dominickn
Thanks for the clarification. In that case, it makes sense to update the unit test ...
4 years ago (2016-12-12 03:44:47 UTC) #8
alshabalin
On 2016/12/12 03:44:47, dominickn wrote: > Thanks for the clarification. In that case, it makes ...
4 years ago (2016-12-19 15:51:49 UTC) #9
dominickn
Thanks for the thorough investigation here! On 2016/12/19 15:51:49, alshabalin wrote: > On 2016/12/12 03:44:47, ...
4 years ago (2016-12-19 23:54:18 UTC) #10
alshabalin
Finally found some time to work on this. Basically did what I sketched in my ...
3 years, 11 months ago (2017-01-23 14:19:01 UTC) #11
dominickn
Thanks! This is looking great - I got to it pretty late in my day ...
3 years, 11 months ago (2017-01-24 06:46:17 UTC) #12
alshabalin
> Thanks! This is looking great - I got to it pretty late in my ...
3 years, 11 months ago (2017-01-24 10:15:22 UTC) #13
dominickn
lgtm. Thanks again for the investigation and fix. :)
3 years, 11 months ago (2017-01-25 04:43:31 UTC) #14
alshabalin
+bauerb for TabSpecificContentSettings. PTAL.
3 years, 11 months ago (2017-01-25 09:11:36 UTC) #17
Bernhard Bauer
https://codereview.chromium.org/2561673003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/2561673003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode245 chrome/browser/content_settings/tab_specific_content_settings.cc:245: if (content_type == CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS) { If you are now ...
3 years, 11 months ago (2017-01-25 19:01:15 UTC) #18
dominickn
https://codereview.chromium.org/2561673003/diff/20001/chrome/browser/download/download_request_limiter.h File chrome/browser/download/download_request_limiter.h (right): https://codereview.chromium.org/2561673003/diff/20001/chrome/browser/download/download_request_limiter.h#newcode244 chrome/browser/download/download_request_limiter.h:244: StateMap state_map_; On 2017/01/25 19:01:14, Bernhard Bauer wrote: > ...
3 years, 11 months ago (2017-01-26 07:37:05 UTC) #19
Bernhard Bauer
https://codereview.chromium.org/2561673003/diff/20001/chrome/browser/download/download_request_limiter.h File chrome/browser/download/download_request_limiter.h (right): https://codereview.chromium.org/2561673003/diff/20001/chrome/browser/download/download_request_limiter.h#newcode244 chrome/browser/download/download_request_limiter.h:244: StateMap state_map_; On 2017/01/26 07:37:05, dominickn wrote: > On ...
3 years, 11 months ago (2017-01-26 11:10:00 UTC) #20
alshabalin
Removed TabSpecificContentSettings from the loop. https://codereview.chromium.org/2561673003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/2561673003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode245 chrome/browser/content_settings/tab_specific_content_settings.cc:245: if (content_type == CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS) ...
3 years, 10 months ago (2017-02-07 16:16:29 UTC) #21
Bernhard Bauer
Thanks! https://codereview.chromium.org/2561673003/diff/40001/chrome/browser/download/download_request_limiter.cc File chrome/browser/download/download_request_limiter.cc (right): https://codereview.chromium.org/2561673003/diff/40001/chrome/browser/download/download_request_limiter.cc#newcode120 chrome/browser/download/download_request_limiter.cc:120: void DownloadRequestLimiter::TabDownloadState::SetDownloadStatusAndNotify( Okay, if status and setting are ...
3 years, 10 months ago (2017-02-07 17:02:57 UTC) #22
alshabalin
https://codereview.chromium.org/2561673003/diff/40001/chrome/browser/download/download_request_limiter.cc File chrome/browser/download/download_request_limiter.cc (right): https://codereview.chromium.org/2561673003/diff/40001/chrome/browser/download/download_request_limiter.cc#newcode120 chrome/browser/download/download_request_limiter.cc:120: void DownloadRequestLimiter::TabDownloadState::SetDownloadStatusAndNotify( On 2017/02/07 17:02:57, Bernhard Bauer wrote: > ...
3 years, 10 months ago (2017-02-08 11:16:14 UTC) #23
alshabalin
+asanka for download_browsertest.cc. Please take a look. Bernhard, could you, please, take another look?
3 years, 10 months ago (2017-02-16 08:25:55 UTC) #25
Bernhard Bauer
Sorry, I forgot I had this in my drafts. https://codereview.chromium.org/2561673003/diff/80001/chrome/browser/download/download_request_limiter.cc File chrome/browser/download/download_request_limiter.cc (right): https://codereview.chromium.org/2561673003/diff/80001/chrome/browser/download/download_request_limiter.cc#newcode51 chrome/browser/download/download_request_limiter.cc:51: ...
3 years, 10 months ago (2017-02-16 13:08:14 UTC) #26
asanka
downloads -> dtrainor
3 years, 10 months ago (2017-02-16 17:42:55 UTC) #28
David Trainor- moved to gerrit
download_browsertest.cc lgtm. We need to update owners though.
3 years, 10 months ago (2017-02-16 17:51:46 UTC) #29
alshabalin
https://codereview.chromium.org/2561673003/diff/80001/chrome/browser/download/download_request_limiter.cc File chrome/browser/download/download_request_limiter.cc (right): https://codereview.chromium.org/2561673003/diff/80001/chrome/browser/download/download_request_limiter.cc#newcode51 chrome/browser/download/download_request_limiter.cc:51: default: On 2017/02/16 13:08:14, Bernhard Bauer wrote: > Actually, ...
3 years, 10 months ago (2017-02-17 09:21:11 UTC) #30
Bernhard Bauer
Thanks, LGTM! https://codereview.chromium.org/2561673003/diff/80001/chrome/browser/download/download_request_limiter.cc File chrome/browser/download/download_request_limiter.cc (right): https://codereview.chromium.org/2561673003/diff/80001/chrome/browser/download/download_request_limiter.cc#newcode51 chrome/browser/download/download_request_limiter.cc:51: default: On 2017/02/17 09:21:10, alshabalin wrote: > ...
3 years, 10 months ago (2017-02-17 10:51:22 UTC) #31
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/2561673003/100001
3 years, 10 months ago (2017-02-17 11:00:58 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/390615)
3 years, 10 months ago (2017-02-17 11:03:04 UTC) #36
alshabalin
+pkasting for content_setting_bubble_dialog_browsertest.cc Please, take a look.
3 years, 10 months ago (2017-02-20 08:41:48 UTC) #38
alshabalin
On 2017/02/17 10:51:22, Bernhard Bauer wrote: > Thanks, LGTM! > > https://codereview.chromium.org/2561673003/diff/80001/chrome/browser/download/download_request_limiter.cc > File chrome/browser/download/download_request_limiter.cc ...
3 years, 10 months ago (2017-02-20 08:59:05 UTC) #39
Peter Kasting
LGTM
3 years, 10 months ago (2017-02-23 02:05:02 UTC) #40
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/2561673003/140001
3 years, 9 months ago (2017-02-27 09:52:53 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/398208) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-02-27 10:18:21 UTC) #45
alshabalin
Fixed ContentSettingBubbleControllerTest and a variety of failing unit_tests. https://codereview.chromium.org/2561673003/diff/160001/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_browsertest.mm File chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_browsertest.mm (left): https://codereview.chromium.org/2561673003/diff/160001/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_browsertest.mm#oldcode24 chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_browsertest.mm:24: namespace ...
3 years, 9 months ago (2017-02-28 10:31:31 UTC) #46
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/2561673003/160001
3 years, 9 months ago (2017-02-28 10:32:18 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/46945) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-02-28 10:34:21 UTC) #51
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/2561673003/200001
3 years, 9 months ago (2017-02-28 15:06:19 UTC) #54
alshabalin
dominickn, Bernhard Bauer could you please take another look? https://codereview.chromium.org/2561673003/diff/220001/chrome/browser/download/download_request_limiter_unittest.cc File chrome/browser/download/download_request_limiter_unittest.cc (right): https://codereview.chromium.org/2561673003/diff/220001/chrome/browser/download/download_request_limiter_unittest.cc#newcode152 chrome/browser/download/download_request_limiter_unittest.cc:152: ...
3 years, 9 months ago (2017-03-01 12:18:23 UTC) #56
dominickn
Thanks for all the work here! https://codereview.chromium.org/2561673003/diff/220001/chrome/browser/download/download_request_limiter_unittest.cc File chrome/browser/download/download_request_limiter_unittest.cc (right): https://codereview.chromium.org/2561673003/diff/220001/chrome/browser/download/download_request_limiter_unittest.cc#newcode213 chrome/browser/download/download_request_limiter_unittest.cc:213: DownloadRequestLimiter::GetContentSettings(contents) Instead of ...
3 years, 9 months ago (2017-03-02 03:32:52 UTC) #57
alshabalin
https://codereview.chromium.org/2561673003/diff/220001/chrome/browser/download/download_request_limiter_unittest.cc File chrome/browser/download/download_request_limiter_unittest.cc (right): https://codereview.chromium.org/2561673003/diff/220001/chrome/browser/download/download_request_limiter_unittest.cc#newcode213 chrome/browser/download/download_request_limiter_unittest.cc:213: DownloadRequestLimiter::GetContentSettings(contents) On 2017/03/02 03:32:52, dominickn wrote: > Instead of ...
3 years, 9 months ago (2017-03-02 09:54:02 UTC) #58
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/2561673003/240001
3 years, 9 months ago (2017-03-02 09:54:30 UTC) #61
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 10:34:23 UTC) #64
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/3db897f00b693287702dc2b88c5e...

Powered by Google App Engine
This is Rietveld 408576698