Index: chrome/browser/autofill/autofill_external_delegate.h |
diff --git a/chrome/browser/autofill/autofill_external_delegate.h b/chrome/browser/autofill/autofill_external_delegate.h |
index 803485d8c38ec611efe2329052a72f8bb07d139b..652f9ee432a44d4434b5d1c7fc9917847f456796 100644 |
--- a/chrome/browser/autofill/autofill_external_delegate.h |
+++ b/chrome/browser/autofill/autofill_external_delegate.h |
@@ -11,12 +11,12 @@ |
#include "base/compiler_specific.h" |
#include "base/string16.h" |
#include "chrome/browser/autofill/password_autofill_manager.h" |
+#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
#include "webkit/forms/form_data.h" |
#include "webkit/forms/form_field.h" |
#include "webkit/forms/password_form_dom_manager.h" |
class AutofillManager; |
-class TabContentsWrapper; |
namespace gfx { |
class Rect; |
@@ -125,6 +125,9 @@ class AutofillExternalDelegate { |
// Set the bounds of the Autofill element being worked with. |
virtual void SetBounds(const gfx::Rect& bounds) = 0; |
+ // Return the profile that this autofill delegate is currently working with. |
+ Profile* profile() { return tab_contents_wrapper_->profile(); } |
+ |
private: |
// Fills the form with the Autofill data corresponding to |unique_id|. |
// If |is_preview| is true then this is just a preview to show the user what |