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

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: Created 6 years, 7 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 OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ResetProfileSettingsBanner = options.ResetProfileSettingsBanner; 7 var ResetProfileSettingsBanner = options.ResetProfileSettingsBanner;
8 8
9 /** 9 /**
10 * ResetProfileSettingsOverlay class 10 * ResetProfileSettingsOverlay class
(...skipping 28 matching lines...) Expand all
39 [$('send-settings').checked]); 39 [$('send-settings').checked]);
40 }; 40 };
41 $('expand-feedback').onclick = function(event) { 41 $('expand-feedback').onclick = function(event) {
42 var feedbackTemplate = $('feedback-template'); 42 var feedbackTemplate = $('feedback-template');
43 feedbackTemplate.hidden = !feedbackTemplate.hidden; 43 feedbackTemplate.hidden = !feedbackTemplate.hidden;
44 }; 44 };
45 }, 45 },
46 46
47 /** @override */ 47 /** @override */
48 didShowPage: function() { 48 didShowPage: function() {
49 ResetProfileSettingsBanner.dismiss();
50 chrome.send('onShowResetProfileDialog'); 49 chrome.send('onShowResetProfileDialog');
51 }, 50 },
52 51
53 /** @override */ 52 /** @override */
54 didClosePage: function() { 53 didClosePage: function() {
55 chrome.send('onHideResetProfileDialog'); 54 chrome.send('onHideResetProfileDialog');
56 }, 55 },
57 }; 56 };
58 57
59 /** 58 /**
(...skipping 27 matching lines...) Expand all
87 var input = new JsEvalContext(feedbackListData); 86 var input = new JsEvalContext(feedbackListData);
88 var output = $('feedback-template'); 87 var output = $('feedback-template');
89 jstProcess(input, output); 88 jstProcess(input, output);
90 }; 89 };
91 90
92 // Export 91 // Export
93 return { 92 return {
94 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay 93 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay
95 }; 94 };
96 }); 95 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698