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

Unified Diff: components/update_client/update_response.h

Issue 2252093002: Add support for Omaha cohorts to the component updater. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Through #13 Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/update_client/update_response.h
diff --git a/components/update_client/update_response.h b/components/update_client/update_response.h
index 6c0ea9bd9351497a793aa5bc5d1cf7cfc464189e..370ce9806c7756a8c941395b39d5b9a8029bd5af 100644
--- a/components/update_client/update_response.h
+++ b/components/update_client/update_response.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_
#define COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_
+#include <map>
+#include <memory>
#include <string>
#include <vector>
@@ -99,6 +101,15 @@ class UpdateResponse {
std::vector<GURL> crx_diffurls;
Manifest manifest;
+
+ // The server has instructed the client to set its [key] to [value] for each
+ // key-value pair in this string.
+ std::map<std::string, std::string> cohort_attrs;
+
+ // The following are the only allowed keys in |cohort_attrs|.
+ static const char* kCohort;
Sorin Jianu 2016/08/23 00:20:03 can we use static const char kCohort[] ?
waffles 2016/08/23 00:36:18 Done.
+ static const char* kCohortHint;
+ static const char* kCohortName;
};
static const int kNoDaystart = -1;

Powered by Google App Engine
This is Rietveld 408576698