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

Side by Side Diff: components/ntp_snippets/features.h

Issue 2744253004: NTP: clang-format (Closed)
Patch Set: Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_NTP_SNIPPETS_FEATURES_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_FEATURES_H_
6 #define COMPONENTS_NTP_SNIPPETS_FEATURES_H_ 6 #define COMPONENTS_NTP_SNIPPETS_FEATURES_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/feature_list.h" 11 #include "base/feature_list.h"
12 #include "components/ntp_snippets/category_rankers/category_ranker.h" 12 #include "components/ntp_snippets/category_rankers/category_ranker.h"
13 #include "components/prefs/pref_service.h" 13 #include "components/prefs/pref_service.h"
14 14
15 namespace base { 15 namespace base {
16 class Clock; 16 class Clock;
17 } 17 }
18 18
19 namespace ntp_snippets { 19 namespace ntp_snippets {
20 20
21 // Features to turn individual providers/categories on/off. 21 // Features to turn individual providers/categories on/off.
22 // TODO(jkrcal): Rename to kRemoteSuggestionsFeature. 22 // TODO(jkrcal): Rename to kRemoteSuggestionsFeature.
23 extern const base::Feature kArticleSuggestionsFeature; 23 extern const base::Feature kArticleSuggestionsFeature;
24 extern const base::Feature kBookmarkSuggestionsFeature; 24 extern const base::Feature kBookmarkSuggestionsFeature;
25 extern const base::Feature kRecentOfflineTabSuggestionsFeature; 25 extern const base::Feature kRecentOfflineTabSuggestionsFeature;
26 extern const base::Feature kPhysicalWebPageSuggestionsFeature; 26 extern const base::Feature kPhysicalWebPageSuggestionsFeature;
27 extern const base::Feature kForeignSessionsSuggestionsFeature;; 27 extern const base::Feature kForeignSessionsSuggestionsFeature;
28 ;
Bernhard Bauer 2017/03/15 11:56:55 Remove the semicolon.
28 29
29 // Feature to allow the 'save to offline' option to appear in the snippets 30 // Feature to allow the 'save to offline' option to appear in the snippets
30 // context menu. 31 // context menu.
31 extern const base::Feature kSaveToOfflineFeature; 32 extern const base::Feature kSaveToOfflineFeature;
32 33
33 // Feature to allow offline badges to appear on snippets. 34 // Feature to allow offline badges to appear on snippets.
34 extern const base::Feature kOfflineBadgeFeature; 35 extern const base::Feature kOfflineBadgeFeature;
35 36
36 // Feature to allow UI as specified here: https://crbug.com/660837. 37 // Feature to allow UI as specified here: https://crbug.com/660837.
37 extern const base::Feature kIncreasedVisibility; 38 extern const base::Feature kIncreasedVisibility;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 GENERAL, 73 GENERAL,
73 EMERGING_MARKETS_ORIENTED, 74 EMERGING_MARKETS_ORIENTED,
74 }; 75 };
75 76
76 // Returns which category order to use according to kCategoryOrder feature. 77 // Returns which category order to use according to kCategoryOrder feature.
77 CategoryOrderChoice GetSelectedCategoryOrder(); 78 CategoryOrderChoice GetSelectedCategoryOrder();
78 79
79 } // namespace ntp_snippets 80 } // namespace ntp_snippets
80 81
81 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_ 82 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698