Changeset 142996 in webkit
- Timestamp:
- Feb 15, 2013 7:25:41 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r142994 r142996 1 2013-02-15 Joe Mason <jmason@rim.com> 2 3 [BlackBerry] Remove redundant requireAuth parameter of NetworkJob::notifyAuthReceived 4 https://bugs.webkit.org/show_bug.cgi?id=109855 5 6 Reviewed by Yong Li. 7 8 Internal PR: 296697 9 Internally Reviewed By: Leo Yang 10 11 Code cleanup: The requireAuth parameter of NetworkJob::notifyAuthReceived is redundant as its value 12 can be determined from "result" - if result is AuthResultRetry, requireAuth is false, otherwise it 13 is true. 14 15 No new tests as there is no behaviour change. 16 17 * platform/network/blackberry/NetworkJob.cpp: 18 (WebCore::NetworkJob::notifyAuthReceived): 19 * platform/network/blackberry/NetworkJob.h: 20 (NetworkJob): 21 1 22 2013-02-15 Vsevolod Vlasov <vsevik@chromium.org> 2 23 -
trunk/Source/WebCore/platform/network/blackberry/NetworkJob.cpp
r142926 r142996 271 271 } 272 272 273 void NetworkJob::notifyAuthReceived(NetworkRequest::AuthType authType, NetworkRequest::AuthProtocol authProtocol, NetworkRequest::AuthScheme authScheme, const char* realm, AuthResult result , bool requireCredentials)273 void NetworkJob::notifyAuthReceived(NetworkRequest::AuthType authType, NetworkRequest::AuthProtocol authProtocol, NetworkRequest::AuthScheme authScheme, const char* realm, AuthResult result) 274 274 { 275 275 ProtectionSpaceServerType serverType; … … 356 356 } 357 357 if (result != AuthResultSuccess) { 358 switch (sendRequestWithCredentials(serverType, scheme, realm, re quireCredentials)) {358 switch (sendRequestWithCredentials(serverType, scheme, realm, result != AuthResultRetry)) { 359 359 case SendRequestSucceeded: 360 360 m_newJobWithCredentialsStarted = true; -
trunk/Source/WebCore/platform/network/blackberry/NetworkJob.h
r142926 r142996 78 78 BlackBerry::Platform::NetworkRequest::AuthScheme, 79 79 const char* realm, 80 AuthResult, 81 bool requireCredentials); 80 AuthResult); 82 81 // notifyStringHeaderReceived exists only to resolve ambiguity between char* and String parameters 83 82 void notifyStringHeaderReceived(const String& key, const String& value);
Note: See TracChangeset
for help on using the changeset viewer.