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

Side by Side Diff: components/browsing_data_ui/history_notice_utils.cc

Issue 1814173002: Only show the notice about other forms of browsing history if sync is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_component
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/browsing_data_ui/history_notice_utils.h" 5 #include "components/browsing_data_ui/history_notice_utils.h"
6 6
7 #include "components/browser_sync/browser/profile_sync_service.h" 7 #include "components/browser_sync/browser/profile_sync_service.h"
8 #include "components/history/core/browser/web_history_service.h" 8 #include "components/history/core/browser/web_history_service.h"
9 9
10 namespace browsing_data_ui { 10 namespace browsing_data_ui {
11 11
12 bool ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( 12 bool ShouldShowNoticeAboutOtherFormsOfBrowsingHistory(
13 const ProfileSyncService* sync_service, 13 const ProfileSyncService* sync_service,
14 const history::WebHistoryService* history_service) { 14 const history::WebHistoryService* history_service) {
15 return sync_service && 15 return sync_service &&
16 sync_service->IsSyncActive() &&
16 sync_service->IsUsingSecondaryPassphrase() && 17 sync_service->IsUsingSecondaryPassphrase() &&
msarda 2016/03/18 13:51:25 I just want to make sure I understand: from the in
msramek 2016/03/18 14:01:58 Ah, yes. Thanks for catching this! I updated the
17 history_service && 18 history_service &&
18 history_service->HasOtherFormsOfBrowsingHistory(); 19 history_service->HasOtherFormsOfBrowsingHistory();
19 } 20 }
20 21
21 } // namespace browsing_data_ui 22 } // namespace browsing_data_ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698