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

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

Issue 7331017: Multi-Profiles: Add icon chooser to profiles menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Multi-Profiles: Add icon chooser to profiles menu Created 9 years, 5 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
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (revision 91956)
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (working copy)
@@ -13,7 +13,6 @@
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/themes/theme_service.h"
-#include "chrome/browser/ui/profile_menu_model.h"
#include "chrome/browser/ui/views/avatar_menu_button.h"
#include "chrome/browser/ui/views/frame/browser_frame.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
@@ -202,10 +201,8 @@
}
if (browser_view_->ShouldShowAvatar()) {
- ui::MenuModel* menu_model = browser_view_->IsOffTheRecord() ?
- NULL : new ProfileMenuModel(browser_view_->browser());
- // AvatarMenuButton takes ownership of |menu_model|.
- avatar_button_.reset(new AvatarMenuButton(std::wstring(), menu_model));
+ avatar_button_.reset(new AvatarMenuButton(
+ browser_view_->browser(), !browser_view_->IsOffTheRecord()));
AddChildView(avatar_button_.get());
UpdateAvatarInfo();
if (!browser_view_->IsOffTheRecord()) {
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698