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

Unified Diff: components/ntp_snippets/remote/json_request.h

Issue 2714863004: [Remote suggestions] Move the throttler into the Scheduler (Closed)
Patch Set: Ilya's comment Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/ntp_snippets/remote/remote_suggestions_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/remote/json_request.h
diff --git a/components/ntp_snippets/remote/json_request.h b/components/ntp_snippets/remote/json_request.h
index f498747a4a2621806d22c53f6c3ccdffa2ea5f4a..6c73127140b9e6e723634aba2703bffcba4a6eea 100644
--- a/components/ntp_snippets/remote/json_request.h
+++ b/components/ntp_snippets/remote/json_request.h
@@ -35,16 +35,16 @@ namespace internal {
// histograms, so do not change existing values. Insert new values at the end,
// and update the histogram definition.
enum class FetchResult {
- SUCCESS,
- DEPRECATED_EMPTY_HOSTS,
- URL_REQUEST_STATUS_ERROR,
- HTTP_ERROR,
- JSON_PARSE_ERROR,
- INVALID_SNIPPET_CONTENT_ERROR,
- OAUTH_TOKEN_ERROR,
- INTERACTIVE_QUOTA_ERROR,
- NON_INTERACTIVE_QUOTA_ERROR,
- RESULT_MAX
+ SUCCESS = 0,
+ // DEPRECATED_EMPTY_HOSTS = 1,
+ URL_REQUEST_STATUS_ERROR = 2,
+ HTTP_ERROR = 3,
+ JSON_PARSE_ERROR = 4,
+ INVALID_SNIPPET_CONTENT_ERROR = 5,
+ OAUTH_TOKEN_ERROR = 6,
+ // DEPRECATED_INTERACTIVE_QUOTA_ERROR = 7,
+ // DEPRECATED_NON_INTERACTIVE_QUOTA_ERROR = 8,
+ RESULT_MAX = 9
};
enum FetchAPI {
« no previous file with comments | « no previous file | components/ntp_snippets/remote/remote_suggestions_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698