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

Side by Side Diff: chrome/browser/resources/settings/settings_page/settings_router.js

Issue 2097673002: Add a settings screen that lets the user choose how they unlock their device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pin-unlock-settings-authenticate
Patch Set: Address comments Created 4 years, 5 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 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 * @typedef {{ 6 * @typedef {{
7 * dialog: (string|undefined), 7 * dialog: (string|undefined),
8 * page: string, 8 * page: string,
9 * section: string, 9 * section: string,
10 * subpage: !Array<string>, 10 * subpage: !Array<string>,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 subpage: ['sync'], 208 subpage: ['sync'],
209 }, 209 },
210 <if expr="chromeos"> 210 <if expr="chromeos">
211 { 211 {
212 url: '/quickUnlock/authenticate', 212 url: '/quickUnlock/authenticate',
213 page: 'basic', 213 page: 'basic',
214 section: 'people', 214 section: 'people',
215 subpage: ['quick-unlock-authenticate'], 215 subpage: ['quick-unlock-authenticate'],
216 }, 216 },
217 { 217 {
218 url: '/quickUnlock/chooseMethod',
219 page: 'basic',
220 section: 'people',
221 subpage: ['quick-unlock-choose-method'],
222 },
223 {
218 url: '/accounts', 224 url: '/accounts',
219 page: 'basic', 225 page: 'basic',
220 section: 'people', 226 section: 'people',
221 subpage: ['users'], 227 subpage: ['users'],
222 }, 228 },
223 </if> 229 </if>
224 { 230 {
225 url: '/privacy', 231 url: '/privacy',
226 page: 'advanced', 232 page: 'advanced',
227 section: 'privacy', 233 section: 'privacy',
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 window.history.replaceState(historicRoute, document.title); 642 window.history.replaceState(historicRoute, document.title);
637 } 643 }
638 644
639 return; 645 return;
640 } 646 }
641 } 647 }
642 648
643 assertNotReached('Route not found: ' + JSON.stringify(newRoute)); 649 assertNotReached('Route not found: ' + JSON.stringify(newRoute));
644 }, 650 },
645 }); 651 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698