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

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

Issue 2002253004: Add warning message when disabling ARC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix css copy detection Created 4 years, 6 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 PageManager.registerOverlay(PreferredNetworks.getInstance(), 221 PageManager.registerOverlay(PreferredNetworks.getInstance(),
222 BrowserOptions.getInstance()); 222 BrowserOptions.getInstance());
223 PageManager.registerOverlay(PowerOverlay.getInstance(), 223 PageManager.registerOverlay(PowerOverlay.getInstance(),
224 BrowserOptions.getInstance(), 224 BrowserOptions.getInstance(),
225 [$('power-settings-link')]); 225 [$('power-settings-link')]);
226 PageManager.registerOverlay(StorageManager.getInstance(), 226 PageManager.registerOverlay(StorageManager.getInstance(),
227 BrowserOptions.getInstance(), 227 BrowserOptions.getInstance(),
228 [$('storage-manager-button')]); 228 [$('storage-manager-button')]);
229 PageManager.registerOverlay(ThirdPartyImeConfirmOverlay.getInstance(), 229 PageManager.registerOverlay(ThirdPartyImeConfirmOverlay.getInstance(),
230 LanguageOptions.getInstance()); 230 LanguageOptions.getInstance());
231 PageManager.registerOverlay(
232 new ConfirmDialog(
233 'arcOptOutConfirm',
234 loadTimeData.getString('arcOptOutConfirmOverlayTabTitle'),
235 'arc-opt-out-confirm-overlay',
236 /** @type {HTMLButtonElement} */($('arc-opt-out-confirm-ok')),
237 /** @type {HTMLButtonElement} */($('arc-opt-out-confirm-cancel')),
238 $('android-apps-enabled')['pref'],
239 $('android-apps-enabled')['metric'],
240 undefined,
241 false),
242 BrowserOptions.getInstance());
231 } 243 }
232 244
233 if (!cr.isWindows && !cr.isMac) { 245 if (!cr.isWindows && !cr.isMac) {
234 PageManager.registerOverlay(CertificateBackupOverlay.getInstance(), 246 PageManager.registerOverlay(CertificateBackupOverlay.getInstance(),
235 CertificateManager.getInstance()); 247 CertificateManager.getInstance());
236 PageManager.registerOverlay(CertificateEditCaTrustOverlay.getInstance(), 248 PageManager.registerOverlay(CertificateEditCaTrustOverlay.getInstance(),
237 CertificateManager.getInstance()); 249 CertificateManager.getInstance());
238 PageManager.registerOverlay(CertificateImportErrorOverlay.getInstance(), 250 PageManager.registerOverlay(CertificateImportErrorOverlay.getInstance(),
239 CertificateManager.getInstance()); 251 CertificateManager.getInstance());
240 PageManager.registerOverlay(CertificateManager.getInstance(), 252 PageManager.registerOverlay(CertificateManager.getInstance(),
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 }; 296 };
285 297
286 /** 298 /**
287 * Listener for the |popstate| event. 299 * Listener for the |popstate| event.
288 * @param {Event} e The |popstate| event. 300 * @param {Event} e The |popstate| event.
289 */ 301 */
290 window.onpopstate = function(e) { 302 window.onpopstate = function(e) {
291 var pageName = PageManager.getPageNameFromPath(); 303 var pageName = PageManager.getPageNameFromPath();
292 PageManager.setState(pageName, location.hash, e.state); 304 PageManager.setState(pageName, location.hash, e.state);
293 }; 305 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/options.html ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698