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

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

Issue 2474183002: MD Settings: fix up UMA restart button visual nits (Closed)
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/privacy_page/privacy_page.js
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
index 90c43ba1c4115c99d95cb79f505c390d0ba707da..c215c648a9396cac3b4217ad1145f8ba95bd03f3 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
@@ -118,7 +118,8 @@ Polymer({
setMetricsReporting_: function(metricsReporting) {
if (this.metricsReporting_) {
// TODO(dbeam): hide if changed back to the value Chrome started with.
- this.showRestart_ = true;
+ var changed = this.metricsReporting_.enabled != metricsReporting.enabled;
+ this.showRestart_ = changed && !this.metricsReporting_.managed;
}
this.metricsReporting_ = metricsReporting;
},
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698