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

Unified Diff: chrome/renderer/origin_trials/origin_trial_key_manager.h

Issue 1737693002: Allow command-line arguments to override EF public key (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments from PS#1 Created 4 years, 10 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: chrome/renderer/origin_trials/origin_trial_key_manager.h
diff --git a/chrome/renderer/origin_trials/origin_trial_key_manager.h b/chrome/renderer/origin_trials/origin_trial_key_manager.h
index 18b01d841a82a93fcbd1e94f17b89d25b96b550d..5f01b50aa3e2788f8395b5fff79ae57c3dc46963 100644
--- a/chrome/renderer/origin_trials/origin_trial_key_manager.h
+++ b/chrome/renderer/origin_trials/origin_trial_key_manager.h
@@ -5,11 +5,19 @@
#ifndef CHROME_RENDERER_ORIGIN_TRIALS_ORIGIN_TRIAL_KEY_MANAGER_H_
#define CHROME_RENDERER_ORIGIN_TRIALS_ORIGIN_TRIAL_KEY_MANAGER_H_
+#include <string>
+
#include "base/strings/string_piece.h"
class OriginTrialKeyManager {
public:
- base::StringPiece GetPublicKey();
+ OriginTrialKeyManager();
+ ~OriginTrialKeyManager();
Alexei Svitkine (slow) 2016/02/26 16:29:08 Nit: Add empty line below.
iclelland 2016/02/26 19:55:04 Done.
+ bool SetPublicKeyFromASCIIString(const std::string& ascii_public_key);
+ base::StringPiece GetPublicKey() const;
+
+ private:
+ std::string public_key_;
};
Alexei Svitkine (slow) 2016/02/26 16:29:08 Nit: DISALLOW_COPY_AND_ASSIGN()
iclelland 2016/02/26 19:55:04 Done. Thanks.
#endif // CHROME_RENDERER_ORIGIN_TRIALS_ORIGIN_TRIAL_KEY_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698