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

Unified Diff: content/public/common/browser_side_navigation_policy.cc

Issue 2590173003: Add feature flag for PlzNavigate so that we can run experiments. (Closed)
Patch Set: Created 4 years 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 | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/browser_side_navigation_policy.cc
diff --git a/content/public/common/browser_side_navigation_policy.cc b/content/public/common/browser_side_navigation_policy.cc
index a94eff16cb802387a9ef9e44530eeb0dc0d947a1..698ce3f3a69450e2d07056ddd4c6f008192b8ebe 100644
--- a/content/public/common/browser_side_navigation_policy.cc
+++ b/content/public/common/browser_side_navigation_policy.cc
@@ -5,13 +5,16 @@
#include "content/public/common/browser_side_navigation_policy.h"
#include "base/command_line.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
namespace content {
bool IsBrowserSideNavigationEnabled() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableBrowserSideNavigation);
+ return
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableBrowserSideNavigation) ||
+ base::FeatureList::IsEnabled(features::kBrowserSideNavigation);
}
} // namespace content
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698