OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // A library to manage RLZ information for access-points shared | 5 // A library to manage RLZ information for access-points shared |
6 // across different client applications. | 6 // across different client applications. |
7 | 7 |
8 #include "rlz/lib/rlz_lib.h" | 8 #include "rlz/lib/rlz_lib.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 | 11 |
| 12 #include "base/macros.h" |
12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "build/build_config.h" |
14 #include "rlz/lib/assert.h" | 16 #include "rlz/lib/assert.h" |
15 #include "rlz/lib/crc32.h" | 17 #include "rlz/lib/crc32.h" |
16 #include "rlz/lib/financial_ping.h" | 18 #include "rlz/lib/financial_ping.h" |
17 #include "rlz/lib/lib_values.h" | 19 #include "rlz/lib/lib_values.h" |
18 #include "rlz/lib/rlz_value_store.h" | 20 #include "rlz/lib/rlz_value_store.h" |
19 #include "rlz/lib/string_utils.h" | 21 #include "rlz/lib/string_utils.h" |
20 | 22 |
21 namespace { | 23 namespace { |
22 | 24 |
23 // Event information returned from ping response. | 25 // Event information returned from ping response. |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 if (cgi_string.size() >= cgi_size) | 650 if (cgi_string.size() >= cgi_size) |
649 return false; | 651 return false; |
650 | 652 |
651 strncpy(cgi, cgi_string.c_str(), cgi_size); | 653 strncpy(cgi, cgi_string.c_str(), cgi_size); |
652 cgi[cgi_size - 1] = 0; | 654 cgi[cgi_size - 1] = 0; |
653 | 655 |
654 return true; | 656 return true; |
655 } | 657 } |
656 | 658 |
657 } // namespace rlz_lib | 659 } // namespace rlz_lib |
OLD | NEW |