#include "chrome/browser/command_updater.h"
#include "chrome/browser/password_manager/chrome_password_manager_client.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/content_settings/content_setting_bubble_model_delegate.h"
#include "chrome/browser/ui/toolbar/toolbar_model_impl.h"
DCHECK(web_contents);
// Create the password manager that is needed for the proxy.
- ChromePasswordManagerClient::CreateForWebContents(web_contents);
+ ChromePasswordManagerClient::CreateForWebContentsWithAutofillManagerDelegate(
+ web_contents,
+ autofill::TabAutofillManagerDelegate::FromWebContents(web_contents));
}
void SimpleWebViewDialog::Init() {
this, true);
// Reload button.
- reload_ = new ReloadButton(location_bar_, command_updater_.get());
+ reload_ = new ReloadButton(command_updater_.get());
reload_->set_triggerable_event_flags(ui::EF_LEFT_MOUSE_BUTTON |
ui::EF_MIDDLE_MOUSE_BUTTON);
reload_->set_tag(IDC_RELOAD);