Chromium Code Reviews| Index: net/socket/client_socket_pool_manager.cc |
| diff --git a/net/socket/client_socket_pool_manager.cc b/net/socket/client_socket_pool_manager.cc |
| index 7820cf9d9ab3d964ddc25a90a9b9d6059bc10fee..a0ae420c2e420ecf431b844f9f15e1d0f6848f2a 100644 |
| --- a/net/socket/client_socket_pool_manager.cc |
| +++ b/net/socket/client_socket_pool_manager.cc |
| @@ -215,8 +215,13 @@ int InitSocketPoolHelper(ClientSocketPoolManager::SocketGroupType group_type, |
| } |
| } |
| + bool enable_privacy_mode = (load_flags & LOAD_DO_NOT_SEND_COOKIES) || |
| + (load_flags & LOAD_DO_NOT_SAVE_COOKIES) || |
| + (load_flags & LOAD_DO_NOT_SEND_AUTH_DATA) || |
| + (privacy_mode == PRIVACY_MODE_ENABLED); |
|
Ryan Sleevi
2015/06/12 21:36:00
It'd be good to add a comment here explaining why
|
| + |
| // Change group name if privacy mode is enabled. |
| - if (privacy_mode == PRIVACY_MODE_ENABLED) |
| + if (enable_privacy_mode) |
| connection_group = "pm/" + connection_group; |
| // Deal with SSL - which layers on top of any given proxy. |