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

Unified Diff: ui/base/ui_base_switches_util.cc

Issue 725243002: add flag to disable link disambiguation popup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add histogram.xml entry for flag Created 6 years, 1 month 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
« ui/base/ui_base_switches.h ('K') | « ui/base/ui_base_switches_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« ui/base/ui_base_switches.h ('K') | « ui/base/ui_base_switches_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698