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

Unified Diff: ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm

Issue 2745313004: Remove all ReadingList entries on managed account signout. (Closed)
Patch Set: feedback Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm
diff --git a/ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm b/ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm
index 10f1d083b290f691bcc139d42c85f2d917e1e88a..04c9628d2004fb9479e11dfe7f1de5bf5c9a2c9f 100644
--- a/ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm
+++ b/ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm
@@ -52,6 +52,10 @@ FaviconWebStateDispatcherImpl::RequestWebState() {
return web_state;
}
+void FaviconWebStateDispatcherImpl::ReleaseAll() {
+ web_states_.clear();
+}
+
void FaviconWebStateDispatcherImpl::ReturnWebState(
std::unique_ptr<web::WebState> web_state_unique) {
web::WebState* web_state = web_state_unique.get();

Powered by Google App Engine
This is Rietveld 408576698