| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/update_client/update_query_params.h" | 5 #include "components/update_client/update_query_params.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/win/windows_version.h" | |
| 10 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 11 #include "components/update_client/update_query_params_delegate.h" | 10 #include "components/update_client/update_query_params_delegate.h" |
| 12 | 11 |
| 12 #if defined(OS_WIN) |
| 13 #include "base/win/windows_version.h" |
| 14 #endif |
| 15 |
| 13 namespace update_client { | 16 namespace update_client { |
| 14 | 17 |
| 15 namespace { | 18 namespace { |
| 16 | 19 |
| 17 const char kUnknown[] = "unknown"; | 20 const char kUnknown[] = "unknown"; |
| 18 | 21 |
| 19 // The request extra information is the OS and architecture, this helps | 22 // The request extra information is the OS and architecture, this helps |
| 20 // the server select the right package to be delivered. | 23 // the server select the right package to be delivered. |
| 21 const char kOs[] = | 24 const char kOs[] = |
| 22 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 #endif | 129 #endif |
| 127 } | 130 } |
| 128 | 131 |
| 129 // static | 132 // static |
| 130 void UpdateQueryParams::SetDelegate(UpdateQueryParamsDelegate* delegate) { | 133 void UpdateQueryParams::SetDelegate(UpdateQueryParamsDelegate* delegate) { |
| 131 DCHECK(!g_delegate || !delegate || (delegate == g_delegate)); | 134 DCHECK(!g_delegate || !delegate || (delegate == g_delegate)); |
| 132 g_delegate = delegate; | 135 g_delegate = delegate; |
| 133 } | 136 } |
| 134 | 137 |
| 135 } // namespace update_client | 138 } // namespace update_client |
| OLD | NEW |