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

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

Issue 7045023: Simplify ProfileMenuButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 7 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/opaque_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
index 567c467c7bf223f63425dbf56fbee795b5892072..7a67dd0b8a1f07a9f2e1040451e7d8606e7b7477 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
@@ -207,8 +207,8 @@ OpaqueBrowserFrameView::OpaqueBrowserFrameView(BrowserFrame* frame,
if (browser_command_line.HasSwitch(switches::kMultiProfiles) &&
!browser_view_->ShouldShowOffTheRecordAvatar()) {
RegisterLoginNotifications();
- profile_button_.reset(new ProfileMenuButton(NULL, std::wstring(),
- this, browser_view_->browser()->profile()));
+ profile_button_.reset(new ProfileMenuButton(std::wstring(),
+ browser_view_->browser()->profile()));
profile_button_->SetVisible(false);
profile_tag_.reset(new ProfileTagView(frame_, profile_button_.get()));
profile_tag_->SetVisible(false);
@@ -420,13 +420,6 @@ void OpaqueBrowserFrameView::UpdateWindowIcon() {
}
///////////////////////////////////////////////////////////////////////////////
-// OpaqueBrowserFrameView, views::ViewMenuDelegate overrides:
-void OpaqueBrowserFrameView::RunMenu(views::View* source,
- const gfx::Point &pt) {
- profile_button_->RunMenuAt(pt);
-}
-
-///////////////////////////////////////////////////////////////////////////////
// OpaqueBrowserFrameView, views::View overrides:
void OpaqueBrowserFrameView::OnPaint(gfx::Canvas* canvas) {
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.h ('k') | chrome/browser/ui/views/profile_menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698