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

Unified Diff: chrome/browser/resources/options/do_not_track_confirm_overlay.js

Issue 11232059: Clean up copy&paste in confirmation dialogs for prefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit addressed. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/do_not_track_confirm_overlay.js
diff --git a/chrome/browser/resources/options/do_not_track_confirm_overlay.js b/chrome/browser/resources/options/do_not_track_confirm_overlay.js
deleted file mode 100644
index 868a5142913525efcab6295d9bb3fc5ae3be3c1e..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/options/do_not_track_confirm_overlay.js
+++ /dev/null
@@ -1,45 +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;
-
- /**
- * DoNotTrackConfirmOverlay class
- * Dialog to confirm that the user really wants to enable Do Not Track.
- * @extends {SettingsDialog}
- */
- function DoNotTrackConfirmOverlay() {
- SettingsDialog.call(
- this,
- 'doNotTrackConfirm',
- loadTimeData.getString('doNotTrackConfirmOverlayTabTitle'),
- 'do-not-track-confirm-overlay',
- $('do-not-track-confirm-ok'),
- $('do-not-track-confirm-cancel'));
- };
-
- cr.addSingletonGetter(DoNotTrackConfirmOverlay);
-
- DoNotTrackConfirmOverlay.prototype = {
- __proto__: SettingsDialog.prototype,
-
- /** @inheritDoc */
- handleConfirm: function() {
- SettingsDialog.prototype.handleConfirm.call(this);
- Preferences.setBooleanPref('enable_do_not_track', true, true);
- },
-
- /** @inheritDoc */
- handleCancel: function() {
- SettingsDialog.prototype.handleCancel.call(this);
- $('do-not-track-enabled').checked = false;
- },
- };
-
- // Export
- return {
- DoNotTrackConfirmOverlay: DoNotTrackConfirmOverlay
- };
-});
« no previous file with comments | « chrome/browser/resources/options/confirm_dialog.js ('k') | chrome/browser/resources/options/instant_confirm_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698