| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/ui/cocoa/autofill/new_credit_card_bubble_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/autofill/new_credit_card_bubble_cocoa.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/gtest_prod_util.h" | |
| 10 #include "base/mac/foundation_util.h" | 9 #include "base/mac/foundation_util.h" |
| 11 #include "base/mac/scoped_nsautorelease_pool.h" | 10 #include "base/mac/scoped_nsautorelease_pool.h" |
| 12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 14 #include "chrome/browser/ui/autofill/new_credit_card_bubble_controller.h" | 13 #include "chrome/browser/ui/autofill/new_credit_card_bubble_controller.h" |
| 15 #include "chrome/browser/ui/autofill/new_credit_card_bubble_view.h" | 14 #include "chrome/browser/ui/autofill/new_credit_card_bubble_view.h" |
| 16 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 17 #include "chrome/browser/ui/browser_window.h" | 16 #include "chrome/browser/ui/browser_window.h" |
| 18 #include "chrome/browser/ui/cocoa/browser_window_controller.h" | 17 #include "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 19 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 18 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 ASSERT_TRUE(view.get()); | 78 ASSERT_TRUE(view.get()); |
| 80 | 79 |
| 81 view->Hide(); | 80 view->Hide(); |
| 82 autorelease_pool.Recycle(); | 81 autorelease_pool.Recycle(); |
| 83 ASSERT_FALSE(view.get()); | 82 ASSERT_FALSE(view.get()); |
| 84 | 83 |
| 85 // |controller| gets deleted via the bubble closing. | 84 // |controller| gets deleted via the bubble closing. |
| 86 } | 85 } |
| 87 | 86 |
| 88 } // autofill | 87 } // autofill |
| OLD | NEW |