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

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: Using unique_ptrs instead of booleans. 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..bfe61b57173918287a1f106580be9a6b1001dbb0 100644
--- a/components/update_client/update_response.h
+++ b/components/update_client/update_response.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_
#define COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_
+#include <memory>
#include <string>
#include <vector>
@@ -89,6 +90,7 @@ class UpdateResponse {
Result();
Result(const Result& other);
+ UpdateResponse::Result& operator=(const Result& other);
~Result();
std::string extension_id;
@@ -99,6 +101,12 @@ class UpdateResponse {
std::vector<GURL> crx_diffurls;
Manifest manifest;
+
+ // When non-null, the server has instructed the client to set its cohort/
+ // cohorthint/cohortname to this string.
+ std::unique_ptr<std::string> cohort;
+ std::unique_ptr<std::string> cohort_hint;
+ std::unique_ptr<std::string> cohort_name;
};
static const int kNoDaystart = -1;

Powered by Google App Engine
This is Rietveld 408576698