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

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

Issue 12476031: Refactor notifications of chrome/browser/webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 9 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_dialog_controller_unittest.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
index 804a692d99a89f9d3d81cd3f5e2821ea79121b0a..3329c1c14af889368cb61a9381dbf9b63a2d00ac 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
@@ -97,6 +97,10 @@ class TestAutofillDialogController : public AutofillDialogControllerImpl {
return new TestAutofillDialogView();
}
+ void Init(content::BrowserContext* browser_context) {
+ test_manager_.Init(browser_context);
+ }
+
TestAutofillDialogView* GetView() {
return static_cast<TestAutofillDialogView*>(view());
}
@@ -153,6 +157,7 @@ class AutofillDialogControllerTest : public testing::Test {
metrics,
DIALOG_TYPE_REQUEST_AUTOCOMPLETE,
callback);
+ controller_->Init(profile());
controller_->Show();
}

Powered by Google App Engine
This is Rietveld 408576698