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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 case NTP_SNIPPETS_THUMBNAILS: | 124 case NTP_SNIPPETS_THUMBNAILS: |
125 return "NTPSnippetsThumbnails"; | 125 return "NTPSnippetsThumbnails"; |
126 case DOODLE: | 126 case DOODLE: |
127 return "Doodle"; | 127 return "Doodle"; |
128 case UKM: | 128 case UKM: |
129 return "UKM"; | 129 return "UKM"; |
130 case PAYMENTS: | 130 case PAYMENTS: |
131 return "Payments"; | 131 return "Payments"; |
132 case LARGE_ICON_SERVICE: | 132 case LARGE_ICON_SERVICE: |
133 return "LargeIconService"; | 133 return "LargeIconService"; |
| 134 case MACHINE_INTELLIGENCE: |
| 135 return "MachineIntelligence"; |
134 } | 136 } |
135 return "INVALID"; | 137 return "INVALID"; |
136 } | 138 } |
137 | 139 |
138 // static | 140 // static |
139 void DataUseUserData::AttachToFetcher(net::URLFetcher* fetcher, | 141 void DataUseUserData::AttachToFetcher(net::URLFetcher* fetcher, |
140 ServiceName service_name) { | 142 ServiceName service_name) { |
141 fetcher->SetURLRequestUserData(kUserDataKey, | 143 fetcher->SetURLRequestUserData(kUserDataKey, |
142 base::Bind(&Create, service_name)); | 144 base::Bind(&Create, service_name)); |
143 } | 145 } |
144 | 146 |
145 } // namespace data_use_measurement | 147 } // namespace data_use_measurement |
OLD | NEW |