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 "build/build_config.h"
14 #if defined(OS_ANDROID)
15 // Returns true if enhanced bookmark salient image prefetching is enabled.
16 // This can be controlled by field trial.
17 bool IsEnhancedBookmarkImageFetchingEnabled(const PrefService
* user_prefs
);
18 #endif // defined(OS_ANDROID)
20 // Returns true if enhanced bookmarks is enabled.
21 bool IsEnhancedBookmarksEnabled();
23 // Returns true and sets |extension_id| if enhanced bookmarks experiment is
24 // enabled. Returns false if no bookmark experiment or extension id is empty.
25 // Besides, this method takes commandline flags into account before trying
26 // to get an extension_id.
27 bool IsEnhancedBookmarksEnabled(std::string
* extension_id
);
29 // Returns true when flag enable-dom-distiller is set or enabled from Finch.
30 bool IsEnableDomDistillerSet();
32 // Returns true when flag enable-sync-articles is set or enabled from Finch.
33 bool IsEnableSyncArticlesSet();
35 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_