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

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

Issue 2131953002: Site Settings Desktop: Implement protocol handler section. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 section: 'privacy', 276 section: 'privacy',
277 subpage: ['site-settings', 'site-settings-category-fullscreen'], 277 subpage: ['site-settings', 'site-settings-category-fullscreen'],
278 }, 278 },
279 { 279 {
280 url: '/siteSettings/images', 280 url: '/siteSettings/images',
281 page: 'advanced', 281 page: 'advanced',
282 section: 'privacy', 282 section: 'privacy',
283 subpage: ['site-settings', 'site-settings-category-images'], 283 subpage: ['site-settings', 'site-settings-category-images'],
284 }, 284 },
285 { 285 {
286 url: '/siteSettings/handlers',
287 page: 'advanced',
288 section: 'privacy',
289 subpage: ['site-settings', 'protocol-handlers'],
290 },
291 {
292 url: '/siteSettings/javascript',
293 page: 'advanced',
294 section: 'privacy',
295 subpage: ['site-settings', 'site-settings-category-javascript'],
296 },
297 {
286 url: '/siteSettings/keygen', 298 url: '/siteSettings/keygen',
287 page: 'advanced', 299 page: 'advanced',
288 section: 'privacy', 300 section: 'privacy',
289 subpage: ['site-settings', 'site-settings-category-keygen'], 301 subpage: ['site-settings', 'site-settings-category-keygen'],
290 }, 302 },
291 { 303 {
292 url: '/siteSettings/location', 304 url: '/siteSettings/location',
293 page: 'advanced', 305 page: 'advanced',
294 section: 'privacy', 306 section: 'privacy',
295 subpage: ['site-settings', 'site-settings-category-location'], 307 subpage: ['site-settings', 'site-settings-category-location'],
296 }, 308 },
297 { 309 {
298 url: '/siteSettings/javascript',
299 page: 'advanced',
300 section: 'privacy',
301 subpage: ['site-settings', 'site-settings-category-javascript'],
302 },
303 {
304 url: '/siteSettings/microphone', 310 url: '/siteSettings/microphone',
305 page: 'advanced', 311 page: 'advanced',
306 section: 'privacy', 312 section: 'privacy',
307 subpage: ['site-settings', 'site-settings-category-microphone'], 313 subpage: ['site-settings', 'site-settings-category-microphone'],
308 }, 314 },
309 { 315 {
310 url: '/siteSettings/notifications', 316 url: '/siteSettings/notifications',
311 page: 'advanced', 317 page: 'advanced',
312 section: 'privacy', 318 section: 'privacy',
313 subpage: ['site-settings', 'site-settings-category-notifications'], 319 subpage: ['site-settings', 'site-settings-category-notifications'],
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 'site-details'], 379 'site-details'],
374 }, 380 },
375 { 381 {
376 url: '/siteSettings/images/details', 382 url: '/siteSettings/images/details',
377 page: 'advanced', 383 page: 'advanced',
378 section: 'privacy', 384 section: 'privacy',
379 subpage: ['site-settings', 'site-settings-category-images', 385 subpage: ['site-settings', 'site-settings-category-images',
380 'site-details'], 386 'site-details'],
381 }, 387 },
382 { 388 {
389 url: '/siteSettings/javascript/details',
390 page: 'advanced',
391 section: 'privacy',
392 subpage: ['site-settings', 'site-settings-category-javascript',
393 'site-details'],
394 },
395 {
383 url: '/siteSettings/keygen/details', 396 url: '/siteSettings/keygen/details',
384 page: 'advanced', 397 page: 'advanced',
385 section: 'privacy', 398 section: 'privacy',
386 subpage: ['site-settings', 'site-settings-category-keygen', 399 subpage: ['site-settings', 'site-settings-category-keygen',
387 'site-details'], 400 'site-details'],
388 }, 401 },
389 { 402 {
390 url: '/siteSettings/location/details', 403 url: '/siteSettings/location/details',
391 page: 'advanced', 404 page: 'advanced',
392 section: 'privacy', 405 section: 'privacy',
393 subpage: ['site-settings', 'site-settings-category-location', 406 subpage: ['site-settings', 'site-settings-category-location',
394 'site-details'], 407 'site-details'],
395 }, 408 },
396 { 409 {
397 url: '/siteSettings/javascript/details',
398 page: 'advanced',
399 section: 'privacy',
400 subpage: ['site-settings', 'site-settings-category-javascript',
401 'site-details'],
402 },
403 {
404 url: '/siteSettings/microphone/details', 410 url: '/siteSettings/microphone/details',
405 page: 'advanced', 411 page: 'advanced',
406 section: 'privacy', 412 section: 'privacy',
407 subpage: ['site-settings', 'site-settings-category-microphone', 413 subpage: ['site-settings', 'site-settings-category-microphone',
408 'site-details'], 414 'site-details'],
409 }, 415 },
410 { 416 {
411 url: '/siteSettings/notifications/details', 417 url: '/siteSettings/notifications/details',
412 page: 'advanced', 418 page: 'advanced',
413 section: 'privacy', 419 section: 'privacy',
(...skipping 222 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