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

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

Issue 339023003: Make 'Disconnect from google account' dialog box shows correct message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version 0 Created 6 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 unified diff | Download patch
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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 544
545 // Because this dialog isn't useful when refreshing or as part of the 545 // Because this dialog isn't useful when refreshing or as part of the
546 // history, don't create a history entry for it when showing. 546 // history, don't create a history entry for it when showing.
547 OptionsPage.showPageByName('manageProfile', false); 547 OptionsPage.showPageByName('manageProfile', false);
548 }, 548 },
549 549
550 /** 550 /**
551 * Display the "Disconnect Managed Profile" dialog. 551 * Display the "Disconnect Managed Profile" dialog.
552 * @private 552 * @private
553 */ 553 */
554 showDisconnectManagedProfileDialog_: function() { 554 showDisconnectManagedProfileDialog_: function(replacements) {
555 loadTimeData.overrideValues(replacements);
555 $('manage-profile-overlay-create').hidden = true; 556 $('manage-profile-overlay-create').hidden = true;
556 $('manage-profile-overlay-manage').hidden = true; 557 $('manage-profile-overlay-manage').hidden = true;
557 $('manage-profile-overlay-delete').hidden = true; 558 $('manage-profile-overlay-delete').hidden = true;
558 $('disconnect-managed-profile-domain-information').innerHTML = 559 $('disconnect-managed-profile-domain-information').innerHTML =
559 loadTimeData.getString('disconnectManagedProfileDomainInformation'); 560 loadTimeData.getString('disconnectManagedProfileDomainInformation');
560 $('disconnect-managed-profile-text').innerHTML = 561 $('disconnect-managed-profile-text').innerHTML =
561 loadTimeData.getString('disconnectManagedProfileText'); 562 loadTimeData.getString('disconnectManagedProfileText');
562 $('manage-profile-overlay-disconnect-managed').hidden = false; 563 $('manage-profile-overlay-disconnect-managed').hidden = false;
563 564
564 // Because this dialog isn't useful when refreshing or as part of the 565 // Because this dialog isn't useful when refreshing or as part of the
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 return instance[name + '_'].apply(instance, arguments); 853 return instance[name + '_'].apply(instance, arguments);
853 }; 854 };
854 }); 855 });
855 856
856 // Export 857 // Export
857 return { 858 return {
858 ManageProfileOverlay: ManageProfileOverlay, 859 ManageProfileOverlay: ManageProfileOverlay,
859 CreateProfileOverlay: CreateProfileOverlay, 860 CreateProfileOverlay: CreateProfileOverlay,
860 }; 861 };
861 }); 862 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/manage_profile_overlay.html ('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