summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/options/instant_confirm_overlay.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/options/instant_confirm_overlay.js')
-rw-r--r--chrome/browser/resources/options/instant_confirm_overlay.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/chrome/browser/resources/options/instant_confirm_overlay.js b/chrome/browser/resources/options/instant_confirm_overlay.js
deleted file mode 100644
index db0a37e..0000000
--- a/chrome/browser/resources/options/instant_confirm_overlay.js
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-cr.define('options', function() {
- var SettingsDialog = options.SettingsDialog;
-
- /*
- * InstantConfirmOverlay class
- * Dialog to confirm that the user really wants to enable Chrome Instant.
- * @extends {SettingsDialog}
- */
- function InstantConfirmOverlay() {
- SettingsDialog.call(this,
- 'instantConfirm',
- loadTimeData.getString('instantConfirmOverlayTabTitle'),
- 'instantConfirmOverlay',
- $('instantConfirmOk'),
- $('instantConfirmCancel'));
- };
-
- cr.addSingletonGetter(InstantConfirmOverlay);
-
- InstantConfirmOverlay.prototype = {
- __proto__: SettingsDialog.prototype,
-
- /** @inheritDoc */
- initializePage: function() {
- SettingsDialog.prototype.initializePage.call(this);
- },
-
- /** @inheritDoc */
- handleConfirm: function() {
- SettingsDialog.prototype.handleConfirm.call(this);
- Preferences.setBooleanPref('instant.confirm_dialog_shown', true, true);
- Preferences.setBooleanPref('instant.enabled', true, true);
- },
-
- /** @inheritDoc */
- handleCancel: function() {
- SettingsDialog.prototype.handleCancel.call(this);
- $('instant-enabled-control').checked = false;
- },
- };
-
- // Export
- return {
- InstantConfirmOverlay: InstantConfirmOverlay
- };
-});