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

Issue 2234133003: [HBD] Call PurgePluginListCache() whenever plugin content settings change (Closed)

Created:
4 years, 4 months ago by trizzofo
Modified:
4 years, 4 months ago
CC:
chromium-reviews, jam, Lei Zhang
Base URL:
https://chromium.googlesource.com/chromium/src.git@hbd_exceptions
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[HBD] Call PurgePluginListCache() whenever plugin content settings change Call PluginService::PurgePluginListCache() whenever plugin content settings change. This is made to ensure that Page's PluginData instance is updated for the next navigation. BUG=626728 Committed: https://crrev.com/3e5d33572d42429457897450228f773d30e7af17 Cr-Commit-Position: refs/heads/master@{#413856}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use HCSMObserver to observe for content settings changes #

Total comments: 22

Patch Set 3 : Fix style nits #

Total comments: 4

Patch Set 4 : Changes per bauerb@'s comments #

Total comments: 4

Patch Set 5 : Rebase #

Patch Set 6 : Changes per Lei Zhang's comments #

Patch Set 7 : Changes per tommycli@'s comments #

Patch Set 8 : Add endline after namespace #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase and tracked patchset change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -33 lines) Patch
M chrome/browser/plugins/chrome_plugin_service_filter.h View 1 2 3 4 5 6 7 8 9 5 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/plugins/chrome_plugin_service_filter.cc View 1 2 3 4 5 6 7 8 5 chunks +63 lines, -18 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 35 (18 generated)
trizzofo
bauerb, ptal. We are now trying to purge the plugin list whenever the settings change. ...
4 years, 4 months ago (2016-08-11 01:20:02 UTC) #3
Bernhard Bauer
On 2016/08/11 01:20:02, trizzofo wrote: > bauerb, ptal. > We are now trying to purge ...
4 years, 4 months ago (2016-08-11 10:31:53 UTC) #4
tommycli
It basically looks good to me. I have a variety of coding style nits. See ...
4 years, 4 months ago (2016-08-11 23:31:36 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/2234133003/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2234133003/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode81 chrome/browser/plugins/chrome_plugin_service_filter.cc:81: resource_context_map_[context].host_content_settings_map->RemoveObserver( You could put this into the destructor of ...
4 years, 4 months ago (2016-08-12 09:35:55 UTC) #6
tommycli
https://codereview.chromium.org/2234133003/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.h File chrome/browser/plugins/chrome_plugin_service_filter.h (right): https://codereview.chromium.org/2234133003/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.h#newcode107 chrome/browser/plugins/chrome_plugin_service_filter.h:107: HCSMObserver hcsm_observer; On 2016/08/12 09:35:55, Bernhard Bauer wrote: > ...
4 years, 4 months ago (2016-08-12 18:22:43 UTC) #7
trizzofo
https://codereview.chromium.org/2234133003/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2234133003/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode8 chrome/browser/plugins/chrome_plugin_service_filter.cc:8: #include <string> On 2016/08/11 23:31:36, tommycli wrote: > Since ...
4 years, 4 months ago (2016-08-13 02:00:37 UTC) #8
Bernhard Bauer
lgtm https://codereview.chromium.org/2234133003/diff/40001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2234133003/diff/40001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode130 chrome/browser/plugins/chrome_plugin_service_filter.cc:130: resource_context_map_[context] = std::unique_ptr<ContextInfo>( You can use base::MakeUnique<>() for ...
4 years, 4 months ago (2016-08-13 11:57:25 UTC) #9
trizzofo
Lei Zhang, ptal at profile files. https://codereview.chromium.org/2234133003/diff/40001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2234133003/diff/40001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode130 chrome/browser/plugins/chrome_plugin_service_filter.cc:130: resource_context_map_[context] = std::unique_ptr<ContextInfo>( ...
4 years, 4 months ago (2016-08-15 17:53:43 UTC) #11
Lei Zhang
https://codereview.chromium.org/2234133003/diff/50001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/2234133003/diff/50001/chrome/browser/profiles/profile_impl.cc#newcode627 chrome/browser/profiles/profile_impl.cc:627: ChromePluginServiceFilter::GetInstance()->RegisterResourceContext( Can we just pass in |this|, and have ...
4 years, 4 months ago (2016-08-15 18:37:56 UTC) #12
tommycli
one more suggestion Tomas: and yeah I like thestig's suggestion. https://codereview.chromium.org/2234133003/diff/50001/chrome/browser/plugins/chrome_plugin_service_filter.h File chrome/browser/plugins/chrome_plugin_service_filter.h (right): https://codereview.chromium.org/2234133003/diff/50001/chrome/browser/plugins/chrome_plugin_service_filter.h#newcode83 ...
4 years, 4 months ago (2016-08-15 19:25:11 UTC) #18
trizzofo
https://codereview.chromium.org/2234133003/diff/50001/chrome/browser/plugins/chrome_plugin_service_filter.h File chrome/browser/plugins/chrome_plugin_service_filter.h (right): https://codereview.chromium.org/2234133003/diff/50001/chrome/browser/plugins/chrome_plugin_service_filter.h#newcode83 chrome/browser/plugins/chrome_plugin_service_filter.h:83: class ProfileContentSettingObserver; On 2016/08/15 19:25:11, tommycli wrote: > I ...
4 years, 4 months ago (2016-08-15 20:35:58 UTC) #19
Lei Zhang
lgtm
4 years, 4 months ago (2016-08-15 20:48:28 UTC) #22
tommycli
thank you tomas, lgtm
4 years, 4 months ago (2016-08-15 20:52:38 UTC) #23
trizzofo
4 years, 4 months ago (2016-08-15 21:21:31 UTC) #24
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/2234133003/230001
4 years, 4 months ago (2016-08-23 21:34:04 UTC) #31
commit-bot: I haz the power
Committed patchset #10 (id:230001)
4 years, 4 months ago (2016-08-23 22:14:58 UTC) #33
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 22:19:55 UTC) #35
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3e5d33572d42429457897450228f773d30e7af17
Cr-Commit-Position: refs/heads/master@{#413856}

Powered by Google App Engine
This is Rietveld 408576698