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

Issue 6148006: Update our use of the NPAPI ClearSiteData API. (Closed)

Created:
9 years, 11 months ago by Bernhard Bauer
Modified:
9 years, 7 months ago
Reviewers:
stuartmorgan, jam
CC:
chromium-reviews, jam, darin-cc_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Update our use of the NPAPI ClearSiteData API. BUG=58235 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71039

Patch Set 1 #

Patch Set 2 : oops #

Total comments: 8

Patch Set 3 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -31 lines) Patch
M chrome/browser/plugin_data_remover.cc View 1 2 4 chunks +13 lines, -12 lines 0 comments Download
M chrome/common/plugin_messages_internal.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/plugin/plugin_channel.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/plugin/plugin_channel.cc View 3 chunks +4 lines, -7 lines 0 comments Download
M webkit/plugins/npapi/plugin_instance.h View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/plugins/npapi/plugin_instance.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M webkit/plugins/npapi/plugin_lib.h View 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/plugins/npapi/plugin_lib.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bernhard Bauer
please review.
9 years, 11 months ago (2011-01-10 17:41:52 UTC) #1
stuartmorgan
Drive-by: http://codereview.chromium.org/6148006/diff/3001/chrome/browser/plugin_data_remover.cc File chrome/browser/plugin_data_remover.cc (left): http://codereview.chromium.org/6148006/diff/3001/chrome/browser/plugin_data_remover.cc#oldcode23 chrome/browser/plugin_data_remover.cc:23: // implementing the API. This approach isn't going ...
9 years, 11 months ago (2011-01-10 17:53:45 UTC) #2
Bernhard Bauer
On 2011/01/10 17:53:45, stuartmorgan wrote: > Drive-by: > > http://codereview.chromium.org/6148006/diff/3001/chrome/browser/plugin_data_remover.cc > File chrome/browser/plugin_data_remover.cc (left): > ...
9 years, 11 months ago (2011-01-10 17:57:31 UTC) #3
jam
lgtm http://codereview.chromium.org/6148006/diff/3001/chrome/browser/plugin_data_remover.cc File chrome/browser/plugin_data_remover.cc (left): http://codereview.chromium.org/6148006/diff/3001/chrome/browser/plugin_data_remover.cc#oldcode23 chrome/browser/plugin_data_remover.cc:23: // implementing the API. On 2011/01/10 17:53:45, stuartmorgan ...
9 years, 11 months ago (2011-01-10 18:09:36 UTC) #4
stuartmorgan
On 2011/01/10 17:57:31, Bernhard Bauer wrote: > From what I've gathered, the number of plug-ins ...
9 years, 11 months ago (2011-01-10 18:11:11 UTC) #5
Bernhard Bauer
9 years, 11 months ago (2011-01-11 12:43:34 UTC) #6
On 2011/01/10 18:11:11, stuartmorgan wrote:
> On 2011/01/10 17:57:31, Bernhard Bauer wrote:
> > From what I've gathered, the number of plug-ins implementing this in the
> > foreseeable future will be rather small.
> 
> Post-10, could we have each plugin report support back to the browser process
> when it is initialized, and we could keep a persistent cache of
> plugin+version->support, then when building the UI check the plugin and
version
> against that list (treating the stored version as a minimum version)? Then it
> would work if the user has ever loaded that plugin, which is probably a safe
bet
> if they are trying to clear information it has stored.

Nice! Although with a clean profile we'd still have to start each plugin at
least once to find out whether it supports deleting data or not.

http://codereview.chromium.org/6148006/diff/3001/chrome/browser/plugin_data_r...
File chrome/browser/plugin_data_remover.cc (right):

http://codereview.chromium.org/6148006/diff/3001/chrome/browser/plugin_data_r...
chrome/browser/plugin_data_remover.cc:154: GURL(), kFlashMimeType,
allow_wildcard, &plugin, &mime_type)) {
On 2011/01/10 18:09:36, John Abd-El-Malek wrote:
> nit: i think you need 4 spaces before GURL()

Right, done.

http://codereview.chromium.org/6148006/diff/3001/webkit/plugins/npapi/plugin_...
File webkit/plugins/npapi/plugin_lib.cc (right):

http://codereview.chromium.org/6148006/diff/3001/webkit/plugins/npapi/plugin_...
webkit/plugins/npapi/plugin_lib.cc:144: if (plugin_funcs_.clearsitedata != 0) {
On 2011/01/10 18:09:36, John Abd-El-Malek wrote:
> nit: the "!= 0" and the brace brackets aren't necessary, here and below

Done.

http://codereview.chromium.org/6148006/diff/3001/webkit/plugins/npapi/plugin_...
File webkit/plugins/npapi/plugin_lib.h (right):

http://codereview.chromium.org/6148006/diff/3001/webkit/plugins/npapi/plugin_...
webkit/plugins/npapi/plugin_lib.h:76: // NPAPI method to clear locally stored
data (LSO's or "Flash cookies").
On 2011/01/10 18:09:36, John Abd-El-Malek wrote:
> nit: since this is an NPAPI function, probably shouldn't make the comment
> specific to Flash?

Hence the quotation marks around it. I wanted to use the more widely known
expression, even if it's slightly incorrect.

Note that I'm committing this version without changing the comment; if you feel
strongly about it, I'll do a followup commit.

Powered by Google App Engine
This is Rietveld 408576698