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 #include "rlz/chromeos/lib/rlz_value_store_chromeos.h" | 5 #include "rlz/chromeos/lib/rlz_value_store_chromeos.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/important_file_writer.h" | 8 #include "base/files/important_file_writer.h" |
9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
10 #include "base/json/json_string_value_serializer.h" | 10 #include "base/json/json_string_value_serializer.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "rlz/lib/lib_values.h" | 15 #include "rlz/lib/lib_values.h" |
16 #include "rlz/lib/recursive_cross_process_lock_posix.h" | 16 #include "rlz/lib/recursive_cross_process_lock_posix.h" |
17 #include "rlz/lib/rlz_lib.h" | 17 #include "rlz/lib/rlz_lib.h" |
18 | 18 |
19 namespace rlz_lib { | 19 namespace rlz_lib { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Product names. | |
24 const char kProductChrome[] = "chrome"; | |
25 const char kProductOther[] = "other"; | |
26 | |
27 // Key names. | 23 // Key names. |
28 const char kPingTimeKey[] = "ping_time"; | 24 const char kPingTimeKey[] = "ping_time"; |
29 const char kAccessPointKey[] = "access_points"; | 25 const char kAccessPointKey[] = "access_points"; |
30 const char kProductEventKey[] = "product_events"; | 26 const char kProductEventKey[] = "product_events"; |
31 const char kStatefulEventKey[] = "stateful_events"; | 27 const char kStatefulEventKey[] = "stateful_events"; |
32 | 28 |
33 // Brand name used when there is no supplementary brand name. | 29 // Brand name used when there is no supplementary brand name. |
34 const char kNoSupplementaryBrand[] = "_"; | 30 const char kNoSupplementaryBrand[] = "_"; |
35 | 31 |
36 // RLZ store filename. | 32 // RLZ store filename. |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 g_testing_rlz_store_path_ = directory; | 326 g_testing_rlz_store_path_ = directory; |
331 } | 327 } |
332 | 328 |
333 std::string RlzStoreFilenameStr() { | 329 std::string RlzStoreFilenameStr() { |
334 return GetRlzStorePath().value(); | 330 return GetRlzStorePath().value(); |
335 } | 331 } |
336 | 332 |
337 } // namespace testing | 333 } // namespace testing |
338 | 334 |
339 } // namespace rlz_lib | 335 } // namespace rlz_lib |
OLD | NEW |