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

Unified Diff: chrome/browser/resources/settings/site_settings/site_list.js

Issue 2156413002: Settings Router Refactor: Migrate to settings.Route.navigateTo calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use timing fix 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/site_settings/site_list.js
diff --git a/chrome/browser/resources/settings/site_settings/site_list.js b/chrome/browser/resources/settings/site_settings/site_list.js
index 3020f519716a74a72d8ff935112a28ccc1f6b276..20d9bfc4826fe7f679546c2e4f98733106239838 100644
--- a/chrome/browser/resources/settings/site_settings/site_list.js
+++ b/chrome/browser/resources/settings/site_settings/site_list.js
@@ -382,15 +382,10 @@ Polymer({
*/
onOriginTap_: function(event) {
this.selectedSite = event.model.item;
- var categorySelected =
- this.allSites ?
- 'all-sites' :
- 'site-settings-category-' + this.computeCategoryTextId(this.category);
- this.currentRoute = {
- page: this.currentRoute.page,
- section: 'privacy',
- subpage: ['site-settings', categorySelected, 'site-details'],
- };
+ if (this.allSites)
+ settings.navigateTo(settings.Route.SITE_SETTINGS_ALL_DETAILS);
+ else
+ settings.navigateTo(this.computeCategoryDetailsRoute(this.category));
},
/**

Powered by Google App Engine
This is Rietveld 408576698