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

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

Issue 533183002: Revert "Eliminate all code related to the AutomaticProfileResetter." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 var AddLanguageOverlay = options.AddLanguageOverlay; 5 var AddLanguageOverlay = options.AddLanguageOverlay;
6 var AlertOverlay = options.AlertOverlay; 6 var AlertOverlay = options.AlertOverlay;
7 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay; 7 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay;
8 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay; 8 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay;
9 var AutofillOptions = options.AutofillOptions; 9 var AutofillOptions = options.AutofillOptions;
10 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner; 10 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner;
(...skipping 17 matching lines...) Expand all
28 var HotwordConfirmDialog = options.HotwordConfirmDialog; 28 var HotwordConfirmDialog = options.HotwordConfirmDialog;
29 var ImportDataOverlay = options.ImportDataOverlay; 29 var ImportDataOverlay = options.ImportDataOverlay;
30 var LanguageOptions = options.LanguageOptions; 30 var LanguageOptions = options.LanguageOptions;
31 var ManageProfileOverlay = options.ManageProfileOverlay; 31 var ManageProfileOverlay = options.ManageProfileOverlay;
32 var OptionsFocusManager = options.OptionsFocusManager; 32 var OptionsFocusManager = options.OptionsFocusManager;
33 var OptionsPage = options.OptionsPage; 33 var OptionsPage = options.OptionsPage;
34 var PageManager = cr.ui.pageManager.PageManager; 34 var PageManager = cr.ui.pageManager.PageManager;
35 var PasswordManager = options.PasswordManager; 35 var PasswordManager = options.PasswordManager;
36 var Preferences = options.Preferences; 36 var Preferences = options.Preferences;
37 var PreferredNetworks = options.PreferredNetworks; 37 var PreferredNetworks = options.PreferredNetworks;
38 var ResetProfileSettingsBanner = options.ResetProfileSettingsBanner;
38 var ResetProfileSettingsOverlay = options.ResetProfileSettingsOverlay; 39 var ResetProfileSettingsOverlay = options.ResetProfileSettingsOverlay;
39 var SearchEngineManager = options.SearchEngineManager; 40 var SearchEngineManager = options.SearchEngineManager;
40 var SearchPage = options.SearchPage; 41 var SearchPage = options.SearchPage;
41 var StartupOverlay = options.StartupOverlay; 42 var StartupOverlay = options.StartupOverlay;
42 var SupervisedUserCreateConfirmOverlay = 43 var SupervisedUserCreateConfirmOverlay =
43 options.SupervisedUserCreateConfirmOverlay; 44 options.SupervisedUserCreateConfirmOverlay;
44 var SupervisedUserImportOverlay = options.SupervisedUserImportOverlay; 45 var SupervisedUserImportOverlay = options.SupervisedUserImportOverlay;
45 var SupervisedUserLearnMoreOverlay = options.SupervisedUserLearnMoreOverlay; 46 var SupervisedUserLearnMoreOverlay = options.SupervisedUserLearnMoreOverlay;
46 var SyncSetupOverlay = options.SyncSetupOverlay; 47 var SyncSetupOverlay = options.SyncSetupOverlay;
47 var WebsiteSettingsEditor = options.WebsiteSettings.WebsiteSettingsEditor; 48 var WebsiteSettingsEditor = options.WebsiteSettings.WebsiteSettingsEditor;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 PageManager.registerOverlay(CertificateManager.getInstance(), 232 PageManager.registerOverlay(CertificateManager.getInstance(),
232 BrowserOptions.getInstance(), 233 BrowserOptions.getInstance(),
233 [$('certificatesManageButton')]); 234 [$('certificatesManageButton')]);
234 PageManager.registerOverlay(CertificateRestoreOverlay.getInstance(), 235 PageManager.registerOverlay(CertificateRestoreOverlay.getInstance(),
235 CertificateManager.getInstance()); 236 CertificateManager.getInstance());
236 } 237 }
237 238
238 cr.ui.FocusManager.disableMouseFocusOnButtons(); 239 cr.ui.FocusManager.disableMouseFocusOnButtons();
239 OptionsFocusManager.getInstance().initialize(); 240 OptionsFocusManager.getInstance().initialize();
240 Preferences.getInstance().initialize(); 241 Preferences.getInstance().initialize();
242 ResetProfileSettingsBanner.getInstance().initialize();
241 AutomaticSettingsResetBanner.getInstance().initialize(); 243 AutomaticSettingsResetBanner.getInstance().initialize();
242 OptionsPage.initialize(); 244 OptionsPage.initialize();
243 PageManager.initialize(BrowserOptions.getInstance()); 245 PageManager.initialize(BrowserOptions.getInstance());
244 PageManager.addObserver(new uber.PageManagerObserver()); 246 PageManager.addObserver(new uber.PageManagerObserver());
245 uber.onContentFrameLoaded(); 247 uber.onContentFrameLoaded();
246 248
247 var pageName = PageManager.getPageNameFromPath(); 249 var pageName = PageManager.getPageNameFromPath();
248 // Still update history so that chrome://settings/nonexistant redirects 250 // Still update history so that chrome://settings/nonexistant redirects
249 // appropriately to chrome://settings/. If the URL matches, updateHistory_ 251 // appropriately to chrome://settings/. If the URL matches, updateHistory_
250 // will avoid the extra replaceState. 252 // will avoid the extra replaceState.
(...skipping 25 matching lines...) Expand all
276 }; 278 };
277 279
278 /** 280 /**
279 * Listener for the |popstate| event. 281 * Listener for the |popstate| event.
280 * @param {Event} e The |popstate| event. 282 * @param {Event} e The |popstate| event.
281 */ 283 */
282 window.onpopstate = function(e) { 284 window.onpopstate = function(e) {
283 var pageName = PageManager.getPageNameFromPath(); 285 var pageName = PageManager.getPageNameFromPath();
284 PageManager.setState(pageName, location.hash, e.state); 286 PageManager.setState(pageName, location.hash, e.state);
285 }; 287 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/resources/options/options_bundle.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698