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

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

Issue 5685003: DOMUI Prefs: Add a deletable item list type, and use it for startup pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits fixed Created 10 years 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/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 20c62645c06f84a7bf0e9ec7f3216845437dbfe0..927024b28803e359051fc02bcbd1e3486e2d2914 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -351,26 +351,6 @@ cr.define('options', function() {
},
/**
- * Removes the selected startup pages.
- * @private
- */
- removeSelectedStartupPages_: function() {
- var selections =
- $('startupPagesShortList').selectionModel.selectedIndexes.map(String);
- chrome.send('removeStartupPages', selections);
- },
-
- /**
- * Adds the given startup page at the current selection point.
- * @private
- */
- addStartupPage_: function(url) {
- var firstSelection =
- $('startupPagesShortList').selectionModel.selectedIndex;
- chrome.send('addStartupPage', [url, String(firstSelection)]);
- },
-
- /**
* Set the default search engine based on the popup selection.
*/
setDefaultSearchEngine: function() {
@@ -401,10 +381,6 @@ cr.define('options', function() {
StartupPageManager.getInstance().updateStartupPages_(pages);
};
- BrowserOptions.addStartupPage = function(url) {
- BrowserOptions.getInstance().addStartupPage_(url);
- };
-
// Export
return {
BrowserOptions: BrowserOptions

Powered by Google App Engine
This is Rietveld 408576698