| Index: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
|
| index 78c9f6dac035affe66a3f22eb8619484b224c08d..6dc0672f095d480832e2408ae381ad3b008996a1 100644
|
| --- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
|
| @@ -9,13 +9,9 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/mac/foundation_util.h"
|
| #include "chrome/browser/ui/browser.h"
|
| -#include "chrome/browser/ui/browser_window.h"
|
| -#import "chrome/browser/ui/cocoa/browser_window_controller.h"
|
| #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
|
| #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
|
| #import "chrome/browser/ui/cocoa/info_bubble_window.h"
|
| -#include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
|
| -#include "chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration.h"
|
| #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h"
|
| #include "chrome/browser/ui/passwords/manage_passwords_bubble.h"
|
| #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h"
|
| @@ -47,18 +43,12 @@
|
| content::WebContents* webContents() { return webContents_; }
|
|
|
| void ShowBubble() {
|
| - NSWindow* nativeWindow = browser()->window()->GetNativeWindow();
|
| - BrowserWindowController* bwc =
|
| - [BrowserWindowController browserWindowControllerForWindow:nativeWindow];
|
| - ManagePasswordsIcon* icon =
|
| - [bwc locationBarBridge]->manage_passwords_decoration()->icon();
|
| -
|
| ManagePasswordsBubbleCocoa::ShowBubble(
|
| - webContents(), ManagePasswordsBubble::DisplayReason::AUTOMATIC, icon);
|
| + webContents(), ManagePasswordsBubble::DisplayReason::AUTOMATIC);
|
| // Disable animations so that closing happens immediately.
|
| - InfoBubbleWindow* bubbleWindow = base::mac::ObjCCast<InfoBubbleWindow>(
|
| + InfoBubbleWindow* window = base::mac::ObjCCast<InfoBubbleWindow>(
|
| [ManagePasswordsBubbleCocoa::instance()->controller_ window]);
|
| - [bubbleWindow setAllowedAnimations:info_bubble::kAnimateNone];
|
| + [window setAllowedAnimations:info_bubble::kAnimateNone];
|
| }
|
|
|
| void CloseBubble() {
|
|
|