Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / bookmarks / enhanced_bookmarks_features.h
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
12 // Returns true if Enhanced bookmarks extension is installed
13 bool IsBookmarksExtensionInstalled(
14     const extensions::ExtensionIdSet& extension_ids);
15
16 // If user not in Finch experiment then opt-in user into experiment.
17 // Returns true if user was opt-in.
18 bool OptInIntoBookmarksExperiment();
19
20 // Returns true if enhanced bookmarks experiment is enabled.
21 bool IsEnhancedBookmarksExperimentEnabled();
22
23 // Returns true when flag enable-dom-distiller is set or enabled from Finch.
24 bool IsEnableDomDistillerSet();
25
26 // Returns true when flag enable-sync-articles is set or enabled from Finch.
27 bool IsEnableSyncArticlesSet();
28
29 // Get extension id from Finch EnhancedBookmarks group parameters.
30 std::string GetEnhancedBookmarksExtensionIdFromFinch();
31
32 #endif  // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_