Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: chrome/browser/bookmarks/enhanced_bookmarks_features.h

Issue 1037573003: enhancedBookmarks iOS changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #if defined(OS_ANDROID) 14 #if defined(OS_ANDROID)
15 // Returns true if enhanced bookmark salient image prefetching is enabled. 15 // Returns true if enhanced bookmark salient image prefetching is enabled.
16 // This can be controlled by field trial. 16 // This can be controlled by field trial.
17 bool IsEnhancedBookmarkImageFetchingEnabled(const PrefService* user_prefs); 17 bool IsEnhancedBookmarkImageFetchingEnabled(const PrefService* user_prefs);
18 #endif
18 19
19 // Returns true if enhanced bookmarks is enabled. 20 // Returns true if enhanced bookmarks is enabled.
20 bool IsEnhancedBookmarksEnabled(); 21 bool IsEnhancedBookmarksEnabled();
21 #endif
22 22
23 // Returns true and sets |extension_id| if enhanced bookmarks experiment is 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. 24 // enabled. Returns false if no bookmark experiment or extension id is empty.
25 // Besides, this method takes commandline flags into account before trying 25 // Besides, this method takes commandline flags into account before trying
26 // to get an extension_id. 26 // to get an extension_id.
27 bool IsEnhancedBookmarksEnabled(std::string* extension_id); 27 bool IsEnhancedBookmarksEnabled(std::string* extension_id);
28 28
29 // Returns true when flag enable-dom-distiller is set or enabled from Finch. 29 // Returns true when flag enable-dom-distiller is set or enabled from Finch.
30 bool IsEnableDomDistillerSet(); 30 bool IsEnableDomDistillerSet();
31 31
32 // Returns true when flag enable-sync-articles is set or enabled from Finch. 32 // Returns true when flag enable-sync-articles is set or enabled from Finch.
33 bool IsEnableSyncArticlesSet(); 33 bool IsEnableSyncArticlesSet();
34 34
35 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_ 35 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_BOOKMARKS_FEATURES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698