Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: ash/accelerators/magnifier_key_scroller.cc

Issue 2689143002: ash: Remove OS_CHROMEOS ifdefs from accelerator files (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/accelerators/accelerator_filter_unittest.cc ('k') | ash/ash_strings.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/magnifier_key_scroller.cc
diff --git a/ash/accelerators/magnifier_key_scroller.cc b/ash/accelerators/magnifier_key_scroller.cc
index d74cbfbcdbf80417d1f3e239559d44f8d545bf88..342edbe5ceb2a56b9a85dbae5c5dcb2b6ea44f52 100644
--- a/ash/accelerators/magnifier_key_scroller.cc
+++ b/ash/accelerators/magnifier_key_scroller.cc
@@ -20,11 +20,8 @@ bool magnifier_key_scroller_enabled = false;
// static
bool MagnifierKeyScroller::IsEnabled() {
- bool has_switch = false;
-#if defined(OS_CHROMEOS)
- has_switch = base::CommandLine::ForCurrentProcess()->HasSwitch(
+ bool has_switch = base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kAshEnableMagnifierKeyScroller);
-#endif
return (magnifier_key_scroller_enabled || has_switch) &&
ash::Shell::GetInstance()->magnification_controller()->IsEnabled();
« no previous file with comments | « ash/accelerators/accelerator_filter_unittest.cc ('k') | ash/ash_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698