Fix a couple bugs in the settings_page_header wrt breadcrumbs.
commitc9febe9f2462a1bd2b2fd5188fd05c88c552220b
authorjlklein <jlklein@chromium.org>
Thu, 4 Jun 2015 02:07:30 +0000 (3 19:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Jun 2015 02:07:58 +0000 (4 02:07 +0000)
tree337d236b7fbae3e8eb2983212ee9ad66c343f5ca
parentb4e68c87604b6d3b122fe077f8c9d619974317df
Fix a couple bugs in the settings_page_header wrt breadcrumbs.

1) Do not clear the pagestack when selectedPage is undefined.
2) Use the last item in the stack for currentPageTitle instead of the first.
3) Update to MoreRouting.urlFor to adjust for more-routing changes for 0.8.

BUG=495817

Review URL: https://codereview.chromium.org/1169473002

Cr-Commit-Position: refs/heads/master@{#332765}
chrome/browser/resources/settings/settings_page/settings_page_header.html
chrome/browser/resources/settings/settings_page/settings_page_header.js