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

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

Issue 2925733002: Move ranker_model_loader to a new component. (Closed)
Patch Set: Adressing sdefresne's comments. Created 3 years, 5 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
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « components/data_use_measurement/core/data_use_user_data.h ('k') | components/machine_intelligence/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698