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.
5 #ifndef CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_
6 #define CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_
10 #include "extensions/common/extension.h"
12 // If user not in Finch experiment then check if extension was installed
13 // manually and then opt-in user into experiment.
14 // Returns true if user was opt-in.
15 bool OptInIntoBookmarksExperimentIfHasExtension(
16 const extensions::ExtensionIdSet
& extension_ids
);
18 // Returns true if enhanced bookmarks experiment is enabled.
19 bool IsEnhancedBookmarksExperimentEnabled();
21 // Returns true when flag enable-dom-distiller is set or enabled from Finch.
22 bool IsEnableDomDistillerSet();
24 // Returns true when flag enable-sync-articles is set or enabled from Finch.
25 bool IsEnableSyncArticlesSet();
27 // Get extension id from Finch EnhancedBookmarks group parameters.
28 std::string
GetEnhancedBookmarksExtensionId();
30 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_