| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 | 6 * @fileoverview |
| 7 * 'settings-router' is a simple router for settings. Its responsibilites: | 7 * 'settings-router' is a simple router for settings. Its responsibilites: |
| 8 * - Update the URL when the routing state changes. | 8 * - Update the URL when the routing state changes. |
| 9 * - Initialize the routing state with the initial URL. | 9 * - Initialize the routing state with the initial URL. |
| 10 * - Process and validate all routing state changes. | 10 * - Process and validate all routing state changes. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 subpageTitles: ['searchEnginesPageTitle'], | 105 subpageTitles: ['searchEnginesPageTitle'], |
| 106 }, | 106 }, |
| 107 { | 107 { |
| 108 url: '/searchEngines/advanced', | 108 url: '/searchEngines/advanced', |
| 109 page: 'basic', | 109 page: 'basic', |
| 110 section: 'search', | 110 section: 'search', |
| 111 subpage: ['search-engines', 'search-engines-advanced'], | 111 subpage: ['search-engines', 'search-engines-advanced'], |
| 112 subpageTitles: ['searchEnginesPageTitle', 'advancedPageTitle'], | 112 subpageTitles: ['searchEnginesPageTitle', 'advancedPageTitle'], |
| 113 }, | 113 }, |
| 114 { | 114 { |
| 115 url: '/syncSetup', |
| 116 page: 'basic', |
| 117 section: 'signin', |
| 118 subpage: ['sync'], |
| 119 subpageTitles: ['syncPageTitle'], |
| 120 }, |
| 121 { |
| 115 url: '/certificates', | 122 url: '/certificates', |
| 116 page: 'advanced', | 123 page: 'advanced', |
| 117 section: 'privacy', | 124 section: 'privacy', |
| 118 subpage: ['manage-certificates'], | 125 subpage: ['manage-certificates'], |
| 119 subpageTitles: ['manageCertificates'], | 126 subpageTitles: ['manageCertificates'], |
| 120 }, | 127 }, |
| 121 { | 128 { |
| 122 url: '/content', | 129 url: '/content', |
| 123 page: 'advanced', | 130 page: 'advanced', |
| 124 section: 'privacy', | 131 section: 'privacy', |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 history.replaceState(historicState, null); | 225 history.replaceState(historicState, null); |
| 219 } | 226 } |
| 220 | 227 |
| 221 return; | 228 return; |
| 222 } | 229 } |
| 223 } | 230 } |
| 224 | 231 |
| 225 assertNotReached('Route not found: ' + JSON.stringify(newRoute)); | 232 assertNotReached('Route not found: ' + JSON.stringify(newRoute)); |
| 226 }, | 233 }, |
| 227 }); | 234 }); |
| OLD | NEW |