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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view.cc

Issue 8744010: Revert 112171 - Views: Custom drawing for GAIA avatar pictures (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/avatar_menu_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (revision 112173)
+++ chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (working copy)
@@ -39,19 +39,14 @@
return;
if (browser_view_->IsOffTheRecord()) {
- avatar_button_->SetIcon(
- gfx::Image(new SkBitmap(browser_view_->GetOTRAvatarIcon())), false);
+ avatar_button_->SetIcon(browser_view_->GetOTRAvatarIcon());
} else {
ProfileInfoCache& cache =
g_browser_process->profile_manager()->GetProfileInfoCache();
Profile* profile = browser_view_->browser()->profile();
size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath());
if (index != std::string::npos) {
- bool is_gaia_picture =
- cache.IsUsingGAIAPictureOfProfileAtIndex(index) &&
- cache.GetGAIAPictureOfProfileAtIndex(index);
- avatar_button_->SetIcon(
- cache.GetAvatarIconOfProfileAtIndex(index), is_gaia_picture);
+ avatar_button_->SetIcon(cache.GetAvatarIconOfProfileAtIndex(index));
avatar_button_->SetText(cache.GetNameOfProfileAtIndex(index));
}
}
« no previous file with comments | « chrome/browser/ui/views/avatar_menu_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698