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

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

Issue 1220843003: Perform online reauth when password is changed for a locked profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 4 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 <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static bool CanOffer(Profile* profile, 53 static bool CanOffer(Profile* profile,
54 CanOfferFor can_offer_for, 54 CanOfferFor can_offer_for,
55 const std::string& gaia_id, 55 const std::string& gaia_id,
56 const std::string& email, 56 const std::string& email,
57 std::string* error_message); 57 std::string* error_message);
58 58
59 // InlineLoginHandler overrides: 59 // InlineLoginHandler overrides:
60 void SetExtraInitParams(base::DictionaryValue& params) override; 60 void SetExtraInitParams(base::DictionaryValue& params) override;
61 void CompleteLogin(const base::ListValue* args) override; 61 void CompleteLogin(const base::ListValue* args) override;
62 62
63 struct FinishCompleteLoginParams {
64 public:
65 FinishCompleteLoginParams(InlineLoginHandlerImpl* handler,
66 content::StoragePartition* partition,
67 const GURL& url,
68 bool confirm_untrusted_signin,
69 const std::string& email,
70 const std::string& gaia_id,
71 const std::string& password,
72 const std::string& session_index,
73 bool choose_what_to_sync);
74 ~FinishCompleteLoginParams();
75
76 InlineLoginHandlerImpl* handler;
77 content::StoragePartition* partition;
78 GURL url;
79 bool confirm_untrusted_signin;
80 std::string email;
81 std::string gaia_id;
82 std::string password;
83 std::string session_index;
84 bool choose_what_to_sync;
85 };
86
87 static void FinishCompleteLogin(const FinishCompleteLoginParams& params,
Alexei Svitkine (slow) 2015/07/23 21:49:34 I think the specific params should be documented s
Roger Tawa OOO till Jul 10th 2015/07/24 16:15:12 Done.
88 Profile* profile,
89 Profile::CreateStatus);
Alexei Svitkine (slow) 2015/07/23 21:49:34 Name the last param.
Roger Tawa OOO till Jul 10th 2015/07/24 16:15:12 Done.
90
63 // Overridden from content::WebContentsObserver overrides. 91 // Overridden from content::WebContentsObserver overrides.
64 void DidCommitProvisionalLoadForFrame( 92 void DidCommitProvisionalLoadForFrame(
65 content::RenderFrameHost* render_frame_host, 93 content::RenderFrameHost* render_frame_host,
66 const GURL& url, 94 const GURL& url,
67 ui::PageTransition transition_type) override; 95 ui::PageTransition transition_type) override;
68 96
69 // True if the user has navigated to untrusted domains during the signin 97 // True if the user has navigated to untrusted domains during the signin
70 // process. 98 // process.
71 bool confirm_untrusted_signin_; 99 bool confirm_untrusted_signin_;
72 100
73 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; 101 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_;
74 102
75 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl); 103 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl);
76 }; 104 };
77 105
78 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ 106 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698