Chromium Code Reviews| Index: ui/base/ui_base_switches_util.cc |
| diff --git a/ui/base/ui_base_switches_util.cc b/ui/base/ui_base_switches_util.cc |
| index 58b85c7ab4639bb56a0d943dad2dbc3bea0b4745..a5fab1ce8dfb0453c286fcf9021390f68fa2fb52 100644 |
| --- a/ui/base/ui_base_switches_util.cc |
| +++ b/ui/base/ui_base_switches_util.cc |
| @@ -9,6 +9,18 @@ |
| namespace switches { |
| +bool IsLinkDisambiguationPopupEnabled() { |
| + if (CommandLine::ForCurrentProcess()->HasSwitch( |
| + switches::kDisableLinkDisambiguationPopup)) { |
| + return false; |
| + } |
| +#if defined(OS_WIN) || defined(OS_ANDROID) |
| + return true; |
| +#else |
| + return false; |
| +#endif |
| +} |
| + |
|
cpu_(ooo_6.6-7.5)
2014/11/23 04:57:34
yeah, that is pretty nice way to do this.
luken
2014/11/23 05:00:50
Scott's suggestion, credit goes to him.
|
| bool IsTextInputFocusManagerEnabled() { |
| return CommandLine::ForCurrentProcess()->HasSwitch( |
| switches::kEnableTextInputFocusManager); |