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

Unified Diff: components/browsing_data_ui/history_notice_utils.h

Issue 1829733002: Retrieve the web&app activity enabled state from WebHistoryService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Early return. Created 4 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: components/browsing_data_ui/history_notice_utils.h
diff --git a/components/browsing_data_ui/history_notice_utils.h b/components/browsing_data_ui/history_notice_utils.h
index a960e69a697ebe768d8cc7859bb6b6e6591c33fa..0425630d3821c1d927d58154c841957504f1cd69 100644
--- a/components/browsing_data_ui/history_notice_utils.h
+++ b/components/browsing_data_ui/history_notice_utils.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_
#define COMPONENTS_BROWSING_DATA_UI_HISTORY_NOTICE_UTILS_H_
+#include "base/callback.h"
sdefresne 2016/03/24 09:50:07 nit: use base/callback_forward.h in the header and
msramek 2016/03/24 12:53:22 Done.
+
class ProfileSyncService;
namespace history {
@@ -14,10 +16,12 @@ class WebHistoryService;
namespace browsing_data_ui {
// Whether the Clear Browsing Data UI should show a notice about the existence
-// of other forms of browsing history stored in user's account.
-bool ShouldShowNoticeAboutOtherFormsOfBrowsingHistory(
+// of other forms of browsing history stored in user's account. The response
+// is returned in a |callback|.
+void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory(
const ProfileSyncService* sync_service,
- const history::WebHistoryService* history_service);
+ history::WebHistoryService* history_service,
+ base::Callback<void(bool)> callback);
} // namespace browsing_data_ui

Powered by Google App Engine
This is Rietveld 408576698