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: ui/base/ui_base_switches_util.cc

Issue 725293005: We previously had a setting in chrome defaults but this deprecates that for a command line flag and… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2171_62
Patch Set: 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
« no previous file with comments | « 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 ba20e53f7fa3ef355e499c948cfa34fbf76334e8..d8e0bf792eedac17703f6f6fdec0c824d4e3a018 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
+}
+
bool IsTextInputFocusManagerEnabled() {
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTextInputFocusManager);
« no previous file with comments | « 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