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

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

Issue 2453433003: MD Settings: Fix /handlers URL (Closed)
Patch Set: fix 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
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('/siteSettings');
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('/siteSettings/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');
154 r.SITE_SETTINGS_IMAGES = r.SITE_SETTINGS.createChild('images'); 154 r.SITE_SETTINGS_IMAGES = r.SITE_SETTINGS.createChild('images');
155 r.SITE_SETTINGS_JAVASCRIPT = r.SITE_SETTINGS.createChild('javascript'); 155 r.SITE_SETTINGS_JAVASCRIPT = r.SITE_SETTINGS.createChild('javascript');
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 RouteObserverBehavior: RouteObserverBehavior, 364 RouteObserverBehavior: RouteObserverBehavior,
365 getRouteForPath: getRouteForPath, 365 getRouteForPath: getRouteForPath,
366 initializeRouteFromUrl: initializeRouteFromUrl, 366 initializeRouteFromUrl: initializeRouteFromUrl,
367 getCurrentRoute: getCurrentRoute, 367 getCurrentRoute: getCurrentRoute,
368 getQueryParameters: getQueryParameters, 368 getQueryParameters: getQueryParameters,
369 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, 369 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate,
370 navigateTo: navigateTo, 370 navigateTo: navigateTo,
371 navigateToPreviousRoute: navigateToPreviousRoute, 371 navigateToPreviousRoute: navigateToPreviousRoute,
372 }; 372 };
373 }); 373 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698