| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "net/nqe/effective_connection_type.h" | 5 #include "net/nqe/effective_connection_type.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 return true; | 64 return true; |
| 65 } | 65 } |
| 66 if (connection_type_name == kEffectiveConnectionType4G) { | 66 if (connection_type_name == kEffectiveConnectionType4G) { |
| 67 *effective_connection_type = EFFECTIVE_CONNECTION_TYPE_4G; | 67 *effective_connection_type = EFFECTIVE_CONNECTION_TYPE_4G; |
| 68 return true; | 68 return true; |
| 69 } | 69 } |
| 70 *effective_connection_type = EFFECTIVE_CONNECTION_TYPE_UNKNOWN; | 70 *effective_connection_type = EFFECTIVE_CONNECTION_TYPE_UNKNOWN; |
| 71 return false; | 71 return false; |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace net | 74 } // namespace net |
| OLD | NEW |