Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Unified Diff: chrome/browser/password_manager/password_manager_delegate_impl.cc

Issue 16286020: Abstract WebContentsObserver from Autofill shared code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to fix conflict Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/password_manager_delegate_impl.cc
diff --git a/chrome/browser/password_manager/password_manager_delegate_impl.cc b/chrome/browser/password_manager/password_manager_delegate_impl.cc
index 989d918d9703da780de7d4a5fcf92494e4997d06..c82afc202f223c729ce2ed187564ef84c26ef48a 100644
--- a/chrome/browser/password_manager/password_manager_delegate_impl.cc
+++ b/chrome/browser/password_manager/password_manager_delegate_impl.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/ui/sync/one_click_signin_helper.h"
#include "components/autofill/browser/autofill_manager.h"
#include "components/autofill/common/autofill_messages.h"
+#include "components/autofill/content/browser/autofill_driver_impl.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
@@ -166,10 +167,10 @@ PasswordManagerDelegateImpl::~PasswordManagerDelegateImpl() {
void PasswordManagerDelegateImpl::FillPasswordForm(
const autofill::PasswordFormFillData& form_data) {
- autofill::AutofillManager* autofill_manager =
- autofill::AutofillManager::FromWebContents(web_contents_);
+ autofill::AutofillDriverImpl* autofill_driver =
+ autofill::AutofillDriverImpl::FromWebContents(web_contents_);
// Browser process will own popup UI, so renderer should not show the popup.
- bool disable_popup = autofill_manager->IsNativeUiEnabled();
+ bool disable_popup = autofill_driver->autofill_manager()->IsNativeUiEnabled();
web_contents_->GetRenderViewHost()->Send(
new AutofillMsg_FillPasswordForm(

Powered by Google App Engine
This is Rietveld 408576698