summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/tab_contents.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 22:56:34 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 22:56:34 +0000
commitcf28ec5f4f485d4758de3817cd116e47fdc3edeb (patch)
treee69ea0cac56aaabe71901a1f2bce2e33061dc88a /chrome/browser/tab_contents/tab_contents.cc
parent5b6699d3ed74c9382c5f9a2aa8c8f2500900c7f8 (diff)
downloadchromium_src-cf28ec5f4f485d4758de3817cd116e47fdc3edeb.zip
chromium_src-cf28ec5f4f485d4758de3817cd116e47fdc3edeb.tar.gz
chromium_src-cf28ec5f4f485d4758de3817cd116e47fdc3edeb.tar.bz2
AutoFill: Fill the default profile when the AutoFill accelerator combo is pressed (ctrl-shift-a).
BUG=39491 TEST=none Review URL: http://codereview.chromium.org/1521020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.cc')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 4054816f..b783b2c 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -468,6 +468,12 @@ bool TabContents::HostsExtension() const {
return GetURL().SchemeIs(chrome::kExtensionScheme);
}
+AutoFillManager* TabContents::GetAutoFillManager() {
+ if (autofill_manager_.get() == NULL)
+ autofill_manager_.reset(new AutoFillManager(this));
+ return autofill_manager_.get();
+}
+
PasswordManager* TabContents::GetPasswordManager() {
if (password_manager_.get() == NULL)
password_manager_.reset(new PasswordManager(this));
@@ -2117,9 +2123,7 @@ RenderViewHostDelegate::Autocomplete* TabContents::GetAutocompleteDelegate() {
}
RenderViewHostDelegate::AutoFill* TabContents::GetAutoFillDelegate() {
- if (autofill_manager_.get() == NULL)
- autofill_manager_.reset(new AutoFillManager(this));
- return autofill_manager_.get();
+ return GetAutoFillManager();
}
AutomationResourceRoutingDelegate*