Commit 2ac248d4 authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[UI Cleanup] Remove Profile argument from IsChromeAccelerator()

It was never used.

Bug: None
Change-Id: Ice77e73468d18ee795c9cf7152a88c3e27bf825e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2129048Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#754938}
parent 5b0a5dd4
......@@ -549,7 +549,7 @@ bool CommandService::CanAutoAssign(const Command &command,
}
// Not a global command, check if the command is a Chrome shortcut.
return !chrome::IsChromeAccelerator(command.accelerator(), profile_);
return !chrome::IsChromeAccelerator(command.accelerator());
}
void CommandService::UpdateExtensionSuggestedCommandPrefs(
......
......@@ -5,8 +5,6 @@
#ifndef CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_
#define CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_
class Profile;
namespace ui {
class Accelerator;
}
......@@ -15,7 +13,7 @@ namespace chrome {
// Returns true if the given |accelerator| is currently registered by
// Chrome.
bool IsChromeAccelerator(const ui::Accelerator& accelerator, Profile* profile);
bool IsChromeAccelerator(const ui::Accelerator& accelerator);
ui::Accelerator GetPrimaryChromeAcceleratorForBookmarkTab();
......
......@@ -15,7 +15,7 @@
namespace chrome {
bool IsChromeAccelerator(const ui::Accelerator& accelerator, Profile* profile) {
bool IsChromeAccelerator(const ui::Accelerator& accelerator) {
NSUInteger modifiers = (accelerator.IsCtrlDown() ? NSControlKeyMask : 0) |
(accelerator.IsCmdDown() ? NSCommandKeyMask : 0) |
(accelerator.IsAltDown() ? NSAlternateKeyMask : 0) |
......
......@@ -5,7 +5,6 @@
#include <stddef.h>
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/views/accelerator_table.h"
#include "ui/base/accelerators/accelerator.h"
......@@ -15,7 +14,7 @@
namespace chrome {
bool IsChromeAccelerator(const ui::Accelerator& accelerator, Profile* profile) {
bool IsChromeAccelerator(const ui::Accelerator& accelerator) {
#if defined(OS_CHROMEOS)
for (size_t i = 0; i < ash::kAcceleratorDataLength; ++i) {
const ash::AcceleratorData& accel_data = ash::kAcceleratorData[i];
......
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