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

Unified Diff: components/browsing_data_ui/history_notice_utils.cc

Issue 1806873002: Add an infrastructure to query history.google.com about other forms of browsing history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed output_name 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
« no previous file with comments | « components/browsing_data_ui/history_notice_utils.h ('k') | components/components.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..a467c669836f0364030068de7c2c8c3af6e8642a
--- /dev/null
+++ b/components/browsing_data_ui/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_ui/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_ui {
+
+bool ShouldShowNoticeAboutOtherFormsOfBrowsingHistory(
+ const ProfileSyncService* sync_service,
+ const history::WebHistoryService* history_service) {
+ return sync_service &&
+ sync_service->IsUsingSecondaryPassphrase() &&
+ history_service &&
+ history_service->HasOtherFormsOfBrowsingHistory();
+}
+
+} // namespace browsing_data_ui
« no previous file with comments | « components/browsing_data_ui/history_notice_utils.h ('k') | components/components.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698