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

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

Issue 2158103002: Remove the Win10 specific text for the default browser prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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') | no next file » | 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.cc
diff --git a/chrome/browser/ui/startup/default_browser_infobar_delegate.cc b/chrome/browser/ui/startup/default_browser_infobar_delegate.cc
index bdc0333415823830b2d613d219ab8eef6884d64a..80cf973cd41bc0a1b5554294789bf8dd4082552c 100644
--- a/chrome/browser/ui/startup/default_browser_infobar_delegate.cc
+++ b/chrome/browser/ui/startup/default_browser_infobar_delegate.cc
@@ -158,18 +158,7 @@ int DefaultBrowserInfoBarDelegate::GetButtons() const {
base::string16 DefaultBrowserInfoBarDelegate::GetButtonLabel(
InfoBarButton button) const {
DCHECK_EQ(BUTTON_OK, button);
-#if defined(OS_WIN)
- // On Windows 10, the "OK" button opens the Windows Settings application,
- // through which the user must make their default browser choice.
- const int kSetAsDefaultButtonMessageId =
- base::win::GetVersion() >= base::win::VERSION_WIN10
- ? IDS_DEFAULT_BROWSER_INFOBAR_OK_BUTTON_LABEL_WIN_10
- : IDS_DEFAULT_BROWSER_INFOBAR_OK_BUTTON_LABEL;
-#else
- const int kSetAsDefaultButtonMessageId =
- IDS_DEFAULT_BROWSER_INFOBAR_OK_BUTTON_LABEL;
-#endif
- return l10n_util::GetStringUTF16(kSetAsDefaultButtonMessageId);
+ return l10n_util::GetStringUTF16(IDS_DEFAULT_BROWSER_INFOBAR_OK_BUTTON_LABEL);
}
// Setting an app as the default browser doesn't require elevation directly, but
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698