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

Unified Diff: ui/base/ui_base_switches_util.cc

Issue 756703002: disable link disambiguation by default (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.cc ('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 d8e0bf792eedac17703f6f6fdec0c824d4e3a018..f562ea41c64f2d2758fc2322c6a6522943c5c799 100644
--- a/ui/base/ui_base_switches_util.cc
+++ b/ui/base/ui_base_switches_util.cc
@@ -10,13 +10,13 @@
namespace switches {
bool IsLinkDisambiguationPopupEnabled() {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableLinkDisambiguationPopup)) {
- return false;
- }
-#if defined(OS_WIN) || defined(OS_ANDROID)
+#if defined(OS_ANDROID)
return true;
#else
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableLinkDisambiguationPopup)) {
+ return true;
+ }
return false;
#endif
}
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698