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

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

Issue 240453006: Fix sign-in error strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 6 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/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 505532d439824ed66747a8df37029e7bba67a2fc..e16320bd51397b182acd9973caa75784c69631fa 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2382,10 +2382,22 @@ void BrowserView::ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode) {
views::View::ConvertPointToScreen(button, &origin);
gfx::Rect bounds(origin, size());
- ProfileChooserView::BubbleViewMode view_mode =
- (mode == BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT) ?
- ProfileChooserView::BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT :
- ProfileChooserView::BUBBLE_VIEW_MODE_PROFILE_CHOOSER;
+ ProfileChooserView::BubbleViewMode view_mode;
+ switch (mode) {
+ case AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT:
+ view_mode = ProfileChooserView::BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT;
+ break;
+ case AVATAR_BUBBLE_MODE_SIGNIN:
+ view_mode = ProfileChooserView::BUBBLE_VIEW_MODE_GAIA_SIGNIN;
+ break;
+ case AVATAR_BUBBLE_MODE_REAUTH:
+ view_mode = ProfileChooserView::BUBBLE_VIEW_MODE_GAIA_REAUTH;
+ break;
+ default:
+ view_mode = ProfileChooserView::BUBBLE_VIEW_MODE_PROFILE_CHOOSER;
+ break;
+ }
+
ProfileChooserView::ShowBubble(
view_mode, button, views::BubbleBorder::TOP_RIGHT,
views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE, bounds, browser());
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.cc ('k') | chrome/browser/ui/views/profiles/new_avatar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698