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

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

Issue 2121303003: Remove the "Settings" packaged app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/options/options_settings_app.js
diff --git a/chrome/browser/resources/options/options_settings_app.js b/chrome/browser/resources/options/options_settings_app.js
deleted file mode 100644
index 72d2928e4a66f5374bc50075a7e42d4827c7b9da..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/options/options_settings_app.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-(function() {
- if (document.location != 'chrome://settings-frame/options_settings_app.html')
- return;
-
- OptionsPage.setIsSettingsApp(true);
-
- // Override the offset in the options page.
- PageManager.horizontalOffset = 38;
-
- document.addEventListener('DOMContentLoaded', function() {
- // Hide everything by default.
- var sections = document.querySelectorAll('section');
- for (var i = 0; i < sections.length; i++)
- sections[i].hidden = true;
-
- var whitelistedSections = [
- 'advanced-settings',
- 'downloads-section',
- 'handlers-section',
- 'languages-section',
- 'network-section',
- 'notifications-section',
- 'sync-section'
- ];
-
- for (var i = 0; i < whitelistedSections.length; i++)
- $(whitelistedSections[i]).hidden = false;
-
- // Avoid showing an empty Users section on ash. Note that profiles-section
- // is actually a div element, rather than section, so is not hidden after
- // the querySelectorAll(), above.
- $('sync-users-section').hidden = $('profiles-section').hidden;
-
- // Hide Import bookmarks and settings button.
- $('import-data').hidden = true;
-
- // Hide create / edit / delete profile buttons.
- $('profiles-create').hidden = true;
- $('profiles-delete').hidden = true;
- $('profiles-manage').hidden = true;
-
- // Remove the 'X'es on profiles in the profile list.
- $('profiles-list').canDeleteItems = false;
- });
-
- loadTimeData.overrideValues(/** @type {!Object} */(
- loadTimeData.getValue('settingsApp')));
-}());
« no previous file with comments | « chrome/browser/resources/options/options_settings_app.css ('k') | chrome/browser/resources/settings_app/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698