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

Unified Diff: chrome/browser/resources/settings/about_page/about_page.js

Issue 2063873004: MD Settings: Hook up about_page to new LifetimeBrowserProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/about_page/about_page.js
diff --git a/chrome/browser/resources/settings/about_page/about_page.js b/chrome/browser/resources/settings/about_page/about_page.js
index 59e1633a38d6b257c2b85ba756f17bdf1a64f628..62ea8ac67f3e81560541c12092fed6597aab8235 100644
--- a/chrome/browser/resources/settings/about_page/about_page.js
+++ b/chrome/browser/resources/settings/about_page/about_page.js
@@ -52,6 +52,9 @@ Polymer({
/** @private {?settings.AboutPageBrowserProxy} */
browserProxy_: null,
+ /** @private {?settings.LifetimeBrowserProxy} */
+ lifetimeBrowserProxy_: null,
+
/**
* @type {string} Selector to get the sections.
* TODO(michaelpg): replace duplicate docs with @override once b/24294625
@@ -64,6 +67,9 @@ Polymer({
this.browserProxy_ = settings.AboutPageBrowserProxyImpl.getInstance();
this.browserProxy_.pageReady();
+ this.lifetimeBrowserProxy_ =
+ settings.LifetimeBrowserProxyImpl.getInstance();
+
<if expr="chromeos">
this.addEventListener('target-channel-changed', function(e) {
this.targetChannel_ = e.detail;
@@ -117,7 +123,7 @@ Polymer({
/** @private */
onRelaunchTap_: function() {
- this.browserProxy_.relaunchNow();
+ this.lifetimeBrowserProxy_.relaunch();
},
/**
@@ -253,7 +259,7 @@ Polymer({
/** @private */
onRelaunchAndPowerwashTap_: function() {
- // TODO(dpapad): Implement this.
+ this.lifetimeBrowserProxy_.factoryReset();
},
/**

Powered by Google App Engine
This is Rietveld 408576698