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

Issue 7551008: Strawman proposal for chrome.experimental.clear.* (Closed)

Created:
9 years, 4 months ago by Mike West
Modified:
7 years, 5 months ago
CC:
chromium-reviews, Erik does not do reviews, Paweł Hajdan Jr., mihaip+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Initial implementation of `chrome.clear.*` extension API. Opens up the `BrowsingDataRemover::Remove()` functionality to extensions: initial implementation, so it's sitting behind the experimental flag to work out kinks in the API/code. BUG=83530, 54853 TEST=browser_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98429

Patch Set 1 : Adding shortcut methods. #

Patch Set 2 : One at a time tests. #

Total comments: 22

Patch Set 3 : Bernhard's feedback + rebase + docs. #

Total comments: 5

Patch Set 4 : Nit. #

Patch Set 5 : Rebasing. #

Total comments: 12

Patch Set 6 : Mihai's feedback. #

Patch Set 7 : Fixing ExtensionPermissionSetTest #

Total comments: 2

Patch Set 8 : Mihai's feedback II. #

Patch Set 9 : new docs, not running tryjobs again. #

Total comments: 8

Patch Set 10 : Rebasing, tryjobbing, committing. #

Patch Set 11 : License presubmit check. :( #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3105 lines, -3 lines) Patch
M chrome/browser/browsing_data_remover.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data_remover.cc View 1 2 5 2 chunks +8 lines, -3 lines 0 comments Download
A chrome/browser/extensions/extension_clear_api.h View 1 2 3 4 5 6 7 1 chunk +129 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_clear_api.cc View 1 2 3 4 5 6 7 1 chunk +154 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_clear_api_constants.h View 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_clear_api_constants.cc View 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_clear_apitest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 7 8 9 1 chunk +176 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/experimental.html View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/docs/experimental.clear.html View 1 2 3 4 5 6 7 1 chunk +2416 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/renderer/resources/renderer_extension_bindings.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/clear/api/background.html View 1 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/clear/api/manifest.json View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/clear/one_at_a_time/background.html View 1 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/clear/one_at_a_time/manifest.json View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Mike West
Hi Jochen, Mihai! This is a strawman implementation of browsing data remover APIs based on ...
9 years, 4 months ago (2011-08-12 13:30:48 UTC) #1
Mike West
Bernhard expressed interest in taking a look at this as well. Adding him to the ...
9 years, 4 months ago (2011-08-16 08:10:51 UTC) #2
Bernhard Bauer
http://codereview.chromium.org/7551008/diff/7001/chrome/browser/extensions/extension_clear_api.cc File chrome/browser/extensions/extension_clear_api.cc (right): http://codereview.chromium.org/7551008/diff/7001/chrome/browser/extensions/extension_clear_api.cc#newcode26 chrome/browser/extensions/extension_clear_api.cc:26: bool DataRemovalRequested(base::DictionaryValue* dict, std::string key) { Nit: namespaces aren't ...
9 years, 4 months ago (2011-08-16 09:49:36 UTC) #3
Mike West
Thanks Bernhard. I've addressed your feedback, rebased, and regenerated the docs. Take another look at ...
9 years, 4 months ago (2011-08-16 11:05:56 UTC) #4
Bernhard Bauer
http://codereview.chromium.org/7551008/diff/13001/chrome/browser/extensions/extension_clear_api.cc File chrome/browser/extensions/extension_clear_api.cc (right): http://codereview.chromium.org/7551008/diff/13001/chrome/browser/extensions/extension_clear_api.cc#newcode42 chrome/browser/extensions/extension_clear_api.cc:42: Release(); // Balanced in RunImpl. When clearing browsing data ...
9 years, 4 months ago (2011-08-16 11:29:25 UTC) #5
Mike West
http://codereview.chromium.org/7551008/diff/13001/chrome/browser/extensions/extension_clear_api.cc File chrome/browser/extensions/extension_clear_api.cc (right): http://codereview.chromium.org/7551008/diff/13001/chrome/browser/extensions/extension_clear_api.cc#newcode42 chrome/browser/extensions/extension_clear_api.cc:42: Release(); // Balanced in RunImpl. On 2011/08/16 11:29:25, Bernhard ...
9 years, 4 months ago (2011-08-16 12:13:41 UTC) #6
jochen (gone - plz use gerrit)
http://codereview.chromium.org/7551008/diff/13001/chrome/browser/extensions/extension_clear_api.cc File chrome/browser/extensions/extension_clear_api.cc (right): http://codereview.chromium.org/7551008/diff/13001/chrome/browser/extensions/extension_clear_api.cc#newcode42 chrome/browser/extensions/extension_clear_api.cc:42: Release(); // Balanced in RunImpl. On 2011/08/16 12:13:42, Mike ...
9 years, 4 months ago (2011-08-16 15:11:44 UTC) #7
Mike West
@Mihai: Friendly ping. :) I stuck you on as a review because you were the ...
9 years, 4 months ago (2011-08-19 09:49:17 UTC) #8
Mihai Parparita -not on Chrome
http://codereview.chromium.org/7551008/diff/20001/chrome/browser/extensions/extension_clear_api.cc File chrome/browser/extensions/extension_clear_api.cc (right): http://codereview.chromium.org/7551008/diff/20001/chrome/browser/extensions/extension_clear_api.cc#newcode77 chrome/browser/extensions/extension_clear_api.cc:77: // "Cookies" are cookies + site data + LSO. ...
9 years, 4 months ago (2011-08-23 23:24:13 UTC) #9
Mike West
Thanks. Callback boolean is the only outstanding issue; the problem is quite simply that the ...
9 years, 4 months ago (2011-08-24 09:10:33 UTC) #10
Mihai Parparita -not on Chrome
On Wed, Aug 24, 2011 at 2:10 AM, <mkwst@chromium.org> wrote: > Thanks. Callback boolean is ...
9 years, 4 months ago (2011-08-24 17:15:12 UTC) #11
Mihai Parparita -not on Chrome
http://codereview.chromium.org/7551008/diff/28007/chrome/browser/extensions/extension_clear_api.cc File chrome/browser/extensions/extension_clear_api.cc (right): http://codereview.chromium.org/7551008/diff/28007/chrome/browser/extensions/extension_clear_api.cc#newcode91 chrome/browser/extensions/extension_clear_api.cc:91: int ClearBrowsingDataFunction::ParseRemovalMask( Nit: this can actually be static in ...
9 years, 4 months ago (2011-08-24 17:19:59 UTC) #12
Mike West
On 2011/08/24 17:15:12, Mihai Parparita wrote: > Even if it's not possible or easy to ...
9 years, 4 months ago (2011-08-24 19:19:54 UTC) #13
Mihai Parparita -not on Chrome
On Wed, Aug 24, 2011 at 12:19 PM, <mkwst@chromium.org> wrote: > If you feel strongly ...
9 years, 4 months ago (2011-08-24 19:38:09 UTC) #14
Mike West
Thanks Mihai, I appreciate the explanation. I've dropped the boolean parameter from the various callbacks ...
9 years, 4 months ago (2011-08-25 09:27:54 UTC) #15
kathyw
I started out nitpicking descriptions. (I like your writing. It's nice and it flows well, ...
9 years, 4 months ago (2011-08-25 18:33:14 UTC) #16
Mike West
I'll address my writings lack of clarity (boringness) once I can log back into my ...
9 years, 4 months ago (2011-08-25 18:52:35 UTC) #17
Kathy Walrath
> Anyway; I'd really like to land this in time for M15 so I can ...
9 years, 4 months ago (2011-08-25 18:58:11 UTC) #18
Mihai Parparita -not on Chrome
LGTM (code-wise)
9 years, 4 months ago (2011-08-26 06:11:19 UTC) #19
commit-bot: I haz the power
9 years, 4 months ago (2011-08-26 16:37:21 UTC) #20
Change committed as 98429

Powered by Google App Engine
This is Rietveld 408576698