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

Side by Side Diff: chrome/common/origin_trials/origin_trial_key_manager.cc

Issue 1653263005: [Experimental Framework] Move the trial token public key out of content and into the embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase; fix DLL export error in VS compile 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/common/origin_trials/origin_trial_key_manager.h"
6
7 #include <stdint.h>
8
9 // This is the default public key used for validating signatures.
10 // TODO(iclelland): Provide a mechanism to allow for multiple signing keys.
11 // https://crbug.com/543220
12 // TODO(iclelland): Provide a mechanism to override, replace or disable this key
13 // with field trials.
14 static const uint8_t kPublicKey[] = {
15 0x7c, 0xc4, 0xb8, 0x9a, 0x93, 0xba, 0x6e, 0xe2, 0xd0, 0xfd, 0x03,
16 0x1d, 0xfb, 0x32, 0x66, 0xc7, 0x3b, 0x72, 0xfd, 0x54, 0x3a, 0x07,
17 0x51, 0x14, 0x66, 0xaa, 0x02, 0x53, 0x4e, 0x33, 0xa1, 0x15,
18 };
19
20 base::StringPiece ChromeOriginTrialKeyManager::GetPublicKey() {
chasej 2016/02/05 19:35:28 The file name doesn't match the class name. I woul
iclelland 2016/02/05 20:18:08 Renamed class to match filename instead.
21 return base::StringPiece(reinterpret_cast<const char*>(kPublicKey),
22 arraysize(kPublicKey));
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698