diff options
author | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-15 18:02:16 +0000 |
---|---|---|
committer | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-15 18:02:16 +0000 |
commit | aaea077642956e0ef53be32bfdbc7758404c885a (patch) | |
tree | f18c1e7f64de99913b779a15e135fe2883818525 /chrome/browser/chromeos/system | |
parent | 31fbcd953ebbfec6489ef4076cf816a56c4eab30 (diff) | |
download | chromium_src-aaea077642956e0ef53be32bfdbc7758404c885a.zip chromium_src-aaea077642956e0ef53be32bfdbc7758404c885a.tar.gz chromium_src-aaea077642956e0ef53be32bfdbc7758404c885a.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/chromeos/system')
-rw-r--r-- | chrome/browser/chromeos/system/input_device_settings.cc | 8 |
1 files changed, 3 insertions, 5 deletions
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<bool> 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( |