enhanced_bookmarks_features.h revision c5cede9ae108bb15f6b7a8aea21c7e1fefa2834c
1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ 6#define CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ 7 8#include <string> 9 10#include "extensions/common/extension.h" 11 12class PrefService; 13 14enum BookmarksExperimentState { 15 kNoBookmarksExperiment, 16 kBookmarksExperimentEnabled, 17 kBookmarksExperimentEnabledUserOptOut 18}; 19 20// Sets flag to opt-in user into Finch experiment. 21void UpdateBookmarksExperiment( 22 PrefService* local_state, 23 BookmarksExperimentState bookmarks_experiment_state); 24 25// Returns true if enhanced bookmarks experiment is enabled. 26bool IsEnhancedBookmarksExperimentEnabled(); 27 28// Returns true when flag enable-dom-distiller is set or enabled from Finch. 29bool IsEnableDomDistillerSet(); 30 31// Returns true when flag enable-sync-articles is set or enabled from Finch. 32bool IsEnableSyncArticlesSet(); 33 34// Get extension id from Finch EnhancedBookmarks group parameters. 35std::string GetEnhancedBookmarksExtensionIdFromFinch(); 36 37#endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ 38