| Index: chrome/browser/extensions/global_shortcut_listener_chromeos.cc
|
| diff --git a/chrome/browser/extensions/global_shortcut_listener_chromeos.cc b/chrome/browser/extensions/global_shortcut_listener_chromeos.cc
|
| index af97100c483f95c95e547dd6f9700553bc2fb871..17b449b7546a7f0ae383da1b2a65ffc20ba7f3f4 100644
|
| --- a/chrome/browser/extensions/global_shortcut_listener_chromeos.cc
|
| +++ b/chrome/browser/extensions/global_shortcut_listener_chromeos.cc
|
| @@ -48,28 +48,22 @@ void GlobalShortcutListenerChromeOS::StopListening() {
|
| is_listening_ = false;
|
| }
|
|
|
| -void GlobalShortcutListenerChromeOS::RegisterAccelerator(
|
| - const ui::Accelerator& accelerator,
|
| - GlobalShortcutListener::Observer* observer) {
|
| +bool GlobalShortcutListenerChromeOS::RegisterAcceleratorImpl(
|
| + const ui::Accelerator& accelerator) {
|
| NOTIMPLEMENTED();
|
| // To implement:
|
| // 1) Convert modifiers to platform specific modifiers.
|
| // 2) Register for the hotkey.
|
| - // 3) If not successful, log why.
|
| - // 4) Else, call base class RegisterAccelerator.
|
| + // 3) If not successful, log why and return false.
|
| + // 4) Else, return true.
|
|
|
| - GlobalShortcutListener::RegisterAccelerator(accelerator, observer);
|
| + return false;
|
| }
|
|
|
| -void GlobalShortcutListenerChromeOS::UnregisterAccelerator(
|
| - const ui::Accelerator& accelerator,
|
| - GlobalShortcutListener::Observer* observer) {
|
| +void GlobalShortcutListenerChromeOS::UnregisterAcceleratorImpl(
|
| + const ui::Accelerator& accelerator) {
|
| NOTIMPLEMENTED();
|
| - // To implement:
|
| - // 1) Unregister for the hotkey.
|
| - // 2) Call base class UnregisterAccelerator.
|
| -
|
| - GlobalShortcutListener::UnregisterAccelerator(accelerator, observer);
|
| + // To implement: Unregister for the hotkey.
|
| }
|
|
|
| } // namespace extensions
|
|
|