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

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

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/obsolete_os_info_bar.h
===================================================================
--- chrome/browser/ui/startup/obsolete_os_info_bar.h (revision 175396)
+++ chrome/browser/ui/startup/obsolete_os_info_bar.h (working copy)
@@ -17,10 +17,8 @@
// An infobar that is run with a string and a "Learn More" link.
class ObsoleteOSInfoBar : public ConfirmInfoBarDelegate {
public:
- ObsoleteOSInfoBar(InfoBarService* infobar_service,
- const string16& message,
- const GURL& url);
- virtual ~ObsoleteOSInfoBar();
+ // Creates an obsolete OS delegate and adds it to |infobar_service|.
+ static void Create(InfoBarService* infobar_service);
private:
virtual string16 GetMessageText() const OVERRIDE;
@@ -28,6 +26,11 @@
virtual string16 GetLinkText() const OVERRIDE;
virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
+ ObsoleteOSInfoBar(InfoBarService* infobar_service,
+ const string16& message,
+ const GURL& url);
+ virtual ~ObsoleteOSInfoBar();
+
const string16 message_;
const GURL learn_more_url_;
« no previous file with comments | « chrome/browser/ui/startup/default_browser_prompt.cc ('k') | chrome/browser/ui/startup/obsolete_os_info_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698