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

Unified Diff: chrome/browser/ui/startup/default_browser_infobar_delegate.h

Issue 2148523002: Removed the "Don't ask again" button on the default browser prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rewrote comment Created 4 years, 5 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/startup/default_browser_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/startup/default_browser_infobar_delegate.h
diff --git a/chrome/browser/ui/startup/default_browser_infobar_delegate.h b/chrome/browser/ui/startup/default_browser_infobar_delegate.h
index 9b56c47501900e5f4b45fdd475fcf41c9fe6444f..e98b22eb65e8d81eb3101f69354f4f35ab097f82 100644
--- a/chrome/browser/ui/startup/default_browser_infobar_delegate.h
+++ b/chrome/browser/ui/startup/default_browser_infobar_delegate.h
@@ -42,8 +42,8 @@ class DefaultBrowserInfoBarDelegate : public ConfirmInfoBarDelegate {
enum InfoBarUserInteraction {
// The user clicked the "OK" (i.e., "Set as default") button.
ACCEPT_INFO_BAR = 0,
- // The user clicked the "Cancel" (i.e., "Don't ask again") button.
- CANCEL_INFO_BAR = 1,
+ // The cancel button is deprecated.
+ // CANCEL_INFO_BAR = 1,
// The user did not interact with the info bar.
IGNORE_INFO_BAR = 2,
// The user explicitly closed the infobar.
@@ -64,10 +64,10 @@ class DefaultBrowserInfoBarDelegate : public ConfirmInfoBarDelegate {
bool ShouldExpire(const NavigationDetails& details) const override;
void InfoBarDismissed() override;
base::string16 GetMessageText() const override;
+ int GetButtons() const override;
base::string16 GetButtonLabel(InfoBarButton button) const override;
bool OKButtonTriggersUACPrompt() const override;
bool Accept() override;
- bool Cancel() override;
// Declared virtual so tests can override.
virtual scoped_refptr<shell_integration::DefaultBrowserWorker>
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/startup/default_browser_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698