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

Side by Side Diff: chrome/browser/ui/views/frame/avatar_button_manager.cc

Issue 2709763002: Removing Fast User Switcher feature. (Closed)
Patch Set: Removing PopulateCompleteProfileChooserView and PopulateMinimalProfileChooserView Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/frame/avatar_button_manager.h" 5 #include "chrome/browser/ui/views/frame/avatar_button_manager.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/profiles/profile_manager.h" 8 #include "chrome/browser/profiles/profile_manager.h"
9 #include "chrome/browser/ui/view_ids.h" 9 #include "chrome/browser/ui/view_ids.h"
10 #include "chrome/browser/ui/views/frame/browser_frame.h" 10 #include "chrome/browser/ui/views/frame/browser_frame.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 void AvatarButtonManager::ButtonPressed(views::Button* sender, 56 void AvatarButtonManager::ButtonPressed(views::Button* sender,
57 const ui::Event& event) { 57 const ui::Event& event) {
58 DCHECK_EQ(view_, sender); 58 DCHECK_EQ(view_, sender);
59 BrowserWindow::AvatarBubbleMode mode = 59 BrowserWindow::AvatarBubbleMode mode =
60 BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT; 60 BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT;
61 if ((event.IsMouseEvent() && 61 if ((event.IsMouseEvent() &&
62 static_cast<const ui::MouseEvent&>(event).IsRightMouseButton()) || 62 static_cast<const ui::MouseEvent&>(event).IsRightMouseButton()) ||
63 (event.type() == ui::ET_GESTURE_LONG_PRESS)) { 63 (event.type() == ui::ET_GESTURE_LONG_PRESS)) {
64 mode = BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH; 64 return;
65 } 65 }
66 frame_view_->browser_view()->ShowAvatarBubbleFromAvatarButton( 66 frame_view_->browser_view()->ShowAvatarBubbleFromAvatarButton(
67 mode, signin::ManageAccountsParams(), 67 mode, signin::ManageAccountsParams(),
68 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, false); 68 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, false);
69 } 69 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/profile_chooser_constants.h ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698