OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/data_use_measurement/core/data_use_user_data.h" | 5 #include "components/data_use_measurement/core/data_use_user_data.h" |
6 | 6 |
7 #if defined(OS_ANDROID) | 7 #if defined(OS_ANDROID) |
8 #include "base/android/application_status_listener.h" | 8 #include "base/android/application_status_listener.h" |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 case WEB_RESOURCE_SERVICE: | 117 case WEB_RESOURCE_SERVICE: |
118 return "WebResourceService"; | 118 return "WebResourceService"; |
119 case SIGNIN: | 119 case SIGNIN: |
120 return "Signin"; | 120 return "Signin"; |
121 case NTP_SNIPPETS_SUGGESTIONS: | 121 case NTP_SNIPPETS_SUGGESTIONS: |
122 return "NTPSnippetsSuggestions"; | 122 return "NTPSnippetsSuggestions"; |
123 case NTP_SNIPPETS_THUMBNAILS: | 123 case NTP_SNIPPETS_THUMBNAILS: |
124 return "NTPSnippetsThumbnails"; | 124 return "NTPSnippetsThumbnails"; |
125 case DOODLE: | 125 case DOODLE: |
126 return "Doodle"; | 126 return "Doodle"; |
| 127 case PAYMENTS: |
| 128 return "Payments"; |
127 } | 129 } |
128 return "INVALID"; | 130 return "INVALID"; |
129 } | 131 } |
130 | 132 |
131 // static | 133 // static |
132 void DataUseUserData::AttachToFetcher(net::URLFetcher* fetcher, | 134 void DataUseUserData::AttachToFetcher(net::URLFetcher* fetcher, |
133 ServiceName service_name) { | 135 ServiceName service_name) { |
134 fetcher->SetURLRequestUserData(kUserDataKey, | 136 fetcher->SetURLRequestUserData(kUserDataKey, |
135 base::Bind(&Create, service_name)); | 137 base::Bind(&Create, service_name)); |
136 } | 138 } |
137 | 139 |
138 } // namespace data_use_measurement | 140 } // namespace data_use_measurement |
OLD | NEW |