Index: chrome/browser/ui/views/download/download_feedback_dialog_view.h |
diff --git a/chrome/browser/ui/views/download/download_feedback_dialog_view.h b/chrome/browser/ui/views/download/download_feedback_dialog_view.h |
index 6037512ee20eb60922d0260f0837072c2f8267be..69dde98369df481e3db268c2144b3380bcd5ff76 100644 |
--- a/chrome/browser/ui/views/download/download_feedback_dialog_view.h |
+++ b/chrome/browser/ui/views/download/download_feedback_dialog_view.h |
@@ -21,23 +21,15 @@ class Profile; |
// or UNCOMMON_DOWNLOAD. The user should only see this dialog once. |
class DownloadFeedbackDialogView : public views::DialogDelegate { |
public: |
- // Possible values for prefs::kSafeBrowsingDownloadReportingEnabled pref. |
- enum DownloadReportingStatus { |
- kDialogNotYetShown, |
- kDownloadReportingDisabled, // Set by Cancel(). |
- kDownloadReportingEnabled, // Set by Accept(). |
- kMaxValue |
- }; |
- |
static void Show( |
gfx::NativeWindow parent_window, |
Profile* profile, |
- const base::Callback<void(DownloadReportingStatus)>& callback); |
+ const base::Callback<void(bool)>& callback); |
private: |
DownloadFeedbackDialogView( |
Profile* profile, |
- const base::Callback<void(DownloadReportingStatus)>& callback); |
+ const base::Callback<void(bool)>& callback); |
virtual ~DownloadFeedbackDialogView(); |
void ReleaseDialogStatusHold(); |
@@ -56,7 +48,7 @@ class DownloadFeedbackDialogView : public views::DialogDelegate { |
virtual bool Accept() OVERRIDE; |
Profile* profile_; |
- const base::Callback<void(DownloadReportingStatus)> callback_; |
+ const base::Callback<void(bool)> callback_; |
views::MessageBoxView* explanation_box_view_; |
base::string16 title_text_; |
base::string16 ok_button_text_; |