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

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 2435933003: Further refactoring of SBER1 preference usage. (Closed)
Patch Set: Order functions alphabetically. Created 4 years, 2 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: chrome/browser/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index 7cbd005bfa6373da77cca23082734c571e6244c0..e63abd5cb3f4d63f270d5be70c29cd5b624855c0 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -575,8 +575,7 @@ void DownloadItemView::ButtonPressed(views::Button* sender,
Profile* profile = shelf_->browser()->profile();
if (!model_.IsMalicious() && model_.ShouldAllowDownloadFeedback() &&
!profile->IsOffTheRecord()) {
- if (!profile->GetPrefs()->HasPrefPath(
- safe_browsing::GetExtendedReportingPrefName())) {
+ if (!safe_browsing::ExtendedReportingPrefExists(*profile->GetPrefs())) {
// Show dialog, because the dialog hasn't been shown before.
DownloadFeedbackDialogView::Show(
shelf_->get_parent()->GetNativeWindow(), profile,
« no previous file with comments | « chrome/browser/ui/views/download/download_feedback_dialog_view.cc ('k') | components/safe_browsing_db/safe_browsing_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698