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

Side by Side Diff: chrome/browser/resources/settings/route.js

Issue 2454093003: MD Settings: Update Content Settings Types URLs. (Closed)
Patch Set: address pkasting comments Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 cr.define('settings', function() { 5 cr.define('settings', function() {
6 /** 6 /**
7 * Class for navigable routes. May only be instantiated within this file. 7 * Class for navigable routes. May only be instantiated within this file.
8 * @constructor 8 * @constructor
9 * @param {string} path 9 * @param {string} path
10 * @private 10 * @private
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 r.POINTERS = r.DEVICE.createChild('/pointer-overlay'); 130 r.POINTERS = r.DEVICE.createChild('/pointer-overlay');
131 r.KEYBOARD = r.DEVICE.createChild('/keyboard-overlay'); 131 r.KEYBOARD = r.DEVICE.createChild('/keyboard-overlay');
132 r.DISPLAY = r.DEVICE.createChild('/display'); 132 r.DISPLAY = r.DEVICE.createChild('/display');
133 r.STYLUS = r.DEVICE.createChild('/stylus'); 133 r.STYLUS = r.DEVICE.createChild('/stylus');
134 r.STORAGE = r.DEVICE.createChild('/storage'); 134 r.STORAGE = r.DEVICE.createChild('/storage');
135 </if> 135 </if>
136 136
137 r.PRIVACY = r.ADVANCED.createSection('/privacy', 'privacy'); 137 r.PRIVACY = r.ADVANCED.createSection('/privacy', 'privacy');
138 r.CERTIFICATES = r.PRIVACY.createChild('/certificates'); 138 r.CERTIFICATES = r.PRIVACY.createChild('/certificates');
139 139
140 r.SITE_SETTINGS = r.PRIVACY.createChild('/siteSettings'); 140 r.SITE_SETTINGS = r.PRIVACY.createChild('/content');
141 r.SITE_SETTINGS_ALL = r.SITE_SETTINGS.createChild('all'); 141 r.SITE_SETTINGS_ALL = r.SITE_SETTINGS.createChild('all');
142 r.SITE_SETTINGS_SITE_DETAILS = 142 r.SITE_SETTINGS_SITE_DETAILS =
143 r.SITE_SETTINGS_ALL.createChild('/siteSettings/siteDetails'); 143 r.SITE_SETTINGS_ALL.createChild('/content/siteDetails');
144 144
145 r.SITE_SETTINGS_HANDLERS = r.SITE_SETTINGS.createChild('/handlers'); 145 r.SITE_SETTINGS_HANDLERS = r.SITE_SETTINGS.createChild('/handlers');
146 146
147 // TODO(tommycli): Find a way to refactor these repetitive category routes. 147 // TODO(tommycli): Find a way to refactor these repetitive category routes.
148 r.SITE_SETTINGS_AUTOMATIC_DOWNLOADS = 148 r.SITE_SETTINGS_AUTOMATIC_DOWNLOADS =
149 r.SITE_SETTINGS.createChild('automaticDownloads'); 149 r.SITE_SETTINGS.createChild('automaticDownloads');
150 r.SITE_SETTINGS_BACKGROUND_SYNC = 150 r.SITE_SETTINGS_BACKGROUND_SYNC =
151 r.SITE_SETTINGS.createChild('backgroundSync'); 151 r.SITE_SETTINGS.createChild('backgroundSync');
152 r.SITE_SETTINGS_CAMERA = r.SITE_SETTINGS.createChild('camera'); 152 r.SITE_SETTINGS_CAMERA = r.SITE_SETTINGS.createChild('camera');
153 r.SITE_SETTINGS_COOKIES = r.SITE_SETTINGS.createChild('cookies'); 153 r.SITE_SETTINGS_COOKIES = r.SITE_SETTINGS.createChild('cookies');
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 RouteObserverBehavior: RouteObserverBehavior, 360 RouteObserverBehavior: RouteObserverBehavior,
361 getRouteForPath: getRouteForPath, 361 getRouteForPath: getRouteForPath,
362 initializeRouteFromUrl: initializeRouteFromUrl, 362 initializeRouteFromUrl: initializeRouteFromUrl,
363 getCurrentRoute: getCurrentRoute, 363 getCurrentRoute: getCurrentRoute,
364 getQueryParameters: getQueryParameters, 364 getQueryParameters: getQueryParameters,
365 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, 365 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate,
366 navigateTo: navigateTo, 366 navigateTo: navigateTo,
367 navigateToPreviousRoute: navigateToPreviousRoute, 367 navigateToPreviousRoute: navigateToPreviousRoute,
368 }; 368 };
369 }); 369 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | chrome/browser/ui/browser_navigator_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698