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

Unified Diff: chrome/common/origin_trials/chrome_origin_trial_policy.h

Issue 1741783002: Add disabled origin trial feature list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ef-finch
Patch Set: Rebase Created 4 years, 6 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/origin_trials/chrome_origin_trial_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/origin_trials/chrome_origin_trial_policy.h
diff --git a/chrome/common/origin_trials/chrome_origin_trial_policy.h b/chrome/common/origin_trials/chrome_origin_trial_policy.h
index b6ea373cb99e994557534de5e1855983fabc2ed9..829c0f607fe327afc594944327bf45703d8357e3 100644
--- a/chrome/common/origin_trials/chrome_origin_trial_policy.h
+++ b/chrome/common/origin_trials/chrome_origin_trial_policy.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_ORIGIN_TRIALS_CHROME_ORIGIN_TRIAL_POLICY_H_
#define CHROME_COMMON_ORIGIN_TRIALS_CHROME_ORIGIN_TRIAL_POLICY_H_
+#include <set>
#include <string>
#include "base/macros.h"
@@ -20,11 +21,14 @@ class ChromeOriginTrialPolicy : public content::OriginTrialPolicy {
// OriginTrialPolicy interface
base::StringPiece GetPublicKey() const override;
+ bool IsFeatureDisabled(base::StringPiece feature) const override;
bool SetPublicKeyFromASCIIString(const std::string& ascii_public_key);
+ bool SetDisabledFeatures(const std::string& disabled_feature_list);
private:
std::string public_key_;
+ std::set<std::string> disabled_features_;
DISALLOW_COPY_AND_ASSIGN(ChromeOriginTrialPolicy);
};
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/origin_trials/chrome_origin_trial_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698