Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / resources / cryptotoken / errorcodes.js
blob3733ab881c2d55346dc3542fd341fb73c3f587ce
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
3 // found in the LICENSE file.
5 /**
6  * @fileoverview Errors reported by top-level request handlers.
7  */
8 'use strict';
10 /**
11  * Response status codes
12  * @const
13  * @enum {number}
14  */
15 var ErrorCodes = {
16   'OK': 0,
17   'OTHER_ERROR': 1,
18   'BAD_REQUEST': 2,
19   'CONFIGURATION_UNSUPPORTED': 3,
20   'DEVICE_INELIGIBLE': 4,
21   'TIMEOUT': 5
24 /**
25  * An error object for responses
26  * @typedef {{
27  *   errorCode: ErrorCodes,
28  *   errorMessage: (?string|undefined)
29  * }}
30  */
31 var U2fError;