mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Make the CefAuthCallback::Continue password parameter optional (issue #1928)
This commit is contained in:
		| @@ -50,7 +50,7 @@ class CefAuthCallback : public virtual CefBaseRefCounted { | |||||||
|   /// |   /// | ||||||
|   // Continue the authentication request. |   // Continue the authentication request. | ||||||
|   /// |   /// | ||||||
|   /*--cef(capi_name=cont)--*/ |   /*--cef(capi_name=cont,optional_param=password)--*/ | ||||||
|   virtual void Continue(const CefString& username, |   virtual void Continue(const CefString& username, | ||||||
|                         const CefString& password) =0; |                         const CefString& password) =0; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -28,10 +28,7 @@ void CEF_CALLBACK auth_callback_cont(struct _cef_auth_callback_t* self, | |||||||
|   DCHECK(username); |   DCHECK(username); | ||||||
|   if (!username) |   if (!username) | ||||||
|     return; |     return; | ||||||
|   // Verify param: password; type: string_byref_const |   // Unverified params: password | ||||||
|   DCHECK(password); |  | ||||||
|   if (!password) |  | ||||||
|     return; |  | ||||||
|  |  | ||||||
|   // Execute |   // Execute | ||||||
|   CefAuthCallbackCppToC::Get(self)->Continue( |   CefAuthCallbackCppToC::Get(self)->Continue( | ||||||
|   | |||||||
| @@ -27,10 +27,7 @@ void CefAuthCallbackCToCpp::Continue(const CefString& username, | |||||||
|   DCHECK(!username.empty()); |   DCHECK(!username.empty()); | ||||||
|   if (username.empty()) |   if (username.empty()) | ||||||
|     return; |     return; | ||||||
|   // Verify param: password; type: string_byref_const |   // Unverified params: password | ||||||
|   DCHECK(!password.empty()); |  | ||||||
|   if (password.empty()) |  | ||||||
|     return; |  | ||||||
|  |  | ||||||
|   // Execute |   // Execute | ||||||
|   _struct->cont(_struct, |   _struct->cont(_struct, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user