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 | 4 |
5 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "chrome/browser/ui/autofill/autofill_popup_view.h" | 7 #include "chrome/browser/ui/autofill/autofill_popup_view.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
11 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
12 #include "components/autofill/browser/autofill_manager.h" | |
13 #include "components/autofill/browser/test_autofill_external_delegate.h" | |
14 #include "components/autofill/content/browser/autofill_driver_impl.h" | 12 #include "components/autofill/content/browser/autofill_driver_impl.h" |
| 13 #include "components/autofill/core/browser/autofill_manager.h" |
| 14 #include "components/autofill/core/browser/test_autofill_external_delegate.h" |
15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
16 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
17 #include "content/public/test/test_utils.h" | 17 #include "content/public/test/test_utils.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 #include "ui/gfx/vector2d.h" | 19 #include "ui/gfx/vector2d.h" |
20 | 20 |
21 namespace autofill { | 21 namespace autofill { |
22 namespace { | 22 namespace { |
23 | 23 |
24 class TestAutofillExternalDelegate : public AutofillExternalDelegate { | 24 class TestAutofillExternalDelegate : public AutofillExternalDelegate { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 DeleteDelegateBeforePopupHidden){ | 121 DeleteDelegateBeforePopupHidden){ |
122 GenerateTestAutofillPopup(autofill_external_delegate_.get()); | 122 GenerateTestAutofillPopup(autofill_external_delegate_.get()); |
123 | 123 |
124 // Delete the external delegate here so that is gets deleted before popup is | 124 // Delete the external delegate here so that is gets deleted before popup is |
125 // hidden. This can happen if the web_contents are destroyed before the popup | 125 // hidden. This can happen if the web_contents are destroyed before the popup |
126 // is hidden. See http://crbug.com/232475 | 126 // is hidden. See http://crbug.com/232475 |
127 autofill_external_delegate_.reset(); | 127 autofill_external_delegate_.reset(); |
128 } | 128 } |
129 | 129 |
130 } // namespace autofill | 130 } // namespace autofill |
OLD | NEW |