| OLD | NEW |
| 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 // TODO(rdsmith) Note that SDCH has been disabled in Chrome as of M59. |
| 6 // This code is being retained for examining dumps generated before that |
| 7 // milestone. It's probably fine to remove it in M64 or later. |
| 8 |
| 5 /** | 9 /** |
| 6 * This view displays information related to SDCH. | 10 * This view displays information related to SDCH. |
| 7 * | 11 * |
| 8 * Shows loaded dictionaries, blacklisted domains and SDCH errors. | 12 * Shows loaded dictionaries, blacklisted domains and SDCH errors. |
| 9 */ | 13 */ |
| 10 var SdchView = (function() { | 14 var SdchView = (function() { |
| 11 'use strict'; | 15 'use strict'; |
| 12 | 16 |
| 13 // We inherit from DivView. | 17 // We inherit from DivView. |
| 14 var superClass = DivView; | 18 var superClass = DivView; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 if (!sdchInfo || typeof(sdchInfo.sdch_enabled) === 'undefined') | 55 if (!sdchInfo || typeof(sdchInfo.sdch_enabled) === 'undefined') |
| 52 return false; | 56 return false; |
| 53 var input = new JsEvalContext(sdchInfo); | 57 var input = new JsEvalContext(sdchInfo); |
| 54 jstProcess(input, $(SdchView.MAIN_BOX_ID)); | 58 jstProcess(input, $(SdchView.MAIN_BOX_ID)); |
| 55 return true; | 59 return true; |
| 56 }, | 60 }, |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 return SdchView; | 63 return SdchView; |
| 60 })(); | 64 })(); |
| OLD | NEW |