Force Enhanced Bookmark to be enabled if command line flags are set true
[chromium-blink-merge.git] / chrome / browser / bookmarks / enhanced_bookmarks_features.h
blob84183122ac2fdadd68cd24b3c48de5c1c5e3e33e
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_
8 #include <string>
10 #include "build/build_config.h"
12 class PrefService;
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);
19 // Returns true if enhanced bookmarks is enabled.
20 bool IsEnhancedBookmarksEnabled();
21 #endif
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_