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

Side by Side Diff: chrome/browser/resources/options/reset_profile_settings_overlay.js

Issue 271673006: Eliminate all code related to the AutomaticProfileResetter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit from dbeam@, using new tracked preference deprecation. Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 var Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 7
8 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner; 8 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner;
9 var ResetProfileSettingsBanner = options.ResetProfileSettingsBanner;
10 9
11 /** 10 /**
12 * ResetProfileSettingsOverlay class 11 * ResetProfileSettingsOverlay class
13 * Encapsulated handling of the 'Reset Profile Settings' overlay page. 12 * Encapsulated handling of the 'Reset Profile Settings' overlay page.
14 * @class 13 * @class
15 */ 14 */
16 function ResetProfileSettingsOverlay() { 15 function ResetProfileSettingsOverlay() {
17 Page.call(this, 'resetProfileSettings', 16 Page.call(this, 'resetProfileSettings',
18 loadTimeData.getString('resetProfileSettingsOverlayTabTitle'), 17 loadTimeData.getString('resetProfileSettingsOverlayTabTitle'),
19 'reset-profile-settings-overlay'); 18 'reset-profile-settings-overlay');
(...skipping 18 matching lines...) Expand all
38 [$('send-settings').checked]); 37 [$('send-settings').checked]);
39 }; 38 };
40 $('expand-feedback').onclick = function(event) { 39 $('expand-feedback').onclick = function(event) {
41 var feedbackTemplate = $('feedback-template'); 40 var feedbackTemplate = $('feedback-template');
42 feedbackTemplate.hidden = !feedbackTemplate.hidden; 41 feedbackTemplate.hidden = !feedbackTemplate.hidden;
43 }; 42 };
44 }, 43 },
45 44
46 /** @override */ 45 /** @override */
47 didShowPage: function() { 46 didShowPage: function() {
48 ResetProfileSettingsBanner.dismiss();
49 chrome.send('onShowResetProfileDialog'); 47 chrome.send('onShowResetProfileDialog');
50 }, 48 },
51 49
52 /** @override */ 50 /** @override */
53 didClosePage: function() { 51 didClosePage: function() {
54 chrome.send('onHideResetProfileDialog'); 52 chrome.send('onHideResetProfileDialog');
55 }, 53 },
56 }; 54 };
57 55
58 /** 56 /**
(...skipping 28 matching lines...) Expand all
87 var input = new JsEvalContext(feedbackListData); 85 var input = new JsEvalContext(feedbackListData);
88 var output = $('feedback-template'); 86 var output = $('feedback-template');
89 jstProcess(input, output); 87 jstProcess(input, output);
90 }; 88 };
91 89
92 // Export 90 // Export
93 return { 91 return {
94 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay 92 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay
95 }; 93 };
96 }); 94 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698