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

Side by Side Diff: chrome/browser/ui/webui/history_login_handler.cc

Issue 2687693002: Linux/Windows: Setting focus to the first profile in profile switcher (Closed)
Patch Set: Renaming |focus_first_profile| to |is_source_keyboard| Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/webui/history_login_handler.h" 5 #include "chrome/browser/ui/webui/history_login_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 CallJavascriptFunction("updateSignInState", 52 CallJavascriptFunction("updateSignInState",
53 base::FundamentalValue(signed_in)); 53 base::FundamentalValue(signed_in));
54 } 54 }
55 } 55 }
56 56
57 void HistoryLoginHandler::HandleStartSignInFlow( 57 void HistoryLoginHandler::HandleStartSignInFlow(
58 const base::ListValue* /*args*/) { 58 const base::ListValue* /*args*/) {
59 Browser* browser = 59 Browser* browser =
60 chrome::FindBrowserWithWebContents(web_ui()->GetWebContents()); 60 chrome::FindBrowserWithWebContents(web_ui()->GetWebContents());
61 browser->window()->ShowAvatarBubbleFromAvatarButton( 61 browser->window()->ShowAvatarBubbleFromAvatarButton(
62 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN, 62 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN, signin::ManageAccountsParams(),
63 signin::ManageAccountsParams(), 63 signin_metrics::AccessPoint::ACCESS_POINT_RECENT_TABS, false);
64 signin_metrics::AccessPoint::ACCESS_POINT_RECENT_TABS);
65 } 64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698