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 // Returns true if Enhanced bookmarks extension is installed
13 bool IsBookmarksExtensionInstalled(
14 const extensions::ExtensionIdSet
& extension_ids
);
16 // If user not in Finch experiment then opt-in user into experiment.
17 // Returns true if user was opt-in.
18 bool OptInIntoBookmarksExperiment();
20 // Returns true if enhanced bookmarks experiment is enabled.
21 bool IsEnhancedBookmarksExperimentEnabled();
23 // Returns true when flag enable-dom-distiller is set or enabled from Finch.
24 bool IsEnableDomDistillerSet();
26 // Returns true when flag enable-sync-articles is set or enabled from Finch.
27 bool IsEnableSyncArticlesSet();
29 // Get extension id from Finch EnhancedBookmarks group parameters.
30 std::string
GetEnhancedBookmarksExtensionIdFromFinch();
32 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_