Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 1396923003: Autofill: Replace "save credit card" infobar with a bubble (Views only). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: defined(TOOLKIT_VIEWS) -> defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX). Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/autofill/save_card_bubble_view.h ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_command_controller.cc
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index a87d2e9dd83e5c186e8b86257c000e2458f3dfa0..0ccd5eae3689a48d60cb3cb0b277d720bda4008b 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -550,12 +550,21 @@ void BrowserCommandController::ExecuteCommandWithDisposition(
case IDC_PRINT:
Print(browser_);
break;
+
#if defined(ENABLE_BASIC_PRINTING)
case IDC_BASIC_PRINT:
content::RecordAction(base::UserMetricsAction("Accel_Advanced_Print"));
BasicPrint(browser_);
break;
#endif // ENABLE_BASIC_PRINTING
+
+// TODO(bondd): Implement save credit card bubble and icon on Mac.
+#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
+ case IDC_SAVE_CREDIT_CARD_FOR_PAGE:
+ SaveCreditCard(browser_);
+ break;
+#endif
+
case IDC_TRANSLATE_PAGE:
Translate(browser_);
break;
« no previous file with comments | « chrome/browser/ui/autofill/save_card_bubble_view.h ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698