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

Side by Side Diff: chrome/browser/ui/webui/signin/inline_login_handler_impl.h

Issue 2255413002: [Signin Error Dialog] (3/3) Added the triggering code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Broke down the CL Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 base::WeakPtr<InlineLoginHandlerImpl> GetWeakPtr() { 30 base::WeakPtr<InlineLoginHandlerImpl> GetWeakPtr() {
31 return weak_factory_.GetWeakPtr(); 31 return weak_factory_.GetWeakPtr();
32 } 32 }
33 33
34 Browser* GetDesktopBrowser(); 34 Browser* GetDesktopBrowser();
35 void SyncStarterCallback(OneClickSigninSyncStarter::SyncSetupResult result); 35 void SyncStarterCallback(OneClickSigninSyncStarter::SyncSetupResult result);
36 // Closes the current tab and shows the account management view of the avatar 36 // Closes the current tab and shows the account management view of the avatar
37 // bubble if |show_account_management| is true. 37 // bubble if |show_account_management| is true.
38 void CloseTab(bool show_account_management); 38 void CloseTab(bool show_account_management);
39 void HandleLoginError(const std::string& error_msg); 39 void HandleLoginError(const std::string& error_msg,
40 const base::string16& email);
40 41
41 private: 42 private:
42 friend class InlineLoginUIBrowserTest; 43 friend class InlineLoginUIBrowserTest;
43 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferNoProfile); 44 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferNoProfile);
44 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOffer); 45 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOffer);
45 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferProfileConnected); 46 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferProfileConnected);
46 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, 47 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest,
47 CanOfferUsernameNotAllowed); 48 CanOfferUsernameNotAllowed);
48 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferWithRejectedEmail); 49 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferWithRejectedEmail);
49 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferNoSigninCookies); 50 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferNoSigninCookies);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 std::string password_; 209 std::string password_;
209 std::string session_index_; 210 std::string session_index_;
210 std::string auth_code_; 211 std::string auth_code_;
211 bool choose_what_to_sync_; 212 bool choose_what_to_sync_;
212 bool confirm_untrusted_signin_; 213 bool confirm_untrusted_signin_;
213 214
214 DISALLOW_COPY_AND_ASSIGN(InlineSigninHelper); 215 DISALLOW_COPY_AND_ASSIGN(InlineSigninHelper);
215 }; 216 };
216 217
217 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ 218 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698