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

Unified Diff: chrome/browser/ui/views/frame/glass_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/glass_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
index 04f05feb0b5179effe260fbd2bf53627fa57a55d..a6f631482c2bf543ef0609450227deabfd131c39 100644
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
@@ -91,8 +91,8 @@ GlassBrowserFrameView::GlassBrowserFrameView(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);
@@ -225,12 +225,6 @@ int GlassBrowserFrameView::NonClientHitTest(const gfx::Point& point) {
}
///////////////////////////////////////////////////////////////////////////////
-// GlassBrowserFrameView, views::ViewMenuDelegate implementation:
-void GlassBrowserFrameView::RunMenu(views::View *source, const gfx::Point &pt) {
- profile_button_->RunMenuAt(pt);
-}
-
-///////////////////////////////////////////////////////////////////////////////
// GlassBrowserFrameView, views::View overrides:
void GlassBrowserFrameView::OnPaint(gfx::Canvas* canvas) {
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.h ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698