OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/prefs/pref_service.h" |
12 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
13 #include "chrome/app/chrome_command_ids.h" | 14 #include "chrome/app/chrome_command_ids.h" |
14 #include "chrome/browser/download/download_shelf.h" | 15 #include "chrome/browser/download/download_shelf.h" |
15 #include "chrome/browser/extensions/tab_helper.h" | 16 #include "chrome/browser/extensions/tab_helper.h" |
16 #include "chrome/browser/password_manager/password_manager.h" | 17 #include "chrome/browser/password_manager/password_manager.h" |
17 #include "chrome/browser/prefs/pref_service.h" | |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/shell_integration.h" | 19 #include "chrome/browser/shell_integration.h" |
20 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" | 20 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" |
21 #include "chrome/browser/ui/browser.h" | 21 #include "chrome/browser/ui/browser.h" |
22 #include "chrome/browser/ui/browser_command_controller.h" | 22 #include "chrome/browser/ui/browser_command_controller.h" |
23 #include "chrome/browser/ui/browser_commands.h" | 23 #include "chrome/browser/ui/browser_commands.h" |
24 #include "chrome/browser/ui/browser_list.h" | 24 #include "chrome/browser/ui/browser_list.h" |
25 #include "chrome/browser/ui/browser_window_state.h" | 25 #include "chrome/browser/ui/browser_window_state.h" |
26 #import "chrome/browser/ui/cocoa/browser/avatar_button_controller.h" | 26 #import "chrome/browser/ui/cocoa/browser/avatar_button_controller.h" |
27 #import "chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h" | 27 #import "chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h" |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 PasswordGenerationBubbleController* controller = | 701 PasswordGenerationBubbleController* controller = |
702 [[PasswordGenerationBubbleController alloc] | 702 [[PasswordGenerationBubbleController alloc] |
703 initWithWindow:browser_->window()->GetNativeWindow() | 703 initWithWindow:browser_->window()->GetNativeWindow() |
704 anchoredAt:point | 704 anchoredAt:point |
705 renderViewHost:web_contents->GetRenderViewHost() | 705 renderViewHost:web_contents->GetRenderViewHost() |
706 passwordManager:PasswordManager::FromWebContents(web_contents) | 706 passwordManager:PasswordManager::FromWebContents(web_contents) |
707 usingGenerator:password_generator | 707 usingGenerator:password_generator |
708 forForm:form]; | 708 forForm:form]; |
709 [controller showWindow:nil]; | 709 [controller showWindow:nil]; |
710 } | 710 } |
OLD | NEW |