Commit 5735cf1d authored by Tetsui Ohkubo's avatar Tetsui Ohkubo Committed by Commit Bot

Remove GetDeprecatedAcceleratorImage().

This CL removes ash::ShellDelegate::GetDeprecatedAcceleratorImage().
This is only used in accelerator_controller.cc as an argument of
system_notifier::CreateSystemNotification(), which is ignored.

This CL also replaces system_notifier::CreateSystemNotification() by
message_center::Notification::CreateSystemNotification(), because the
former function just forwards to the latter.

IDR_BLUETOOTH_KEYBOARD is not removed, because it's still used in
chrome/browser/resources/chromeos/login/oobe_screen_hid_detection.html

BUG=757703

Change-Id: I92f5a982c817cec34f8d508a11cf813a1caec5fb
Reviewed-on: https://chromium-review.googlesource.com/826663Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Commit-Queue: Tetsui Ohkubo <tetsui@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524293}
parent 0755c943
...@@ -169,11 +169,10 @@ void ShowDeprecatedAcceleratorNotification(const char* const notification_id, ...@@ -169,11 +169,10 @@ void ShowDeprecatedAcceleratorNotification(const char* const notification_id,
const base::string16 message = const base::string16 message =
GetNotificationText(message_id, old_shortcut_id, new_shortcut_id); GetNotificationText(message_id, old_shortcut_id, new_shortcut_id);
std::unique_ptr<Notification> notification = std::unique_ptr<Notification> notification =
system_notifier::CreateSystemNotification( message_center::Notification::CreateSystemNotification(
message_center::NOTIFICATION_TYPE_SIMPLE, notification_id, message_center::NOTIFICATION_TYPE_SIMPLE, notification_id,
l10n_util::GetStringUTF16(IDS_DEPRECATED_SHORTCUT_TITLE), message, l10n_util::GetStringUTF16(IDS_DEPRECATED_SHORTCUT_TITLE), message,
Shell::Get()->shell_delegate()->GetDeprecatedAcceleratorImage(), gfx::Image(), base::string16(), GURL(),
base::string16(), GURL(),
message_center::NotifierId( message_center::NotifierId(
message_center::NotifierId::SYSTEM_COMPONENT, message_center::NotifierId::SYSTEM_COMPONENT,
system_notifier::kNotifierDeprecatedAccelerator), system_notifier::kNotifierDeprecatedAccelerator),
......
...@@ -78,10 +78,6 @@ base::string16 ShellDelegateImpl::GetProductName() const { ...@@ -78,10 +78,6 @@ base::string16 ShellDelegateImpl::GetProductName() const {
return base::string16(); return base::string16();
} }
gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const {
return gfx::Image();
}
ui::InputDeviceControllerClient* ui::InputDeviceControllerClient*
ShellDelegateImpl::GetInputDeviceControllerClient() { ShellDelegateImpl::GetInputDeviceControllerClient() {
return nullptr; return nullptr;
......
...@@ -37,7 +37,6 @@ class ShellDelegateImpl : public ShellDelegate { ...@@ -37,7 +37,6 @@ class ShellDelegateImpl : public ShellDelegate {
std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() override; std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() override;
AccessibilityDelegate* CreateAccessibilityDelegate() override; AccessibilityDelegate* CreateAccessibilityDelegate() override;
base::string16 GetProductName() const override; base::string16 GetProductName() const override;
gfx::Image GetDeprecatedAcceleratorImage() const override;
ui::InputDeviceControllerClient* GetInputDeviceControllerClient() override; ui::InputDeviceControllerClient* GetInputDeviceControllerClient() override;
private: private:
......
...@@ -18,10 +18,6 @@ namespace aura { ...@@ -18,10 +18,6 @@ namespace aura {
class Window; class Window;
} }
namespace gfx {
class Image;
}
namespace keyboard { namespace keyboard {
class KeyboardUI; class KeyboardUI;
} }
...@@ -93,8 +89,6 @@ class ASH_EXPORT ShellDelegate { ...@@ -93,8 +89,6 @@ class ASH_EXPORT ShellDelegate {
virtual void OpenKeyboardShortcutHelpPage() const {} virtual void OpenKeyboardShortcutHelpPage() const {}
virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0;
// Creator of Shell owns this; it's assumed this outlives Shell. // Creator of Shell owns this; it's assumed this outlives Shell.
virtual ui::InputDeviceControllerClient* GetInputDeviceControllerClient() = 0; virtual ui::InputDeviceControllerClient* GetInputDeviceControllerClient() = 0;
}; };
......
...@@ -109,11 +109,6 @@ base::string16 ShellDelegateMus::GetProductName() const { ...@@ -109,11 +109,6 @@ base::string16 ShellDelegateMus::GetProductName() const {
return base::string16(); return base::string16();
} }
gfx::Image ShellDelegateMus::GetDeprecatedAcceleratorImage() const {
NOTIMPLEMENTED_LOG_ONCE();
return gfx::Image();
}
ui::InputDeviceControllerClient* ui::InputDeviceControllerClient*
ShellDelegateMus::GetInputDeviceControllerClient() { ShellDelegateMus::GetInputDeviceControllerClient() {
if (!connector_) if (!connector_)
......
...@@ -35,7 +35,6 @@ class ShellDelegateMus : public ShellDelegate { ...@@ -35,7 +35,6 @@ class ShellDelegateMus : public ShellDelegate {
std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() override; std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() override;
AccessibilityDelegate* CreateAccessibilityDelegate() override; AccessibilityDelegate* CreateAccessibilityDelegate() override;
base::string16 GetProductName() const override; base::string16 GetProductName() const override;
gfx::Image GetDeprecatedAcceleratorImage() const override;
ui::InputDeviceControllerClient* GetInputDeviceControllerClient() override; ui::InputDeviceControllerClient* GetInputDeviceControllerClient() override;
private: private:
......
...@@ -66,10 +66,6 @@ base::string16 TestShellDelegate::GetProductName() const { ...@@ -66,10 +66,6 @@ base::string16 TestShellDelegate::GetProductName() const {
return base::string16(); return base::string16();
} }
gfx::Image TestShellDelegate::GetDeprecatedAcceleratorImage() const {
return gfx::Image();
}
ui::InputDeviceControllerClient* ui::InputDeviceControllerClient*
TestShellDelegate::GetInputDeviceControllerClient() { TestShellDelegate::GetInputDeviceControllerClient() {
return nullptr; return nullptr;
......
...@@ -31,7 +31,6 @@ class TestShellDelegate : public ShellDelegate { ...@@ -31,7 +31,6 @@ class TestShellDelegate : public ShellDelegate {
std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() override; std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() override;
AccessibilityDelegate* CreateAccessibilityDelegate() override; AccessibilityDelegate* CreateAccessibilityDelegate() override;
base::string16 GetProductName() const override; base::string16 GetProductName() const override;
gfx::Image GetDeprecatedAcceleratorImage() const override;
ui::InputDeviceControllerClient* GetInputDeviceControllerClient() override; ui::InputDeviceControllerClient* GetInputDeviceControllerClient() override;
void SetForceMaximizeOnFirstRun(bool maximize) { void SetForceMaximizeOnFirstRun(bool maximize) {
......
...@@ -377,11 +377,6 @@ void ChromeShellDelegate::OpenKeyboardShortcutHelpPage() const { ...@@ -377,11 +377,6 @@ void ChromeShellDelegate::OpenKeyboardShortcutHelpPage() const {
Navigate(&params); Navigate(&params);
} }
gfx::Image ChromeShellDelegate::GetDeprecatedAcceleratorImage() const {
return ui::ResourceBundle::GetSharedInstance().GetImageNamed(
IDR_BLUETOOTH_KEYBOARD);
}
std::unique_ptr<keyboard::KeyboardUI> ChromeShellDelegate::CreateKeyboardUI() { std::unique_ptr<keyboard::KeyboardUI> ChromeShellDelegate::CreateKeyboardUI() {
return base::MakeUnique<ChromeKeyboardUI>( return base::MakeUnique<ChromeKeyboardUI>(
ProfileManager::GetActiveUserProfile()); ProfileManager::GetActiveUserProfile());
......
...@@ -43,7 +43,6 @@ class ChromeShellDelegate : public ash::ShellDelegate, ...@@ -43,7 +43,6 @@ class ChromeShellDelegate : public ash::ShellDelegate,
ash::AccessibilityDelegate* CreateAccessibilityDelegate() override; ash::AccessibilityDelegate* CreateAccessibilityDelegate() override;
base::string16 GetProductName() const override; base::string16 GetProductName() const override;
void OpenKeyboardShortcutHelpPage() const override; void OpenKeyboardShortcutHelpPage() const override;
gfx::Image GetDeprecatedAcceleratorImage() const override;
ui::InputDeviceControllerClient* GetInputDeviceControllerClient() override; ui::InputDeviceControllerClient* GetInputDeviceControllerClient() override;
// content::NotificationObserver override: // content::NotificationObserver override:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment