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

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

Issue 22751002: Dynamically update sign-in/Sync status in the profile creation overlay. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: skip for tests Created 7 years, 4 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 | « no previous file | chrome/browser/ui/webui/options/manage_profile_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/manage_profile_overlay.js
diff --git a/chrome/browser/resources/options/manage_profile_overlay.js b/chrome/browser/resources/options/manage_profile_overlay.js
index 533d029f56215fa330a9214f00252387cadcd7df..40ede52abd8c9c30dbcc6fa79d4ef82aa42a42dd 100644
--- a/chrome/browser/resources/options/manage_profile_overlay.js
+++ b/chrome/browser/resources/options/manage_profile_overlay.js
@@ -617,8 +617,13 @@ cr.define('options', function() {
var isSignedIn = email !== '';
$('create-profile-managed-signed-in').hidden = !isSignedIn;
$('create-profile-managed-not-signed-in').hidden = isSignedIn;
- $('select-existing-managed-profile-checkbox').hidden = !isSignedIn;
- $('choose-existing-managed-profile').hidden = !isSignedIn;
+ var hideSelectExistingManagedUsers =
+ !isSignedIn ||
+ !loadTimeData.getBoolean('allowCreateExistingManagedUsers');
+ $('select-existing-managed-profile-checkbox').hidden =
+ hideSelectExistingManagedUsers;
+ $('choose-existing-managed-profile').hidden =
+ hideSelectExistingManagedUsers;
if (isSignedIn) {
var accountDetailsOutOfDate =
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/manage_profile_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698