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

Issue 2745313004: Remove all ReadingList entries on managed account signout. (Closed)

Created:
3 years, 9 months ago by Olivier
Modified:
3 years, 9 months ago
Reviewers:
jif, sdefresne, msarda
CC:
chromium-reviews, msramek+watch_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, tfarina, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, stkhapugin, markusheintz_, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove all ReadingList entries on managed account signout. Clearing happens after the actual signout, so only local data is deleted. Also interrupt current distillation on signout as profile may change. BUG=699590 Review-Url: https://codereview.chromium.org/2745313004 Cr-Commit-Position: refs/heads/master@{#458377} Committed: https://chromium.googlesource.com/chromium/src/+/85c6bf63ddea1f0a18f2404090acb96f67369ca2

Patch Set 1 : NOT READY #

Patch Set 2 : cleaning #

Patch Set 3 : done #

Patch Set 4 : rebase #

Patch Set 5 : comment #

Total comments: 8

Patch Set 6 : feedback #

Total comments: 14

Patch Set 7 : msarda feedback #

Patch Set 8 : oncecallback #

Total comments: 8

Patch Set 9 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -2 lines) Patch
M components/reading_list/ios/favicon_web_state_dispatcher.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/reading_list/ios/reading_list_model.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/reading_list/ios/reading_list_model_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/reading_list/ios/reading_list_model_impl.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/BUILD.gn View 2 chunks +14 lines, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -1 line 0 comments Download
M ios/chrome/browser/reading_list/reading_list_distiller_page_factory.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_distiller_page_factory.mm View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
A ios/chrome/browser/reading_list/reading_list_remover_helper.h View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download
A ios/chrome/browser/reading_list/reading_list_remover_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +62 lines, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/url_downloader.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/url_downloader.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ios/chrome/browser/signin/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/signin/browser_state_data_remover.h View 2 chunks +9 lines, -0 lines 0 comments Download
M ios/chrome/browser/signin/browser_state_data_remover.mm View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 22 (7 generated)
Olivier
3 years, 9 months ago (2017-03-14 12:52:02 UTC) #3
jif
https://codereview.chromium.org/2745313004/diff/80001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc File ios/chrome/browser/reading_list/reading_list_remover_helper.cc (right): https://codereview.chromium.org/2745313004/diff/80001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc#newcode17 ios/chrome/browser/reading_list/reading_list_remover_helper.cc:17: : ReadingListModelObserver(), completion_(nullptr) { Default constructor of base::Callback already ...
3 years, 9 months ago (2017-03-14 15:38:43 UTC) #4
Olivier
Thanks https://codereview.chromium.org/2745313004/diff/80001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc File ios/chrome/browser/reading_list/reading_list_remover_helper.cc (right): https://codereview.chromium.org/2745313004/diff/80001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc#newcode17 ios/chrome/browser/reading_list/reading_list_remover_helper.cc:17: : ReadingListModelObserver(), completion_(nullptr) { On 2017/03/14 15:38:43, jif ...
3 years, 9 months ago (2017-03-14 17:56:20 UTC) #5
Olivier
3 years, 9 months ago (2017-03-14 17:56:44 UTC) #7
jif
lgtm
3 years, 9 months ago (2017-03-14 18:05:13 UTC) #8
msarda
Looks good overall. Some comments and nits. https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc File ios/chrome/browser/reading_list/reading_list_remover_helper.cc (right): https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc#newcode33 ios/chrome/browser/reading_list/reading_list_remover_helper.cc:33: completion_.Run(model_cleared); How ...
3 years, 9 months ago (2017-03-14 18:46:06 UTC) #9
jif
https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc File ios/chrome/browser/reading_list/reading_list_remover_helper.cc (right): https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc#newcode33 ios/chrome/browser/reading_list/reading_list_remover_helper.cc:33: completion_.Run(model_cleared); On 2017/03/14 18:46:05, msarda wrote: > How about ...
3 years, 9 months ago (2017-03-14 19:00:22 UTC) #10
Olivier
https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc File ios/chrome/browser/reading_list/reading_list_remover_helper.cc (right): https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.cc#newcode36 ios/chrome/browser/reading_list/reading_list_remover_helper.cc:36: reading_list_model_ = nullptr; On 2017/03/14 18:46:06, msarda wrote: > ...
3 years, 9 months ago (2017-03-15 09:17:40 UTC) #11
msarda
LGTM pending the change for OnceCallback.
3 years, 9 months ago (2017-03-16 00:06:03 UTC) #12
Olivier
https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.h File ios/chrome/browser/reading_list/reading_list_remover_helper.h (right): https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.h#newcode22 ios/chrome/browser/reading_list/reading_list_remover_helper.h:22: using Callback = base::Callback<void(bool)>; On 2017/03/14 18:46:06, msarda wrote: ...
3 years, 9 months ago (2017-03-16 11:56:34 UTC) #13
Olivier
On 2017/03/16 11:56:34, Olivier Robin wrote: > https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.h > File ios/chrome/browser/reading_list/reading_list_remover_helper.h (right): > > https://codereview.chromium.org/2745313004/diff/100001/ios/chrome/browser/reading_list/reading_list_remover_helper.h#newcode22 ...
3 years, 9 months ago (2017-03-20 13:55:40 UTC) #14
sdefresne
lgtm https://codereview.chromium.org/2745313004/diff/140001/ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm File ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm (right): https://codereview.chromium.org/2745313004/diff/140001/ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm#newcode62 ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm:62: web_states_.push_back(std::move(std::move(web_state_unique))); std:move(std:move(...)) -> std::move(...) https://codereview.chromium.org/2745313004/diff/140001/ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm#newcode65 ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm:65: dispatch_after( optional: ...
3 years, 9 months ago (2017-03-20 15:09:41 UTC) #15
Olivier
Thanks https://codereview.chromium.org/2745313004/diff/140001/ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm File ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm (right): https://codereview.chromium.org/2745313004/diff/140001/ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm#newcode62 ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm:62: web_states_.push_back(std::move(std::move(web_state_unique))); On 2017/03/20 15:09:40, sdefresne wrote: > std:move(std:move(...)) ...
3 years, 9 months ago (2017-03-21 10:10:15 UTC) #16
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/2745313004/160001
3 years, 9 months ago (2017-03-21 10:10:50 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 12:04:01 UTC) #22
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/85c6bf63ddea1f0a18f2404090ac...

Powered by Google App Engine
This is Rietveld 408576698