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

Side by Side 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: Tweak SaveCardBubbleControllerImpl::DidNavigateMainFrame logic. Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
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/browser_command_controller.h" 5 #include "chrome/browser/ui/browser_command_controller.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 break; 549 break;
550 case IDC_PRINT: 550 case IDC_PRINT:
551 Print(browser_); 551 Print(browser_);
552 break; 552 break;
553 #if defined(ENABLE_BASIC_PRINTING) 553 #if defined(ENABLE_BASIC_PRINTING)
554 case IDC_BASIC_PRINT: 554 case IDC_BASIC_PRINT:
555 content::RecordAction(base::UserMetricsAction("Accel_Advanced_Print")); 555 content::RecordAction(base::UserMetricsAction("Accel_Advanced_Print"));
556 BasicPrint(browser_); 556 BasicPrint(browser_);
557 break; 557 break;
558 #endif // ENABLE_BASIC_PRINTING 558 #endif // ENABLE_BASIC_PRINTING
559 case IDC_SAVE_CREDIT_CARD_FOR_PAGE:
560 SaveCreditCard(browser_);
sky 2015/10/26 20:56:26 Shouldn't you only enable this if it actually does
bondd 2015/10/27 01:06:39 Done. I also ifdef'd SaveCreditCard() out of brows
561 break;
559 case IDC_TRANSLATE_PAGE: 562 case IDC_TRANSLATE_PAGE:
560 Translate(browser_); 563 Translate(browser_);
561 break; 564 break;
562 case IDC_MANAGE_PASSWORDS_FOR_PAGE: 565 case IDC_MANAGE_PASSWORDS_FOR_PAGE:
563 ManagePasswordsForPage(browser_); 566 ManagePasswordsForPage(browser_);
564 break; 567 break;
565 568
566 // Page encoding commands 569 // Page encoding commands
567 case IDC_ENCODING_AUTO_DETECT: 570 case IDC_ENCODING_AUTO_DETECT:
568 browser_->ToggleEncodingAutoDetect(); 571 browser_->ToggleEncodingAutoDetect();
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1376
1374 BrowserWindow* BrowserCommandController::window() { 1377 BrowserWindow* BrowserCommandController::window() {
1375 return browser_->window(); 1378 return browser_->window();
1376 } 1379 }
1377 1380
1378 Profile* BrowserCommandController::profile() { 1381 Profile* BrowserCommandController::profile() {
1379 return browser_->profile(); 1382 return browser_->profile();
1380 } 1383 }
1381 1384
1382 } // namespace chrome 1385 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698