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

Issue 8008012: chrome.clear: Increasing granularity of public API (Closed)

Created:
9 years, 3 months ago by Mike West
Modified:
9 years ago
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

chrome.clear: Increasing granularity of public API http://codereview.chromium.org/7717023 added more granular options to BrowsingDataRemover. This CL exposes those options to the chrome.clear extension API. Among other things, this means that chrome.clear.cookies() will _only_ clear cookies, not cookies and site data. At the moment, clearing any quota managed data type will clear them all. That is being addressed in http://codereview.chromium.org/7839029/ but is independent from changing the public interface. BUG=94334 TEST=browser_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114615

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rebasing after 2 months (ugh). Extension test. Fiddling. #

Total comments: 9

Patch Set 3 : Renaming lsoData to pluginData. #

Patch Set 4 : Dropping strings, moving to milliseconds since epoch. #

Total comments: 4

Patch Set 5 : RunFunctionWithoutResult #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2155 lines, -362 lines) Patch
M chrome/browser/browsing_data_remover.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_clear_api.h View 1 2 3 5 chunks +93 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_clear_api.cc View 1 2 3 7 chunks +78 lines, -38 lines 0 comments Download
M chrome/browser/extensions/extension_clear_api_constants.h View 1 1 chunk +0 lines, -33 lines 0 comments Download
M chrome/browser/extensions/extension_clear_api_constants.cc View 1 1 chunk +0 lines, -27 lines 0 comments Download
D chrome/browser/extensions/extension_clear_apitest.cc View 1 1 chunk +0 lines, -23 lines 0 comments Download
A chrome/browser/extensions/extension_clear_test.cc View 1 2 3 4 1 chunk +100 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_test_utils.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 11 chunks +158 lines, -21 lines 0 comments Download
M chrome/common/extensions/docs/experimental.clear.html View 1 32 chunks +1710 lines, -90 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 1 chunk +6 lines, -0 lines 0 comments Download
D chrome/test/data/extensions/api_test/clear/api/background.html View 1 1 chunk +0 lines, -6 lines 0 comments Download
D chrome/test/data/extensions/api_test/clear/api/background.js View 1 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/test/data/extensions/api_test/clear/api/manifest.json View 1 1 chunk +0 lines, -11 lines 0 comments Download
D chrome/test/data/extensions/api_test/clear/one_at_a_time/background.html View 1 1 chunk +0 lines, -6 lines 0 comments Download
D chrome/test/data/extensions/api_test/clear/one_at_a_time/background.js View 1 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/test/data/extensions/api_test/clear/one_at_a_time/manifest.json View 1 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Mike West
Hello Jochen and Bernhard! When you have a few free moments, please take a look ...
9 years, 3 months ago (2011-09-23 11:28:38 UTC) #1
Bernhard Bauer
LGTM.
9 years, 3 months ago (2011-09-23 12:09:06 UTC) #2
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/8008012/1
9 years, 3 months ago (2011-09-23 16:34:11 UTC) #3
commit-bot: I haz the power
Presubmit check for 8008012-1 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 3 months ago (2011-09-23 16:34:18 UTC) #4
Mike West
Fair enough. :) Mihai, would you mind taking a look at the extension to the ...
9 years, 3 months ago (2011-09-23 16:52:17 UTC) #5
Mike West
Friendly ping, Mihai. :) If you don't have time, can you find someone else on ...
9 years, 2 months ago (2011-10-10 18:34:08 UTC) #6
Aaron Boodman
http://codereview.chromium.org/8008012/diff/1/chrome/browser/extensions/extension_clear_api_constants.h File chrome/browser/extensions/extension_clear_api_constants.h (right): http://codereview.chromium.org/8008012/diff/1/chrome/browser/extensions/extension_clear_api_constants.h#newcode7 chrome/browser/extensions/extension_clear_api_constants.h:7: #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CLEAR_API_CONSTANTS_H_ We don't really need the separate 'constants' ...
9 years, 2 months ago (2011-10-12 08:20:32 UTC) #7
Mihai Parparita -not on Chrome
On Mon, Oct 10, 2011 at 11:34 AM, <mkwst@chromium.org> wrote: > Friendly ping, Mihai. :) ...
9 years, 2 months ago (2011-10-13 02:01:33 UTC) #8
Aaron Boodman
http://codereview.chromium.org/8008012/diff/1/chrome/browser/extensions/extension_clear_api.cc File chrome/browser/extensions/extension_clear_api.cc (right): http://codereview.chromium.org/8008012/diff/1/chrome/browser/extensions/extension_clear_api.cc#newcode137 chrome/browser/extensions/extension_clear_api.cc:137: return BrowsingDataRemover::REMOVE_APPCACHE; Idea: Did you know that you can ...
9 years, 2 months ago (2011-10-13 02:19:18 UTC) #9
Mike West
Reviving this patch from the dead after a long stretch of working on everything else ...
9 years ago (2011-12-13 11:27:23 UTC) #10
jochen (gone - plz use gerrit)
http://codereview.chromium.org/8008012/diff/15001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): http://codereview.chromium.org/8008012/diff/15001/chrome/chrome_tests.gypi#newcode2516 chrome/chrome_tests.gypi:2516: 'browser/extensions/extension_clear_test.cc', it's a browsertest, so it should be called ...
9 years ago (2011-12-13 13:26:18 UTC) #11
Mike West
Thanks Jochen, responses inline. http://codereview.chromium.org/8008012/diff/15001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): http://codereview.chromium.org/8008012/diff/15001/chrome/chrome_tests.gypi#newcode2516 chrome/chrome_tests.gypi:2516: 'browser/extensions/extension_clear_test.cc', On 2011/12/13 13:26:18, jochen ...
9 years ago (2011-12-13 15:28:47 UTC) #12
jochen (gone - plz use gerrit)
browser data remover bits look good http://codereview.chromium.org/8008012/diff/15001/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/8008012/diff/15001/chrome/common/extensions/api/extension_api.json#newcode8751 chrome/common/extensions/api/extension_api.json:8751: "webSQL": { On ...
9 years ago (2011-12-14 19:30:57 UTC) #13
Aaron Boodman
http://codereview.chromium.org/8008012/diff/17004/chrome/browser/extensions/extension_function_test_utils.cc File chrome/browser/extensions/extension_function_test_utils.cc (right): http://codereview.chromium.org/8008012/diff/17004/chrome/browser/extensions/extension_function_test_utils.cc#newcode142 chrome/browser/extensions/extension_function_test_utils.cc:142: return function->GetResultValue()->DeepCopy(); Was the only reason RunFunctionWithoutResult needed because ...
9 years ago (2011-12-14 22:23:45 UTC) #14
Mike West
http://codereview.chromium.org/8008012/diff/17004/chrome/browser/extensions/extension_function_test_utils.cc File chrome/browser/extensions/extension_function_test_utils.cc (right): http://codereview.chromium.org/8008012/diff/17004/chrome/browser/extensions/extension_function_test_utils.cc#newcode142 chrome/browser/extensions/extension_function_test_utils.cc:142: return function->GetResultValue()->DeepCopy(); On 2011/12/14 22:23:46, Aaron Boodman wrote: > ...
9 years ago (2011-12-14 22:41:58 UTC) #15
Aaron Boodman
http://codereview.chromium.org/8008012/diff/17004/chrome/browser/extensions/extension_function_test_utils.cc File chrome/browser/extensions/extension_function_test_utils.cc (right): http://codereview.chromium.org/8008012/diff/17004/chrome/browser/extensions/extension_function_test_utils.cc#newcode142 chrome/browser/extensions/extension_function_test_utils.cc:142: return function->GetResultValue()->DeepCopy(); On 2011/12/14 22:41:59, Mike West (chromium) wrote: ...
9 years ago (2011-12-14 22:44:34 UTC) #16
Mike West
Is this more or less what you had in mind? http://codereview.chromium.org/8008012/diff/17004/chrome/browser/extensions/extension_function_test_utils.cc File chrome/browser/extensions/extension_function_test_utils.cc (right): http://codereview.chromium.org/8008012/diff/17004/chrome/browser/extensions/extension_function_test_utils.cc#newcode142 ...
9 years ago (2011-12-14 22:59:03 UTC) #17
Aaron Boodman
On 2011/12/14 22:59:03, Mike West (chromium) wrote: > Is this more or less what you ...
9 years ago (2011-12-14 23:36:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/8008012/27002
9 years ago (2011-12-15 08:44:53 UTC) #19
commit-bot: I haz the power
Change committed as 114615
9 years ago (2011-12-15 09:55:31 UTC) #20
Mike West
9 years ago (2011-12-15 11:02:33 UTC) #21
On 2011/12/15 09:55:31, I haz the power (commit-bot) wrote:
> Change committed as 114615

Bah. Reverted, as I neglected to remove some files from chrome_browser.gypi

Trying again in http://codereview.chromium.org/8952014/

Powered by Google App Engine
This is Rietveld 408576698