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

Unified Diff: chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc

Issue 2790993003: Add Generic Implementation of ClipboardRecentContent (Closed)
Patch Set: blank line 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: chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
diff --git a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
index e585e9efca2504d16bb8a26658bb08b885a76e58..940075468a2b3ac84d34f57f6102c56d8014af02 100644
--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
@@ -60,6 +60,7 @@
#include "components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h"
#include "components/ntp_snippets/content_suggestions_service.h"
#include "components/omnibox/browser/omnibox_pref_names.h"
+#include "components/open_from_clipboard/clipboard_recent_content.h"
#include "components/password_manager/core/browser/password_store.h"
#include "components/prefs/pref_service.h"
#include "components/previews/core/previews_ui_service.h"
@@ -419,6 +420,10 @@ void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData(
delete_begin_, delete_end_,
clear_history_.GetCompletionCallback(),
&history_task_tracker_);
+ // TODO(mpearson): do I want to / need to gate this on "not incognito"
+ // the way iOS does? Or does requiring history_service be valid already
+ // do that for me?
+ ClipboardRecentContent::GetInstance()->SuppressClipboardContent();
Mark P 2017/04/01 05:21:04 For context, I'm trying to make a call analogous t
}
// Currently, ContentSuggestionService instance exists only on Android.

Powered by Google App Engine
This is Rietveld 408576698