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

Unified Diff: components/dom_distiller/core/dom_distiller_features.cc

Issue 1682813002: Remove distiller dependency on bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplify logic Created 4 years, 10 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/dom_distiller_features.cc
diff --git a/components/dom_distiller/core/dom_distiller_features.cc b/components/dom_distiller/core/dom_distiller_features.cc
index af5464c8d16f58b4820fa3d73c30b43e5d38f83d..3d44ddfb365cec2283c145192aefac499e07a59e 100644
--- a/components/dom_distiller/core/dom_distiller_features.cc
+++ b/components/dom_distiller/core/dom_distiller_features.cc
@@ -8,35 +8,17 @@
#include "base/command_line.h"
#include "components/dom_distiller/core/dom_distiller_switches.h"
-#include "components/variations/variations_associated_data.h"
namespace dom_distiller {
-namespace {
-const char kFieldTrialName[] = "EnhancedBookmarks";
-}
bool IsEnableDomDistillerSet() {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableDomDistiller)) {
- return true;
- }
- if (variations::GetVariationParamValue(kFieldTrialName,
- "enable-dom-distiller") == "1") {
- return true;
- }
- return false;
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableDomDistiller);
}
bool IsEnableSyncArticlesSet() {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableSyncArticles)) {
- return true;
- }
- if (variations::GetVariationParamValue(kFieldTrialName,
- "enable-sync-articles") == "1") {
- return true;
- }
- return false;
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableSyncArticles);
}
} // namespace dom_distiller
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698