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

Side by Side Diff: chrome/browser/resources/cryptotoken/googlecorpindividualattest.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Provides a Google corp implementation of IndividualAttestation. 6 * @fileoverview Provides a Google corp implementation of IndividualAttestation.
7 */ 7 */
8 'use strict'; 8 'use strict';
9 9
10 /** 10 /**
(...skipping 18 matching lines...) Expand all
29 * App ID used by Google employee accounts. 29 * App ID used by Google employee accounts.
30 * @const 30 * @const
31 */ 31 */
32 GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID = 32 GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID =
33 'https://www.gstatic.com/securitykey/a/google.com/origins.json'; 33 'https://www.gstatic.com/securitykey/a/google.com/origins.json';
34 34
35 /** 35 /**
36 * Hash of the app ID used by Google employee accounts. 36 * Hash of the app ID used by Google employee accounts.
37 * @const 37 * @const
38 */ 38 */
39 GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID_HASH = 39 GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID_HASH = B64_encode(
40 B64_encode(sha256HashOfString( 40 sha256HashOfString(GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID));
41 GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698