summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm')
-rw-r--r--chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm
index f04fb01..a52299a 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm
@@ -53,8 +53,10 @@ class TestAutofillDialogController : public AutofillDialogControllerImpl {
runner_->Run();
}
- // Increase visibility for testing.
- AutofillDialogView* view() { return AutofillDialogControllerImpl::view(); }
+ AutofillDialogCocoa* GetView() {
+ return static_cast<AutofillDialogCocoa*>(
+ AutofillDialogControllerImpl::view());
+ }
private:
// To specify our own metric logger.
@@ -111,7 +113,7 @@ class AutofillDialogCocoaBrowserTest : public InProcessBrowserTest {
#endif
IN_PROC_BROWSER_TEST_F(AutofillDialogCocoaBrowserTest, MAYBE_DisplayUI) {
controller()->Show();
- controller()->view()->CancelForTesting();
+ controller()->GetView()->PerformClose();
controller()->RunMessageLoop();
}