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

Unified Diff: ios/chrome/browser/signin/browser_state_data_remover.h

Issue 2390003003: Upstream helper method to clear data using BrowserStateDataRemover. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | ios/chrome/browser/signin/browser_state_data_remover.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/signin/browser_state_data_remover.h
diff --git a/ios/chrome/browser/signin/browser_state_data_remover.h b/ios/chrome/browser/signin/browser_state_data_remover.h
index 910e12abbd42f68f632bf31dfa55e92e8bd5c8c0..fc5f2a31787d002fad1c9b065c81d8665ad6f952 100644
--- a/ios/chrome/browser/signin/browser_state_data_remover.h
+++ b/ios/chrome/browser/signin/browser_state_data_remover.h
@@ -20,6 +20,12 @@ class BrowserStateDataRemover {
explicit BrowserStateDataRemover(ios::ChromeBrowserState* browser_state);
~BrowserStateDataRemover();
+ // Removes all bookmarks, clears all browsing data, last signed-in username
+ // and then runs |completion|. The user must be signed out when this method
+ // is called.
+ static void ClearData(ios::ChromeBrowserState* browser_state,
+ ProceduralBlock completion);
+
// If set then the last username will be removed from the browser state prefs
// after the data has been wiped.
void SetForgetLastUsername();
« no previous file with comments | « no previous file | ios/chrome/browser/signin/browser_state_data_remover.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698