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

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: Change object lifecycles + add interface classes. 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 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 break; 547 break;
548 case IDC_PRINT: 548 case IDC_PRINT:
549 Print(browser_); 549 Print(browser_);
550 break; 550 break;
551 #if defined(ENABLE_BASIC_PRINTING) 551 #if defined(ENABLE_BASIC_PRINTING)
552 case IDC_BASIC_PRINT: 552 case IDC_BASIC_PRINT:
553 content::RecordAction(base::UserMetricsAction("Accel_Advanced_Print")); 553 content::RecordAction(base::UserMetricsAction("Accel_Advanced_Print"));
554 BasicPrint(browser_); 554 BasicPrint(browser_);
555 break; 555 break;
556 #endif // ENABLE_BASIC_PRINTING 556 #endif // ENABLE_BASIC_PRINTING
557 case IDC_SAVE_CREDIT_CARD_FOR_PAGE:
558 SaveCreditCard(browser_);
559 break;
557 case IDC_TRANSLATE_PAGE: 560 case IDC_TRANSLATE_PAGE:
558 Translate(browser_); 561 Translate(browser_);
559 break; 562 break;
560 case IDC_MANAGE_PASSWORDS_FOR_PAGE: 563 case IDC_MANAGE_PASSWORDS_FOR_PAGE:
561 ManagePasswordsForPage(browser_); 564 ManagePasswordsForPage(browser_);
562 break; 565 break;
563 566
564 // Page encoding commands 567 // Page encoding commands
565 case IDC_ENCODING_AUTO_DETECT: 568 case IDC_ENCODING_AUTO_DETECT:
566 browser_->ToggleEncodingAutoDetect(); 569 browser_->ToggleEncodingAutoDetect();
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 1374
1372 BrowserWindow* BrowserCommandController::window() { 1375 BrowserWindow* BrowserCommandController::window() {
1373 return browser_->window(); 1376 return browser_->window();
1374 } 1377 }
1375 1378
1376 Profile* BrowserCommandController::profile() { 1379 Profile* BrowserCommandController::profile() {
1377 return browser_->profile(); 1380 return browser_->profile();
1378 } 1381 }
1379 1382
1380 } // namespace chrome 1383 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698