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

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

Issue 2393643004: [MD Settings][People] Updates positions of username and sync status message (Closed)
Patch Set: rebase Created 4 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/options/sync_section.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index e9da4b982a826f37f93bb9989e4c49216a3602eb..70d8cf84e59ea2bef6aa89665ec5dd085ed74e34 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -6,6 +6,7 @@ cr.exportPath('options');
/**
* @typedef {{actionLinkText: (string|undefined),
+ * accountInfo: (string|undefined),
* childUser: (boolean|undefined),
* hasError: (boolean|undefined),
* hasUnrecoverableError: (boolean|undefined),
@@ -1185,6 +1186,9 @@ cr.define('options', function() {
loadTimeData.getString('syncButtonTextSignIn');
$('start-stop-sync-indicator').hidden = signInButton.hidden;
+ $('account-info').textContent = syncData.accountInfo;
+ $('account-info').hidden = !this.signedIn_;
+
// TODO(estade): can this just be textContent?
$('sync-status-text').innerHTML = syncData.statusText;
var statusSet = syncData.statusText.length != 0;
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/options/sync_section.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698