Index: chrome/browser/extensions/chrome_extension_function_details.h |
diff --git a/chrome/browser/extensions/chrome_extension_function_details.h b/chrome/browser/extensions/chrome_extension_function_details.h |
index 6e1bf92cc27364e4935eb7935b55db1edbf7aacb..79c5c09e16ea967ca80d5ccdedc62f522e28bcae 100644 |
--- a/chrome/browser/extensions/chrome_extension_function_details.h |
+++ b/chrome/browser/extensions/chrome_extension_function_details.h |
@@ -62,6 +62,10 @@ class ChromeExtensionFunctionDetails { |
// contents then defaults to the foremost one. |
content::WebContents* GetAssociatedWebContents(); |
+ // Returns a pointer to the associated UIThreadExtensionFunction |
+ UIThreadExtensionFunction* function() { return function_; } |
+ const UIThreadExtensionFunction* function() const { return function_; } |
+ |
private: |
// The function for which these details have been created. Must outlive the |
// ChromeExtensionFunctionDetails instance. |