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

Issue 2171383002: Deprecate the CallbackSubscription in BrowsingDataRemover (Closed)

Created:
4 years, 5 months ago by msramek
Modified:
4 years, 4 months ago
Reviewers:
Mike West
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, markusheintz_, msramek+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Deprecate the CallbackSubscription in BrowsingDataRemover BrowsingDataRemover currently supports two notification systems: 1. BrowsingDataRemover::Observer 2. BrowsingDataRemover::CallbackSubscription Remove #2 in favor of #1. The NotificationDetails class which is returned by #2, and used by tests to determine the parameters of the last call to BrowsingDataRemover, is replaced by a public API of BrowsingDataRemover exposing the same values. The consolidation of notifications will simplify the implementation of task scheduler for removal tasks, as described in https://docs.google.com/document/d/1oIbmZJlq5m5FvHcN7trCpp0h4mtydA0UfZasxEIe3P8/ BUG=630327 Committed: https://crrev.com/00117ff9b264b662930f8e10683fe2a0f7abef3f Cr-Commit-Position: refs/heads/master@{#408378}

Patch Set 1 #

Patch Set 2 : Cannot call methods on deleted object. #

Total comments: 2

Patch Set 3 : Initialize masks to -1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -156 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 4 chunks +9 lines, -34 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 6 chunks +19 lines, -52 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 9 chunks +42 lines, -48 lines 0 comments Download
M chrome/browser/extensions/api/browsing_data/browsing_data_test.cc View 1 2 2 chunks +8 lines, -22 lines 0 comments Download

Messages

Total messages: 24 (16 generated)
msramek
Hi Mike, Please have a look! (Not on Friday evening of course, I'm just publishing ...
4 years, 5 months ago (2016-07-22 18:50:23 UTC) #9
msramek
Friendly ping :)
4 years, 4 months ago (2016-07-28 11:58:12 UTC) #12
Mike West
https://codereview.chromium.org/2171383002/diff/20001/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc File chrome/browser/extensions/api/browsing_data/browsing_data_test.cc (right): https://codereview.chromium.org/2171383002/diff/20001/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc#newcode266 chrome/browser/extensions/api/browsing_data/browsing_data_test.cc:266: EXPECT_EQ(0, GetRemovalMask()); Why did this change?
4 years, 4 months ago (2016-07-28 12:02:22 UTC) #13
msramek
https://codereview.chromium.org/2171383002/diff/20001/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc File chrome/browser/extensions/api/browsing_data/browsing_data_test.cc (right): https://codereview.chromium.org/2171383002/diff/20001/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc#newcode266 chrome/browser/extensions/api/browsing_data/browsing_data_test.cc:266: EXPECT_EQ(0, GetRemovalMask()); On 2016/07/28 12:02:22, Mike West wrote: > ...
4 years, 4 months ago (2016-07-28 12:20:49 UTC) #16
Mike West
On 2016/07/28 at 12:20:49, msramek wrote: > But I guess someone could potentially call Remove() ...
4 years, 4 months ago (2016-07-28 12:32:37 UTC) #17
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/2171383002/40001
4 years, 4 months ago (2016-07-28 12:36:04 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-07-28 12:58:19 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 12:59:49 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/00117ff9b264b662930f8e10683fe2a0f7abef3f
Cr-Commit-Position: refs/heads/master@{#408378}

Powered by Google App Engine
This is Rietveld 408576698