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

Unified Diff: chrome/browser/tab_contents/tab_contents_delegate.h

Issue 890005: Add a command line flag to disable infobars. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/test/automation/automation_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents_delegate.h
===================================================================
--- chrome/browser/tab_contents/tab_contents_delegate.h (revision 42751)
+++ chrome/browser/tab_contents/tab_contents_delegate.h (working copy)
@@ -283,6 +283,9 @@
// typically happens when popups are created.
virtual void TabContentsCreated(TabContents* new_contents) {}
+ // Returns whether infobars are enabled. Overrideable by child classes.
+ virtual bool infobars_enabled() { return true; }
+
protected:
~TabContentsDelegate() {}
};
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/test/automation/automation_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698