From aaea077642956e0ef53be32bfdbc7758404c885a Mon Sep 17 00:00:00 2001 From: "achuith@chromium.org" Date: Tue, 15 Jul 2014 18:02:16 +0000 Subject: Add helpers IsRemoraRequisition/IsSharkRequisition. BUG=374990 TEST=None NOTRY=True Review URL: https://codereview.chromium.org/388383002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283216 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chromeos/system/input_device_settings.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'chrome/browser/chromeos/system') diff --git a/chrome/browser/chromeos/system/input_device_settings.cc b/chrome/browser/chromeos/system/input_device_settings.cc index 3e81875..744c926 100644 --- a/chrome/browser/chromeos/system/input_device_settings.cc +++ b/chrome/browser/chromeos/system/input_device_settings.cc @@ -37,9 +37,6 @@ const char kDeviceTypeTouchpad[] = "touchpad"; const char kDeviceTypeMouse[] = "mouse"; const char kInputControl[] = "/opt/google/input/inputcontrol"; -const char kRemoraRequisition[] = "remora"; -const char kSharkRequisition[] = "shark"; - typedef base::RefCountedData RefCountedBool; bool ScriptExists(const std::string& script) { @@ -248,9 +245,10 @@ bool InputDeviceSettingsImpl::ForceKeyboardDrivenUINavigation() { if (!policy_manager) return false; - const std::string requisition = policy_manager->GetDeviceRequisition(); - if (requisition == kRemoraRequisition || requisition == kSharkRequisition) + if (policy_manager->IsRemoraRequisition() || + policy_manager->IsSharkRequisition()) { return true; + } bool keyboard_driven = false; if (chromeos::system::StatisticsProvider::GetInstance()->GetMachineFlag( -- cgit v1.1