Index: components/browsing_data_ui/history_notice_utils.cc |
diff --git a/components/browsing_data_ui/history_notice_utils.cc b/components/browsing_data_ui/history_notice_utils.cc |
index c651520c80b4ca7151bb3082d255392d4c311c6a..1116c3f283caf34a7b0152915b347d549462d6d7 100644 |
--- a/components/browsing_data_ui/history_notice_utils.cc |
+++ b/components/browsing_data_ui/history_notice_utils.cc |
@@ -10,6 +10,12 @@ |
namespace browsing_data_ui { |
+namespace testing { |
+ |
+bool g_override_other_forms_of_browsing_history_query = false; |
+ |
+} |
+ |
void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( |
const ProfileSyncService* sync_service, |
history::WebHistoryService* history_service, |
@@ -18,7 +24,8 @@ void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( |
!sync_service->IsSyncActive() || |
sync_service->IsUsingSecondaryPassphrase() || |
!history_service || |
- !history_service->HasOtherFormsOfBrowsingHistory()) { |
+ (!testing::g_override_other_forms_of_browsing_history_query && |
+ !history_service->HasOtherFormsOfBrowsingHistory())) { |
callback.Run(false); |
return; |
} |