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

Unified Diff: chrome/browser/resources/options/options.js

Issue 6480039: chrome://settings - Provide method for pages to prevent themselves being shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment update Created 9 years, 10 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/options/options.js
diff --git a/chrome/browser/resources/options/options.js b/chrome/browser/resources/options/options.js
index dfae2b3df36d32c1f6d4e10e007b56c7c78f2dd5..dc697591f864dcc1e4d543e08a89546cb46d86ec 100644
--- a/chrome/browser/resources/options/options.js
+++ b/chrome/browser/resources/options/options.js
@@ -161,16 +161,11 @@ function load() {
OptionsPage.initialize();
var path = document.location.pathname;
- // TODO(estade): remove this explicit hash handling. Pages should check for
- // location.hash in didShowPage.
- var hash = document.location.hash;
if (path.length > 1) {
var pageName = path.slice(1);
// Show page, but don't update history (there's already an entry for it).
OptionsPage.showPageByName(pageName, false);
- if (hash.length > 1)
- OptionsPage.handleHashForPage(pageName, hash.slice(1));
} else {
OptionsPage.showDefaultPage();
}

Powered by Google App Engine
This is Rietveld 408576698