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/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/win/windows_version.h" | 10 #include "base/win/windows_version.h" |
| 11 #include "build/build_config.h" |
11 #include "components/update_client/update_query_params_delegate.h" | 12 #include "components/update_client/update_query_params_delegate.h" |
12 | 13 |
13 namespace update_client { | 14 namespace update_client { |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 const char kUnknown[] = "unknown"; | 18 const char kUnknown[] = "unknown"; |
18 | 19 |
19 // The request extra information is the OS and architecture, this helps | 20 // The request extra information is the OS and architecture, this helps |
20 // the server select the right package to be delivered. | 21 // the server select the right package to be delivered. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 #endif | 123 #endif |
123 } | 124 } |
124 | 125 |
125 // static | 126 // static |
126 void UpdateQueryParams::SetDelegate(UpdateQueryParamsDelegate* delegate) { | 127 void UpdateQueryParams::SetDelegate(UpdateQueryParamsDelegate* delegate) { |
127 DCHECK(!g_delegate || !delegate || (delegate == g_delegate)); | 128 DCHECK(!g_delegate || !delegate || (delegate == g_delegate)); |
128 g_delegate = delegate; | 129 g_delegate = delegate; |
129 } | 130 } |
130 | 131 |
131 } // namespace update_client | 132 } // namespace update_client |
OLD | NEW |