| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 const char kCrosSystemEq[] = "="; | 34 const char kCrosSystemEq[] = "="; |
| 35 const char kCrosSystemDelim[] = "\n"; | 35 const char kCrosSystemDelim[] = "\n"; |
| 36 const char kCrosSystemCommentDelim[] = "#"; | 36 const char kCrosSystemCommentDelim[] = "#"; |
| 37 const char kCrosSystemUnknownValue[] = "(error)"; | 37 const char kCrosSystemUnknownValue[] = "(error)"; |
| 38 | 38 |
| 39 const char kHardwareClassCrosSystemKey[] = "hwid"; | 39 const char kHardwareClassCrosSystemKey[] = "hwid"; |
| 40 const char kUnknownHardwareClass[] = "unknown"; | 40 const char kUnknownHardwareClass[] = "unknown"; |
| 41 const char kSerialNumber[] = "sn"; | 41 const char kSerialNumber[] = "sn"; |
| 42 | 42 |
| 43 // File to get machine hardware info from, and key/value delimiters of | 43 // File to get machine hardware info from, and key/value delimiters of |
| 44 // the file. | 44 // the file. machine-info is generated only for OOBE and enterprise enrollment |
| 45 // /tmp/machine-info is generated by platform/init/chromeos_startup. | 45 // and may not be present. See login-manager/init/machine-info.conf. |
| 46 const char kMachineHardwareInfoFile[] = "/tmp/machine-info"; | 46 const char kMachineHardwareInfoFile[] = "/tmp/machine-info"; |
| 47 const char kMachineHardwareInfoEq[] = "="; | 47 const char kMachineHardwareInfoEq[] = "="; |
| 48 const char kMachineHardwareInfoDelim[] = " \n"; | 48 const char kMachineHardwareInfoDelim[] = " \n"; |
| 49 | 49 |
| 50 // File to get ECHO coupon info from, and key/value delimiters of | 50 // File to get ECHO coupon info from, and key/value delimiters of |
| 51 // the file. | 51 // the file. |
| 52 const char kEchoCouponFile[] = "/var/cache/echo/vpd_echo.txt"; | 52 const char kEchoCouponFile[] = "/var/cache/echo/vpd_echo.txt"; |
| 53 const char kEchoCouponEq[] = "="; | 53 const char kEchoCouponEq[] = "="; |
| 54 const char kEchoCouponDelim[] = "\n"; | 54 const char kEchoCouponDelim[] = "\n"; |
| 55 | 55 |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 return StatisticsProviderImpl::GetInstance(); | 323 return StatisticsProviderImpl::GetInstance(); |
| 324 } | 324 } |
| 325 | 325 |
| 326 // static | 326 // static |
| 327 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) { | 327 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) { |
| 328 g_test_statistics_provider = test_provider; | 328 g_test_statistics_provider = test_provider; |
| 329 } | 329 } |
| 330 | 330 |
| 331 } // namespace system | 331 } // namespace system |
| 332 } // namespace chromeos | 332 } // namespace chromeos |
| OLD | NEW |