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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 (function() {
6 if (document.location != 'chrome://settings-frame/options_settings_app.html')
7 return;
8
9 OptionsPage.setIsSettingsApp(true);
10
11 // Override the offset in the options page.
12 PageManager.horizontalOffset = 38;
13
14 document.addEventListener('DOMContentLoaded', function() {
15 // Hide everything by default.
16 var sections = document.querySelectorAll('section');
17 for (var i = 0; i < sections.length; i++)
18 sections[i].hidden = true;
19
20 var whitelistedSections = [
21 'advanced-settings',
22 'downloads-section',
23 'handlers-section',
24 'languages-section',
25 'network-section',
26 'notifications-section',
27 'sync-section'
28 ];
29
30 for (var i = 0; i < whitelistedSections.length; i++)
31 $(whitelistedSections[i]).hidden = false;
32
33 // Avoid showing an empty Users section on ash. Note that profiles-section
34 // is actually a div element, rather than section, so is not hidden after
35 // the querySelectorAll(), above.
36 $('sync-users-section').hidden = $('profiles-section').hidden;
37
38 // Hide Import bookmarks and settings button.
39 $('import-data').hidden = true;
40
41 // Hide create / edit / delete profile buttons.
42 $('profiles-create').hidden = true;
43 $('profiles-delete').hidden = true;
44 $('profiles-manage').hidden = true;
45
46 // Remove the 'X'es on profiles in the profile list.
47 $('profiles-list').canDeleteItems = false;
48 });
49
50 loadTimeData.overrideValues(/** @type {!Object} */(
51 loadTimeData.getValue('settingsApp')));
52 }());
OLDNEW
« 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