OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chromeos/system/statistics_provider.h" | 5 #include "chromeos/system/statistics_provider.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 const char kIsVmCrosSystemKey[] = "inside_vm"; | 50 const char kIsVmCrosSystemKey[] = "inside_vm"; |
51 | 51 |
52 // Key/value delimiters of machine hardware info file. machine-info is generated | 52 // Key/value delimiters of machine hardware info file. machine-info is generated |
53 // only for OOBE and enterprise enrollment and may not be present. See | 53 // only for OOBE and enterprise enrollment and may not be present. See |
54 // login-manager/init/machine-info.conf. | 54 // login-manager/init/machine-info.conf. |
55 const char kMachineHardwareInfoEq[] = "="; | 55 const char kMachineHardwareInfoEq[] = "="; |
56 const char kMachineHardwareInfoDelim[] = " \n"; | 56 const char kMachineHardwareInfoDelim[] = " \n"; |
57 | 57 |
58 // File to get ECHO coupon info from, and key/value delimiters of | 58 // File to get ECHO coupon info from, and key/value delimiters of |
59 // the file. | 59 // the file. |
60 const char kEchoCouponFile[] = "/var/cache/echo/vpd_echo.txt"; | 60 const char kEchoCouponFile[] = |
| 61 "/mnt/stateful_partition/unencrypted/cache/vpd/echo/vpd_echo.txt"; |
61 const char kEchoCouponEq[] = "="; | 62 const char kEchoCouponEq[] = "="; |
62 const char kEchoCouponDelim[] = "\n"; | 63 const char kEchoCouponDelim[] = "\n"; |
63 | 64 |
64 // Key/value delimiters for VPD file. | 65 // Key/value delimiters for VPD file. |
65 const char kVpdEq[] = "="; | 66 const char kVpdEq[] = "="; |
66 const char kVpdDelim[] = "\n"; | 67 const char kVpdDelim[] = "\n"; |
67 | 68 |
68 // File to get regional data from. | 69 // File to get regional data from. |
69 const char kCrosRegions[] = "/usr/share/misc/cros-regions.json"; | 70 const char kCrosRegions[] = "/usr/share/misc/cros-regions.json"; |
70 | 71 |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 return StatisticsProviderImpl::GetInstance(); | 626 return StatisticsProviderImpl::GetInstance(); |
626 } | 627 } |
627 | 628 |
628 // static | 629 // static |
629 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) { | 630 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) { |
630 g_test_statistics_provider = test_provider; | 631 g_test_statistics_provider = test_provider; |
631 } | 632 } |
632 | 633 |
633 } // namespace system | 634 } // namespace system |
634 } // namespace chromeos | 635 } // namespace chromeos |
OLD | NEW |