Chromium Code Reviews| 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 "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 | 11 |
| 12 class PrefService; | 12 class PrefService; |
| 13 | 13 |
| 14 // Returns true and sets |extension_id| if enhanced bookmarks experiment is | 14 // Returns true and sets |extension_id| if enhanced bookmarks experiment is |
| 15 // enabled. Returns false if no bookmark experiment or extension id is empty. | 15 // enabled. Returns false if no bookmark experiment or extension id is empty. |
| 16 bool GetBookmarksExperimentExtensionID(std::string* extension_id); | 16 bool GetBookmarksExperimentExtensionID(std::string* extension_id); |
|
Mike Wittman
2015/03/19 18:56:35
this function can move inside the .cc file, since
| |
| 17 | 17 |
| 18 #if defined(OS_ANDROID) | 18 #if defined(OS_ANDROID) |
| 19 // Returns true if enhanced bookmark salient image prefetching is enabled. | 19 // Returns true if enhanced bookmark salient image prefetching is enabled. |
| 20 // This can be controlled by field trial. | 20 // This can be controlled by field trial. |
| 21 bool IsEnhancedBookmarkImageFetchingEnabled(const PrefService* user_prefs); | 21 bool IsEnhancedBookmarkImageFetchingEnabled(const PrefService* user_prefs); |
| 22 | 22 |
| 23 // Returns true if enhanced bookmarks is enabled. | 23 // Returns true if enhanced bookmarks is enabled. |
| 24 bool IsEnhancedBookmarksEnabled(); | 24 bool IsEnhancedBookmarksEnabled(); |
| 25 #endif | |
| 25 | 26 |
| 26 #endif | 27 // Returns true and sets |extension_id| if enhanced bookmarks experiment is |
| 28 // enabled. Returns false if no bookmark experiment or extension id is empty. | |
| 29 // Unlike GetBookmarksExperimentExtensionID(), this method takes commandline | |
| 30 // flags into account before trying to get an extension_id. | |
| 31 bool IsEnhancedBookmarksEnabled(std::string* extension_id); | |
| 27 | 32 |
| 28 // Returns true when flag enable-dom-distiller is set or enabled from Finch. | 33 // Returns true when flag enable-dom-distiller is set or enabled from Finch. |
| 29 bool IsEnableDomDistillerSet(); | 34 bool IsEnableDomDistillerSet(); |
| 30 | 35 |
| 31 // Returns true when flag enable-sync-articles is set or enabled from Finch. | 36 // Returns true when flag enable-sync-articles is set or enabled from Finch. |
| 32 bool IsEnableSyncArticlesSet(); | 37 bool IsEnableSyncArticlesSet(); |
| 33 | 38 |
| 34 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ | 39 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ |
| OLD | NEW |