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

Side by Side Diff: chrome/browser/resources/options/manage_profile_overlay.js

Issue 267253004: Fetch a new GAIA picture every time chrome://settings/manageProfile comes up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move the chrome messages to a common place Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 8
9 /** 9 /**
10 * ManageProfileOverlay class 10 * ManageProfileOverlay class
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 [this.profileInfo_.filePath, iconURL]); 494 [this.profileInfo_.filePath, iconURL]);
495 } 495 }
496 }, 496 },
497 497
498 /** 498 /**
499 * Updates the contents of the "Manage Profile" section of the dialog, 499 * Updates the contents of the "Manage Profile" section of the dialog,
500 * and shows that section. 500 * and shows that section.
501 * @private 501 * @private
502 */ 502 */
503 prepareForManageDialog_: function() { 503 prepareForManageDialog_: function() {
504 chrome.send('refreshGaiaPicture');
504 var profileInfo = BrowserOptions.getCurrentProfile(); 505 var profileInfo = BrowserOptions.getCurrentProfile();
505 ManageProfileOverlay.setProfileInfo(profileInfo, 'manage'); 506 ManageProfileOverlay.setProfileInfo(profileInfo, 'manage');
506 $('manage-profile-overlay-create').hidden = true; 507 $('manage-profile-overlay-create').hidden = true;
507 $('manage-profile-overlay-manage').hidden = false; 508 $('manage-profile-overlay-manage').hidden = false;
508 $('manage-profile-overlay-delete').hidden = true; 509 $('manage-profile-overlay-delete').hidden = true;
509 $('manage-profile-overlay-disconnect-managed').hidden = true; 510 $('manage-profile-overlay-disconnect-managed').hidden = true;
510 $('manage-profile-name').disabled = profileInfo.isManaged; 511 $('manage-profile-name').disabled = profileInfo.isManaged;
511 this.hideErrorBubble_('manage'); 512 this.hideErrorBubble_('manage');
512 }, 513 },
513 514
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 return instance[name + '_'].apply(instance, arguments); 852 return instance[name + '_'].apply(instance, arguments);
852 }; 853 };
853 }); 854 });
854 855
855 // Export 856 // Export
856 return { 857 return {
857 ManageProfileOverlay: ManageProfileOverlay, 858 ManageProfileOverlay: ManageProfileOverlay,
858 CreateProfileOverlay: CreateProfileOverlay, 859 CreateProfileOverlay: CreateProfileOverlay,
859 }; 860 };
860 }); 861 });
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profiles_state.cc ('k') | chrome/browser/ui/webui/options/manage_profile_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698