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

Unified Diff: chrome/browser/bookmarks/enhanced_bookmarks_features.h

Issue 265843009: Restored an option to enable enhanced bookmarks experiment from Finch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: chrome/browser/bookmarks/enhanced_bookmarks_features.h
diff --git a/chrome/browser/bookmarks/enhanced_bookmarks_features.h b/chrome/browser/bookmarks/enhanced_bookmarks_features.h
index c3bf9591dc17834bc481ccc26d2ad621cd0a0dee..f3a3771411edda6914fdfac273aa96488895e3c3 100644
--- a/chrome/browser/bookmarks/enhanced_bookmarks_features.h
+++ b/chrome/browser/bookmarks/enhanced_bookmarks_features.h
@@ -14,9 +14,20 @@ class PrefService;
enum BookmarksExperimentState {
kNoBookmarksExperiment,
kBookmarksExperimentEnabled,
- kBookmarksExperimentEnabledUserOptOut
+ kBookmarksExperimentEnabledUserOptOut,
+ kBookmarksExperimentEnabledFromFinch,
+ kBookmarksExperimentOptOutFromFinch,
+ kBookmarksExperimentEnabledFromFinchUserSignedIn,
+ kBookmarksExperimentEnumSize
};
+bool IsBookmarksExperimentEnabled(const PrefService* user_prefs,
+ std::string* extension_id);
+
+void UpdateBookmarksExperimentState(const PrefService* user_prefs,
+ PrefService* local_state,
+ bool user_signed_in);
+
// Sets flag to opt-in user into Finch experiment.
void UpdateBookmarksExperiment(
PrefService* local_state,
@@ -25,6 +36,9 @@ void UpdateBookmarksExperiment(
// Returns true if enhanced bookmarks experiment is enabled.
bool IsEnhancedBookmarksExperimentEnabled();
+// Returns true if enhanced bookmarks experiment is enabled from Finch.
+bool IsEnhancedBookmarksExperimentEnabledFromFinch();
+
// Returns true when flag enable-dom-distiller is set or enabled from Finch.
bool IsEnableDomDistillerSet();

Powered by Google App Engine
This is Rietveld 408576698