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

Issue 267253004: Fetch a new GAIA picture every time chrome://settings/manageProfile comes up. (Closed)

Created:
6 years, 7 months ago by noms (inactive)
Modified:
6 years, 7 months ago
Reviewers:
rpetterson, Evan Stade
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Fetch a new GAIA picture every time chrome://settings/manageProfile comes up. (currently we do it once, when a profile is signed in, and henceforth every 24h) This assumes the --google-profile-info flag is in use (which comes for free as part of --new-profile-management), and is similar to CrOS, which also forces an update every time chrome://settings/changePicture is loaded. I've also deleted the code that forced the "is using the gaia photo" flag to true on every completed download, as it meant that we'd overwrite any custom avatars the user may have chosen. BUG=311013 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272614

Patch Set 1 : #

Total comments: 8

Patch Set 2 : s/GAIA/Gaia/g #

Total comments: 2

Patch Set 3 : move the chrome messages to a common place #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -9 lines) Patch
M chrome/browser/profiles/gaia_info_update_service.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/profiles/gaia_info_update_service_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profiles_state.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profiles_state.cc View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
noms (inactive)
Hiya! There's an issue currently open where we are not re-downloading the GAIA profile avatar ...
6 years, 7 months ago (2014-05-07 19:14:36 UTC) #1
rpetterson
profiles LGTM
6 years, 7 months ago (2014-05-07 22:35:49 UTC) #2
Evan Stade
https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js#newcode251 chrome/browser/resources/options/browser_options.js:251: chrome.send('refreshGAIAPicture'); why isn't this in ManageProfileOverlay.showManageDialog? https://codereview.chromium.org/267253004/diff/40001/chrome/browser/ui/webui/options/manage_profile_handler.h File chrome/browser/ui/webui/options/manage_profile_handler.h ...
6 years, 7 months ago (2014-05-07 22:38:55 UTC) #3
noms (inactive)
https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js#newcode251 chrome/browser/resources/options/browser_options.js:251: chrome.send('refreshGAIAPicture'); showManageDialog is also called by setProfilesInfo_, which is ...
6 years, 7 months ago (2014-05-08 01:02:29 UTC) #4
Evan Stade
https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js#newcode251 chrome/browser/resources/options/browser_options.js:251: chrome.send('refreshGAIAPicture'); On 2014/05/08 01:02:29, Monica Dinculescu wrote: > showManageDialog ...
6 years, 7 months ago (2014-05-08 01:09:57 UTC) #5
noms (inactive)
https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js#newcode251 chrome/browser/resources/options/browser_options.js:251: chrome.send('refreshGAIAPicture'); We would have to do a pixel-by-pixel check ...
6 years, 7 months ago (2014-05-08 15:29:05 UTC) #6
Evan Stade
https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js#newcode251 chrome/browser/resources/options/browser_options.js:251: chrome.send('refreshGAIAPicture'); On 2014/05/08 15:29:06, Monica (OOO until May 15) ...
6 years, 7 months ago (2014-05-14 03:09:54 UTC) #7
noms (inactive)
https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/267253004/diff/40001/chrome/browser/resources/options/browser_options.js#newcode251 chrome/browser/resources/options/browser_options.js:251: chrome.send('refreshGAIAPicture'); setProfilesInfo_ calls ManageProfileOverlay.showManageDialog() if the dialog is already ...
6 years, 7 months ago (2014-05-20 20:08:57 UTC) #8
noms (inactive)
Good news! I did some more digging. and it turns out we don't have to ...
6 years, 7 months ago (2014-05-21 17:27:38 UTC) #9
Evan Stade
https://codereview.chromium.org/267253004/diff/60001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/267253004/diff/60001/chrome/browser/resources/options/browser_options.js#newcode251 chrome/browser/resources/options/browser_options.js:251: chrome.send('refreshGaiaPicture'); I still do not think this belongs here. ...
6 years, 7 months ago (2014-05-21 23:28:29 UTC) #10
noms (inactive)
https://codereview.chromium.org/267253004/diff/60001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/267253004/diff/60001/chrome/browser/resources/options/browser_options.js#newcode251 chrome/browser/resources/options/browser_options.js:251: chrome.send('refreshGaiaPicture'); Done! There's no infinite loop anymore, so I'm ...
6 years, 7 months ago (2014-05-23 15:09:47 UTC) #11
Evan Stade
webui and resources lgtm
6 years, 7 months ago (2014-05-23 15:33:22 UTC) #12
noms (inactive)
Thanks! Sorry again for the nonsense! :(
6 years, 7 months ago (2014-05-23 15:35:15 UTC) #13
noms (inactive)
The CQ bit was checked by noms@chromium.org
6 years, 7 months ago (2014-05-23 15:35:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/267253004/90001
6 years, 7 months ago (2014-05-23 15:36:45 UTC) #15
Evan Stade
On 2014/05/23 15:35:15, Monica Dinculescu wrote: > Thanks! Sorry again for the nonsense! :( not ...
6 years, 7 months ago (2014-05-23 16:00:53 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 20:22:14 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 22:17:18 UTC) #18
Message was sent while issue was closed.
Change committed as 272614

Powered by Google App Engine
This is Rietveld 408576698