| Index: chrome/browser/ui/browser_commands.cc
|
| diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
|
| index 06432ba9a04ea5a315cf378988bd594a637bc683..047155e328c85d54cfb9e9915b3d8a555a9470ca 100644
|
| --- a/chrome/browser/ui/browser_commands.cc
|
| +++ b/chrome/browser/ui/browser_commands.cc
|
| @@ -26,6 +26,7 @@
|
| #include "chrome/browser/sessions/tab_restore_service_factory.h"
|
| #include "chrome/browser/translate/chrome_translate_client.h"
|
| #include "chrome/browser/ui/accelerator_utils.h"
|
| +#include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h"
|
| #include "chrome/browser/ui/bookmarks/bookmark_utils.h"
|
| #include "chrome/browser/ui/bookmarks/bookmark_utils_desktop.h"
|
| #include "chrome/browser/ui/browser.h"
|
| @@ -805,6 +806,17 @@ bool CanBookmarkAllTabs(const Browser* browser) {
|
| CanBookmarkCurrentPageInternal(browser, false);
|
| }
|
|
|
| +#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
|
| +void SaveCreditCard(Browser* browser) {
|
| + WebContents* web_contents =
|
| + browser->tab_strip_model()->GetActiveWebContents();
|
| + autofill::SaveCardBubbleControllerImpl* controller =
|
| + autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents);
|
| + DCHECK(controller);
|
| + controller->ShowBubble();
|
| +}
|
| +#endif
|
| +
|
| void Translate(Browser* browser) {
|
| if (!browser->window()->IsActive())
|
| return;
|
|
|