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

Issue 154053004: Introducing the activityLogPrivate.deleteActivities() API call. (Closed)

Created:
6 years, 10 months ago by pmarch
Modified:
6 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Introducing the activityLogPrivate.deleteActivities() API call. The call takes an array of activity IDs (each activity ID is a string) and deletes the matching activities form the Activity Log database. BUG=330210 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251311

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+528 lines, -3 lines) Patch
M chrome/browser/extensions/activity_log/activity_log.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_policy.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/counting_policy.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/counting_policy.cc View 1 2 2 chunks +42 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/counting_policy_unittest.cc View 1 3 chunks +148 lines, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy.cc View 1 2 3 2 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc View 1 3 chunks +188 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/activity_log_private/activity_log_private_api.h View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/activity_log_private.json View 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/activity_log_private/test/test.js View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
pmarch
Michael, Adrienne, please, review this CL.
6 years, 10 months ago (2014-02-11 02:18:36 UTC) #1
mvrable
https://codereview.chromium.org/154053004/diff/1/chrome/browser/extensions/activity_log/counting_policy.cc File chrome/browser/extensions/activity_log/counting_policy.cc (right): https://codereview.chromium.org/154053004/diff/1/chrome/browser/extensions/activity_log/counting_policy.cc#newcode521 chrome/browser/extensions/activity_log/counting_policy.cc:521: void CountingPolicy::DoRemoveActions(const std::vector<int64>& action_ids) { Have you done any ...
6 years, 10 months ago (2014-02-11 17:44:34 UTC) #2
pmarch
https://codereview.chromium.org/154053004/diff/1/chrome/browser/extensions/activity_log/counting_policy.cc File chrome/browser/extensions/activity_log/counting_policy.cc (right): https://codereview.chromium.org/154053004/diff/1/chrome/browser/extensions/activity_log/counting_policy.cc#newcode521 chrome/browser/extensions/activity_log/counting_policy.cc:521: void CountingPolicy::DoRemoveActions(const std::vector<int64>& action_ids) { On 2014/02/11 17:44:35, mvrable ...
6 years, 10 months ago (2014-02-12 18:19:03 UTC) #3
mvrable
lgtm A couple of minor suggestions, but I'm happy even without these. https://codereview.chromium.org/154053004/diff/80001/chrome/browser/extensions/activity_log/counting_policy.cc File chrome/browser/extensions/activity_log/counting_policy.cc ...
6 years, 10 months ago (2014-02-12 18:38:54 UTC) #4
pmarch
https://codereview.chromium.org/154053004/diff/80001/chrome/browser/extensions/activity_log/counting_policy.cc File chrome/browser/extensions/activity_log/counting_policy.cc (right): https://codereview.chromium.org/154053004/diff/80001/chrome/browser/extensions/activity_log/counting_policy.cc#newcode539 chrome/browser/extensions/activity_log/counting_policy.cc:539: std::string query_str = On 2014/02/12 18:38:55, mvrable wrote: > ...
6 years, 10 months ago (2014-02-12 19:03:23 UTC) #5
pmarch
Hi Ben Could you please approve changes to the following files: chrome/browser/extensions/extension_function_histogram_value.h chrome/common/extensions/api/activity_log_private.json Thanks
6 years, 10 months ago (2014-02-12 19:04:36 UTC) #6
not at google - send to devlin
I don't know what the use case. Rubberstamp lgtm but see comment. https://codereview.chromium.org/154053004/diff/320001/chrome/common/extensions/api/activity_log_private.json File chrome/common/extensions/api/activity_log_private.json ...
6 years, 10 months ago (2014-02-12 20:28:27 UTC) #7
pmarch
https://codereview.chromium.org/154053004/diff/320001/chrome/common/extensions/api/activity_log_private.json File chrome/common/extensions/api/activity_log_private.json (right): https://codereview.chromium.org/154053004/diff/320001/chrome/common/extensions/api/activity_log_private.json#newcode83 chrome/common/extensions/api/activity_log_private.json:83: "name": "deleteActivities", On 2014/02/12 20:28:27, kalman wrote: > I ...
6 years, 10 months ago (2014-02-12 20:36:36 UTC) #8
felt
On 2014/02/12 20:36:36, pmarch wrote: > https://codereview.chromium.org/154053004/diff/320001/chrome/common/extensions/api/activity_log_private.json > File chrome/common/extensions/api/activity_log_private.json (right): > > https://codereview.chromium.org/154053004/diff/320001/chrome/common/extensions/api/activity_log_private.json#newcode83 > ...
6 years, 10 months ago (2014-02-12 20:43:38 UTC) #9
felt
https://codereview.chromium.org/154053004/diff/320001/chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc File chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc (right): https://codereview.chromium.org/154053004/diff/320001/chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc#newcode186 chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc:186: if (base::StringToInt64(params->activity_ids[i], &value)) should you be throwing an exception ...
6 years, 10 months ago (2014-02-13 00:58:55 UTC) #10
felt
another thing, can you invoke this from the browser test? so that we get an ...
6 years, 10 months ago (2014-02-13 01:00:57 UTC) #11
pmarch
On 2014/02/13 00:58:55, felt wrote: > https://codereview.chromium.org/154053004/diff/320001/chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc > File > chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc > (right): > > ...
6 years, 10 months ago (2014-02-13 18:31:55 UTC) #12
pmarch
On 2014/02/13 01:00:57, felt wrote: > another thing, can you invoke this from the browser ...
6 years, 10 months ago (2014-02-13 18:32:14 UTC) #13
felt
lgtm
6 years, 10 months ago (2014-02-13 18:53:24 UTC) #14
pmarch
The CQ bit was checked by pmarch@chromium.org
6 years, 10 months ago (2014-02-13 20:25:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/154053004/580001
6 years, 10 months ago (2014-02-13 20:28:19 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 20:52:47 UTC) #17
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=50169
6 years, 10 months ago (2014-02-13 20:52:47 UTC) #18
pmarch
The CQ bit was checked by pmarch@chromium.org
6 years, 10 months ago (2014-02-13 23:21:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/154053004/580001
6 years, 10 months ago (2014-02-13 23:23:16 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 00:40:51 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=263953
6 years, 10 months ago (2014-02-14 00:40:52 UTC) #22
pmarch
The CQ bit was checked by pmarch@chromium.org
6 years, 10 months ago (2014-02-14 02:34:14 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/154053004/580001
6 years, 10 months ago (2014-02-14 02:35:26 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 05:59:59 UTC) #25
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=202024
6 years, 10 months ago (2014-02-14 05:59:59 UTC) #26
pmarch
The CQ bit was checked by pmarch@chromium.org
6 years, 10 months ago (2014-02-14 12:49:05 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/154053004/580001
6 years, 10 months ago (2014-02-14 12:49:59 UTC) #28
commit-bot: I haz the power
Change committed as 251311
6 years, 10 months ago (2014-02-14 14:48:02 UTC) #29
pmarch
6 years, 10 months ago (2014-02-14 23:07:02 UTC) #30
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/167883002/ by pmarch@chromium.org.

The reason for reverting is: CountingPolicyTest.RemoveActions fails on try jobs.

https://code.google.com/p/chromium/issues/detail?id=344042.

Powered by Google App Engine
This is Rietveld 408576698