enhanced_bookmarks_features.h revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
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 13bool 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. 18bool OptInIntoBookmarksExperiment(); 19 20// Returns true if enhanced bookmarks experiment is enabled. 21bool IsEnhancedBookmarksExperimentEnabled(); 22 23// Returns true when flag enable-dom-distiller is set or enabled from Finch. 24bool IsEnableDomDistillerSet(); 25 26// Returns true when flag enable-sync-articles is set or enabled from Finch. 27bool IsEnableSyncArticlesSet(); 28 29// Get extension id from Finch EnhancedBookmarks group parameters. 30std::string GetEnhancedBookmarksExtensionIdFromFinch(); 31 32#endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ 33