OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "extensions/common/extension.h" | 10 #include "extensions/common/extension.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 PrefService* user_prefs, | 36 PrefService* user_prefs, |
37 PrefService* local_state, | 37 PrefService* local_state, |
38 bool user_signed_in, | 38 bool user_signed_in, |
39 BookmarksExperimentState experiment_enabled_from_sync); | 39 BookmarksExperimentState experiment_enabled_from_sync); |
40 | 40 |
41 // Sets flag to opt-in user into Finch experiment. | 41 // Sets flag to opt-in user into Finch experiment. |
42 void ForceFinchBookmarkExperimentIfNeeded( | 42 void ForceFinchBookmarkExperimentIfNeeded( |
43 PrefService* local_state, | 43 PrefService* local_state, |
44 BookmarksExperimentState bookmarks_experiment_state); | 44 BookmarksExperimentState bookmarks_experiment_state); |
45 | 45 |
46 // Returns true if enhanced bookmarks experiment is enabled. | 46 // Returns true if enhanced bookmarks experiment is running. |
47 // Experiment could be enable from Chrome sync or from Finch. | 47 // Experiment could run by Chrome sync or by Finch. |
| 48 // Note that this doesn't necessarily mean that enhanced bookmarks |
| 49 // is enabled, e.g., user can opt out using a flag. |
48 bool IsEnhancedBookmarksExperimentEnabled(); | 50 bool IsEnhancedBookmarksExperimentEnabled(); |
49 | 51 |
50 #if defined(OS_ANDROID) | 52 #if defined(OS_ANDROID) |
51 bool IsEnhancedBookmarkImageFetchingEnabled(); | 53 // Returns true if enhanced bookmark salient image prefetching is enabled. |
| 54 // This can be controlled by field trial. |
| 55 bool IsEnhancedBookmarkImageFetchingEnabled(const PrefService* user_prefs); |
| 56 |
| 57 // Returns true if enhanced bookmarks is enabled. |
| 58 bool IsEnhancedBookmarksEnabled(const PrefService* user_prefs); |
| 59 |
52 #endif | 60 #endif |
53 | 61 |
54 // Returns true when flag enable-dom-distiller is set or enabled from Finch. | 62 // Returns true when flag enable-dom-distiller is set or enabled from Finch. |
55 bool IsEnableDomDistillerSet(); | 63 bool IsEnableDomDistillerSet(); |
56 | 64 |
57 // Returns true when flag enable-sync-articles is set or enabled from Finch. | 65 // Returns true when flag enable-sync-articles is set or enabled from Finch. |
58 bool IsEnableSyncArticlesSet(); | 66 bool IsEnableSyncArticlesSet(); |
59 | 67 |
60 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ | 68 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ |
OLD | NEW |