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

Side by Side Diff: components/data_use_measurement/core/data_use_user_data.cc

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « components/data_use_measurement/core/data_use_user_data.h ('k') | components/payments/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/data_use_measurement/core/data_use_user_data.h ('k') | components/payments/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698