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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc

Issue 16286020: Abstract WebContentsObserver from Autofill shared code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nit 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/ui/autofill/autofill_popup_controller_unittest.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
index c3c3fe1313f2547a3535769ad1e8975f01286890..f9577a7648371fd66f60a5536e3b20ea1bed0494 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
@@ -14,6 +14,7 @@
#include "components/autofill/browser/autofill_manager.h"
#include "components/autofill/browser/test_autofill_external_delegate.h"
#include "components/autofill/browser/test_autofill_manager_delegate.h"
+#include "components/autofill/content/browser/autofill_driver_impl.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h"
@@ -154,11 +155,12 @@ class AutofillPopupControllerUnitTest : public ChromeRenderViewHostTestHarness {
virtual void SetUp() OVERRIDE {
ChromeRenderViewHostTestHarness::SetUp();
- AutofillManager::CreateForWebContentsAndDelegate(
+ AutofillDriverImpl::CreateForWebContentsAndDelegate(
web_contents(),
manager_delegate_.get(),
"en-US",
- AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
+ AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER,
+ false);
external_delegate_.reset(
new NiceMock<MockAutofillExternalDelegate>(
web_contents(), AutofillManager::FromWebContents(web_contents())));

Powered by Google App Engine
This is Rietveld 408576698