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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 UKM: | 127 case UKM: |
128 return "UKM"; | 128 return "UKM"; |
| 129 case PAYMENTS: |
| 130 return "Payments"; |
129 } | 131 } |
130 return "INVALID"; | 132 return "INVALID"; |
131 } | 133 } |
132 | 134 |
133 // static | 135 // static |
134 void DataUseUserData::AttachToFetcher(net::URLFetcher* fetcher, | 136 void DataUseUserData::AttachToFetcher(net::URLFetcher* fetcher, |
135 ServiceName service_name) { | 137 ServiceName service_name) { |
136 fetcher->SetURLRequestUserData(kUserDataKey, | 138 fetcher->SetURLRequestUserData(kUserDataKey, |
137 base::Bind(&Create, service_name)); | 139 base::Bind(&Create, service_name)); |
138 } | 140 } |
139 | 141 |
140 } // namespace data_use_measurement | 142 } // namespace data_use_measurement |
OLD | NEW |