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

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

Issue 22642011: Request profiles info in BrowserOptions.initializePage to populate the profiles list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 70830b062684336d54538e3e259c676d6910bea2..c5e213b45d7a2666344231bd902c215d3fa99178 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -171,14 +171,14 @@ cr.define('options', function() {
this.setDefaultSearchEngine_);
// Users section.
- if (loadTimeData.valueExists('profilesInfo')) {
+ if (loadTimeData.getBoolean('showProfilesSection')) {
$('profiles-section').hidden = false;
var profilesList = $('profiles-list');
options.browser_options.ProfileList.decorate(profilesList);
profilesList.autoExpands = true;
- this.setProfilesInfo_(loadTimeData.getValue('profilesInfo'));
+ chrome.send('requestProfilesInfo');
profilesList.addEventListener('change',
this.setProfileViewButtonsStatus_);

Powered by Google App Engine
This is Rietveld 408576698