OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 #import "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h" | 4 #import "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h" |
5 | 5 |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 9 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // The controller owns itself. | 94 // The controller owns itself. |
95 TestAutofillDialogController* controller_; | 95 TestAutofillDialogController* controller_; |
96 | 96 |
97 // The following members must outlive the controller. | 97 // The following members must outlive the controller. |
98 AutofillMetrics metric_logger_; | 98 AutofillMetrics metric_logger_; |
99 scoped_refptr<content::MessageLoopRunner> runner_; | 99 scoped_refptr<content::MessageLoopRunner> runner_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(AutofillDialogCocoaBrowserTest); | 101 DISALLOW_COPY_AND_ASSIGN(AutofillDialogCocoaBrowserTest); |
102 }; | 102 }; |
103 | 103 |
104 IN_PROC_BROWSER_TEST_F(AutofillDialogCocoaBrowserTest, DisplayUI) { | 104 // Disabled, since this can pop up a "browser_tests would like access to your |
| 105 // Contacts" dialog. http://crbug.com/234008 . |
| 106 IN_PROC_BROWSER_TEST_F(AutofillDialogCocoaBrowserTest, DISABLED_DisplayUI) { |
105 controller()->Show(); | 107 controller()->Show(); |
106 controller()->view()->CancelForTesting(); | 108 controller()->view()->CancelForTesting(); |
107 | 109 |
108 controller()->RunMessageLoop(); | 110 controller()->RunMessageLoop(); |
109 } | 111 } |
110 | 112 |
111 } // namespace | 113 } // namespace |
112 | 114 |
113 } // namespace autofill | 115 } // namespace autofill |
OLD | NEW |