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

Issue 8711002: Add GAIA picture to Settings profile overlay (Closed)

Created:
9 years ago by sail
Modified:
9 years ago
Reviewers:
binji
CC:
chromium-reviews, arv (Not doing code reviews), Paweł Hajdan Jr.
Visibility:
Public.

Description

Add GAIA picture to Settings profile overlay This CL allows users to choose their GAIA profile picture as their browser profile avatar. Screenshots: http://imgur.com/TLXR8,tdHIt#0 BUG=91241 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112166

Patch Set 1 #

Total comments: 9

Patch Set 2 : address review comments #

Patch Set 3 : rebase #

Patch Set 4 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -27 lines) Patch
M chrome/browser/profiles/profile_info_util.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_util.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_util_unittest.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.js View 4 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.h View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 3 4 chunks +129 lines, -24 lines 0 comments Download
M chrome/browser/ui/webui/options/personal_options_handler.cc View 1 2 3 2 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sail
9 years ago (2011-11-26 22:44:33 UTC) #1
binji
http://codereview.chromium.org/8711002/diff/1/chrome/browser/ui/webui/options/manage_profile_handler.cc File chrome/browser/ui/webui/options/manage_profile_handler.cc (right): http://codereview.chromium.org/8711002/diff/1/chrome/browser/ui/webui/options/manage_profile_handler.cc#newcode148 chrome/browser/ui/webui/options/manage_profile_handler.cc:148: if (new_profile_name == cache.GetGAIANameOfProfileAtIndex(profile_index)) { Could you keep the ...
9 years ago (2011-11-28 19:09:20 UTC) #2
sail
http://codereview.chromium.org/8711002/diff/1/chrome/browser/ui/webui/options/manage_profile_handler.cc File chrome/browser/ui/webui/options/manage_profile_handler.cc (right): http://codereview.chromium.org/8711002/diff/1/chrome/browser/ui/webui/options/manage_profile_handler.cc#newcode148 chrome/browser/ui/webui/options/manage_profile_handler.cc:148: if (new_profile_name == cache.GetGAIANameOfProfileAtIndex(profile_index)) { On 2011/11/28 19:09:20, binji ...
9 years ago (2011-11-28 19:33:36 UTC) #3
binji
9 years ago (2011-11-28 19:47:41 UTC) #4
lgtm

http://codereview.chromium.org/8711002/diff/1/chrome/browser/ui/webui/options...
File chrome/browser/ui/webui/options/manage_profile_handler.cc (right):

http://codereview.chromium.org/8711002/diff/1/chrome/browser/ui/webui/options...
chrome/browser/ui/webui/options/manage_profile_handler.cc:227:
profile_value.SetString("iconURL", web_ui_util::GetImageDataUrl(icon));
On 2011/11/28 19:33:36, sail wrote:
> On 2011/11/28 19:09:20, binji wrote:
> > might be a little nicer to send the GAIA name to javascript here. That way
you
> > don't have to bounce back to C++ to set the profile name.
> 
> It's a littler tricker that way because the javascript code doesn't know which
> of the profile icons is the GAIA picture.

OK, I see what you mean.

Powered by Google App Engine
This is Rietveld 408576698