| commit | cd3f08bceeac7819208d8f0f1b7b3a3528f4883b | [log] [tgz] |
|---|---|---|
| author | pkasting <[email protected]> | Sat Apr 18 13:37:12 2015 |
| committer | Commit bot <[email protected]> | Sat Apr 18 13:38:35 2015 |
| tree | 2b9bddc0bb9b9bad22c64e1148543e4ccbf5d2b7 | |
| parent | d606a6ceb1bded7d1d0c9ea112322d7c9663ee21 [diff] [blame] |
Eliminate faux-RTTI code from BrowserView. Use the existing View::AcceleratorPressed() method to invoke a Textfield's clipboard functions from the browser menu. BUG=319035 TEST=none Review URL: https://codereview.chromium.org/1091703002 Cr-Commit-Position: refs/heads/master@{#325781}
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc index a7b5229..ac87bb1 100644 --- a/chrome/browser/ui/browser_command_controller.cc +++ b/chrome/browser/ui/browser_command_controller.cc
@@ -606,13 +606,9 @@ // Clipboard commands case IDC_CUT: - Cut(browser_); - break; case IDC_COPY: - Copy(browser_); - break; case IDC_PASTE: - Paste(browser_); + CutCopyPaste(browser_, id); break; // Find-in-page