Index: chrome/browser/extensions/extension_host.h |
=================================================================== |
--- chrome/browser/extensions/extension_host.h (revision 34039) |
+++ chrome/browser/extensions/extension_host.h (working copy) |
@@ -65,7 +65,10 @@ |
void* view() const { return NULL; } |
#endif |
- // Create an ExtensionView and tie it to this host and |browser|. |
+ // Create an ExtensionView and tie it to this host and |browser|. Note NULL |
+ // is a valid argument for |browser|. Extension views may be bound to |
+ // tab-contents hosted in ExternalTabContainer objects, which do not |
+ // instantiate Browser objects. |
void CreateView(Browser* browser); |
Extension* extension() { return extension_; } |
@@ -173,7 +176,7 @@ |
// If this ExtensionHost has a view, this returns the Browser that view is a |
// part of. If this is a global background page, we use the active Browser |
// instead. |
- virtual Browser* GetBrowser(); |
+ virtual Browser* GetBrowser() const; |
virtual ExtensionHost* GetExtensionHost() { return this; } |
// ExtensionPopupHost::Delegate |