Chromium Code Reviews| Index: components/browsing_data/history_notice_utils.cc |
| diff --git a/components/browsing_data/history_notice_utils.cc b/components/browsing_data/history_notice_utils.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..37f70724e782b14a880e2b0b6dfbe68ac6b5b5e8 |
| --- /dev/null |
| +++ b/components/browsing_data/history_notice_utils.cc |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "components/browsing_data/history_notice_utils.h" |
| + |
| +#include "components/browser_sync/browser/profile_sync_service.h" |
| +#include "components/history/core/browser/web_history_service.h" |
| + |
| +namespace browsing_data { |
| + |
| +bool ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( |
| + const ProfileSyncService* sync_service, |
| + const history::WebHistoryService* history_service) { |
| + return (sync_service && |
|
sdefresne
2016/03/17 09:49:39
nit: return is not a function, so you can remove t
msramek
2016/03/17 13:04:34
Done.
|
| + sync_service->IsUsingSecondaryPassphrase() && |
| + history_service && |
| + history_service->HasOtherFormsOfBrowsingHistory()); |
| +} |
| + |
| +} // namespace browsing_data |