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

Issue 22642011: Request profiles info in BrowserOptions.initializePage to populate the profiles list (Closed)

Created:
7 years, 4 months ago by ibra
Modified:
7 years, 4 months ago
Reviewers:
Bernhard Bauer, Sergiu
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Request profiles info in BrowserOptions.initializePage to populate the profiles list Profiles info is being passed to JS in |BrowserOptionsHandler::GetLocalizedValues| which gets called only once when the settings page is opened but not on page reload. When a user edits in the profiles list (adds or deletes a profile) and then reload the settings page we end up populating the profiles list with old cached data. Accordingly, we request the profiles info in BrowserOptions.initializePage to get a fresh list of the profiles info every time the page is loaded. BUG=269942 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216797

Patch Set 1 #

Total comments: 2

Patch Set 2 : nit #

Patch Set 3 : Send profiles lise in GetLocalizedValues #

Patch Set 4 : .. #

Total comments: 2

Patch Set 5 : +comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
chrome/browser/resources/options/browser_options.js View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
chrome/browser/ui/webui/options/browser_options_handler.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ibra
Hi Bernhard, Please take a look. Thanks!
7 years, 4 months ago (2013-08-09 08:49:25 UTC) #1
Bernhard Bauer
LGTM with a naming nit: https://codereview.chromium.org/22642011/diff/1/chrome/browser/ui/webui/options/browser_options_handler.h File chrome/browser/ui/webui/options/browser_options_handler.h (right): https://codereview.chromium.org/22642011/diff/1/chrome/browser/ui/webui/options/browser_options_handler.h#newcode232 chrome/browser/ui/webui/options/browser_options_handler.h:232: void RequestProfilesInfo(const ListValue* args); ...
7 years, 4 months ago (2013-08-09 08:57:14 UTC) #2
ibra
https://codereview.chromium.org/22642011/diff/1/chrome/browser/ui/webui/options/browser_options_handler.h File chrome/browser/ui/webui/options/browser_options_handler.h (right): https://codereview.chromium.org/22642011/diff/1/chrome/browser/ui/webui/options/browser_options_handler.h#newcode232 chrome/browser/ui/webui/options/browser_options_handler.h:232: void RequestProfilesInfo(const ListValue* args); On 2013/08/09 08:57:14, Bernhard Bauer ...
7 years, 4 months ago (2013-08-09 09:02:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ibraaaa@chromium.org/22642011/6001
7 years, 4 months ago (2013-08-09 09:05:19 UTC) #4
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=158274
7 years, 4 months ago (2013-08-09 11:10:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ibraaaa@chromium.org/22642011/31001
7 years, 4 months ago (2013-08-09 15:36:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ibraaaa@chromium.org/22642011/35004
7 years, 4 months ago (2013-08-09 15:38:12 UTC) #7
ibra
Bernhard, would like to take another look?
7 years, 4 months ago (2013-08-09 15:38:20 UTC) #8
Bernhard Bauer
LGTM still holds, but see the comment suggestion below: https://codereview.chromium.org/22642011/diff/35004/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/22642011/diff/35004/chrome/browser/resources/options/browser_options.js#newcode182 chrome/browser/resources/options/browser_options.js:182: ...
7 years, 4 months ago (2013-08-09 15:42:21 UTC) #9
ibra
https://codereview.chromium.org/22642011/diff/35004/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/22642011/diff/35004/chrome/browser/resources/options/browser_options.js#newcode182 chrome/browser/resources/options/browser_options.js:182: chrome.send('requestProfilesInfo'); On 2013/08/09 15:42:21, Bernhard Bauer wrote: > Maybe ...
7 years, 4 months ago (2013-08-09 16:29:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ibraaaa@chromium.org/22642011/57001
7 years, 4 months ago (2013-08-09 16:31:22 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-10 01:34:20 UTC) #12
Message was sent while issue was closed.
Change committed as 216797

Powered by Google App Engine
This is Rietveld 408576698