diff options
Diffstat (limited to 'chrome/renderer/extensions/bindings_utils.h')
-rw-r--r-- | chrome/renderer/extensions/bindings_utils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/extensions/bindings_utils.h b/chrome/renderer/extensions/bindings_utils.h index 65e8db8..d1b3636 100644 --- a/chrome/renderer/extensions/bindings_utils.h +++ b/chrome/renderer/extensions/bindings_utils.h @@ -91,7 +91,9 @@ struct ContextInfo { }; typedef std::list< linked_ptr<ContextInfo> > ContextList; -// Returns a mutable reference to the ContextList. +// Returns a mutable reference to the ContextList. Note: be careful using this. +// Calling into javascript may result in the list being modified, so don't rely +// on iterators remaining valid between calls to javascript. ContextList& GetContexts(); // Returns a (copied) list of contexts that have the given extension_id. |