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

Side by Side Diff: components/ntp_snippets/pref_names.cc

Issue 2875953003: [Soft fetches] Set-up different intervals for <Chrome started> events. (Closed)
Patch Set: Created 3 years, 7 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 #include "components/ntp_snippets/pref_names.h" 5 #include "components/ntp_snippets/pref_names.h"
6 6
7 namespace ntp_snippets { 7 namespace ntp_snippets {
8 namespace prefs { 8 namespace prefs {
9 9
10 const char kEnableSnippets[] = "ntp_snippets.enable"; 10 const char kEnableSnippets[] = "ntp_snippets.enable";
11 11
12 const char kRemoteSuggestionCategories[] = "ntp_snippets.remote_categories"; 12 const char kRemoteSuggestionCategories[] = "ntp_snippets.remote_categories";
13 13
14 const char kSnippetLastFetchAttempt[] = "ntp_snippets.last_fetch_attempt"; 14 const char kSnippetLastFetchAttempt[] = "ntp_snippets.last_fetch_attempt";
15 15
16 const char kSnippetSoftFetchingIntervalWifi[] = 16 // For backwards compatibility, we do not rename
markusheintz_ 2017/05/15 09:35:47 I guess that comment can be moved to the correspon
jkrcal 2017/05/15 11:40:24 Done.
17 "ntp_snippets.soft_fetching_interval_wifi"; 17 // - the "soft_" prefs (should be "shown_");
18 18 // - the "fetching_" prefs (should be "persistent_fetching_").
19 const char kSnippetSoftFetchingIntervalFallback[] =
20 "ntp_snippets.soft_fetching_interval_fallback";
21
22 const char kSnippetPersistentFetchingIntervalWifi[] = 19 const char kSnippetPersistentFetchingIntervalWifi[] =
23 "ntp_snippets.fetching_interval_wifi"; 20 "ntp_snippets.fetching_interval_wifi";
24
25 const char kSnippetPersistentFetchingIntervalFallback[] = 21 const char kSnippetPersistentFetchingIntervalFallback[] =
26 "ntp_snippets.fetching_interval_fallback"; 22 "ntp_snippets.fetching_interval_fallback";
23 const char kSnippetStartupFetchingIntervalWifi[] =
24 "ntp_snippets.startup_fetching_interval_wifi";
25 const char kSnippetStartupFetchingIntervalFallback[] =
26 "ntp_snippets.startup_fetching_interval_fallback";
27 const char kSnippetShownFetchingIntervalWifi[] =
28 "ntp_snippets.soft_fetching_interval_wifi";
29 const char kSnippetShownFetchingIntervalFallback[] =
30 "ntp_snippets.soft_fetching_interval_fallback";
27 31
28 const char kSnippetFetcherRequestCount[] = 32 const char kSnippetFetcherRequestCount[] =
29 "ntp.request_throttler.suggestion_fetcher.count"; 33 "ntp.request_throttler.suggestion_fetcher.count";
30 const char kSnippetFetcherInteractiveRequestCount[] = 34 const char kSnippetFetcherInteractiveRequestCount[] =
31 "ntp.request_throttler.suggestion_fetcher.interactive_count"; 35 "ntp.request_throttler.suggestion_fetcher.interactive_count";
32 const char kSnippetFetcherRequestsDay[] = 36 const char kSnippetFetcherRequestsDay[] =
33 "ntp.request_throttler.suggestion_fetcher.day"; 37 "ntp.request_throttler.suggestion_fetcher.day";
34 38
35 const char kSnippetThumbnailsRequestCount[] = 39 const char kSnippetThumbnailsRequestCount[] =
36 "ntp.request_throttler.suggestion_thumbnails.count"; 40 "ntp.request_throttler.suggestion_thumbnails.count";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const char kUserClassifierLastTimeToUseSuggestions[] = 73 const char kUserClassifierLastTimeToUseSuggestions[] =
70 "ntp_suggestions.user_classifier.last_time_to_use_suggestions"; 74 "ntp_suggestions.user_classifier.last_time_to_use_suggestions";
71 75
72 const char kClickBasedCategoryRankerOrderWithClicks[] = 76 const char kClickBasedCategoryRankerOrderWithClicks[] =
73 "ntp_suggestions.click_based_category_ranker.category_order_with_clicks"; 77 "ntp_suggestions.click_based_category_ranker.category_order_with_clicks";
74 const char kClickBasedCategoryRankerLastDecayTime[] = 78 const char kClickBasedCategoryRankerLastDecayTime[] =
75 "ntp_suggestions.click_based_category_ranker.last_decay_time"; 79 "ntp_suggestions.click_based_category_ranker.last_decay_time";
76 80
77 } // namespace prefs 81 } // namespace prefs
78 } // namespace ntp_snippets 82 } // namespace ntp_snippets
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698