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

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

Issue 922953002: Minor infobar cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 10 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/startup/autolaunch_prompt_win.cc
diff --git a/chrome/browser/ui/startup/autolaunch_prompt_win.cc b/chrome/browser/ui/startup/autolaunch_prompt_win.cc
index 9b7e23d504e120ec648497cec840a9fc0f3ce6b1..d3e4f60443d8368b2108d988f847556d73df7e41 100644
--- a/chrome/browser/ui/startup/autolaunch_prompt_win.cc
+++ b/chrome/browser/ui/startup/autolaunch_prompt_win.cc
@@ -48,12 +48,12 @@ class AutolaunchInfoBarDelegate : public ConfirmInfoBarDelegate {
// ConfirmInfoBarDelegate:
virtual int GetIconID() const override;
+ virtual bool ShouldExpireInternal(
+ const NavigationDetails& details) const override;
virtual base::string16 GetMessageText() const override;
virtual base::string16 GetButtonLabel(InfoBarButton button) const override;
virtual bool Accept() override;
virtual bool Cancel() override;
- virtual bool ShouldExpireInternal(
- const NavigationDetails& details) const override;
// Weak pointer to the profile, not owned by us.
Profile* profile_;
@@ -101,6 +101,11 @@ int AutolaunchInfoBarDelegate::GetIconID() const {
return IDR_PRODUCT_LOGO_32;
}
+bool AutolaunchInfoBarDelegate::ShouldExpireInternal(
+ const NavigationDetails& details) const {
+ return should_expire_;
+}
+
base::string16 AutolaunchInfoBarDelegate::GetMessageText() const {
return l10n_util::GetStringUTF16(IDS_AUTO_LAUNCH_INFOBAR_TEXT);
}
@@ -123,11 +128,6 @@ bool AutolaunchInfoBarDelegate::Cancel() {
return true;
}
-bool AutolaunchInfoBarDelegate::ShouldExpireInternal(
- const NavigationDetails& details) const {
- return should_expire_;
-}
-
} // namespace
« no previous file with comments | « chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc ('k') | chrome/browser/ui/startup/default_browser_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698