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

Unified Diff: chrome/browser/ui/views/frame/glass_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
Index: chrome/browser/ui/views/frame/glass_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/glass_browser_frame_view.cc (revision 91956)
+++ chrome/browser/ui/views/frame/glass_browser_frame_view.cc (working copy)
@@ -14,7 +14,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_view.h"
#include "chrome/browser/ui/views/tabs/side_tab_strip.h"
@@ -86,10 +85,8 @@
InitThrobberIcons();
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/avatar_menu_button.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698