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

Unified Diff: chrome/browser/extensions/extension_uninstall_dialog.h

Issue 1010953002: [Extensions] Add support for reporting abuse on extension uninstallation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/browser/extensions/extension_uninstall_dialog.h
diff --git a/chrome/browser/extensions/extension_uninstall_dialog.h b/chrome/browser/extensions/extension_uninstall_dialog.h
index 85e9811e17704d8f0cea3e95bfcab3a0b7434248..c29dddf7dc6282f47bcac76fcfeb8ee5392b8bee 100644
--- a/chrome/browser/extensions/extension_uninstall_dialog.h
+++ b/chrome/browser/extensions/extension_uninstall_dialog.h
@@ -61,10 +61,17 @@ class ExtensionUninstallDialog
std::string GetHeadingText();
+ // Returns true if a checkbox for reporting abuse should be shown.
+ bool ShouldShowReportAbuseCheckbox() const;
+
protected:
// Constructor used by the derived classes.
ExtensionUninstallDialog(Profile* profile, Delegate* delegate);
+ // Handles the "report abuse" checkbox being checked at the close of the
+ // dialog.
+ void HandleReportAbuse();
+
// TODO(sashab): Remove protected members: crbug.com/397395
Profile* const profile_;

Powered by Google App Engine
This is Rietveld 408576698