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

Unified Diff: chrome/browser/resources/settings/reset_page/powerwash_dialog.js

Issue 1426943011: MD Settings: Adding Powerwash dialog for ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reset_ui2_separate_element
Patch Set: test Created 5 years, 1 month 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/settings/reset_page/powerwash_dialog.js
diff --git a/chrome/browser/resources/settings/reset_page/powerwash_dialog.js b/chrome/browser/resources/settings/reset_page/powerwash_dialog.js
new file mode 100644
index 0000000000000000000000000000000000000000..cd91533a6dcbffac825642760831864801baa16b
--- /dev/null
+++ b/chrome/browser/resources/settings/reset_page/powerwash_dialog.js
@@ -0,0 +1,34 @@
+// Copyright 2015 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.
+
+/**
+ * @fileoverview
+ * 'settings-reset-page' is the settings page containing reset
+ * settings.
+ *
+ * @group Chrome Settings Elements
+ * @element settings-reset-page
+ */
+Polymer({
+ is: 'settings-powerwash-dialog',
+
+ open: function() {
+ this.$.dialog.open();
+ },
+
+ /** @private */
+ onCancelTap_: function() {
+ this.$.dialog.close();
+ },
+
+ /** @private */
+ onRestartTap_: function() {
+ this.$.dialog.close();
+ },
+
+ /** @private */
+ onLearnMoreTap_: function() {
+ window.open(loadTimeData.getString('powerwashLearnMoreUrl'));
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698