Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: chromeos/system/statistics_provider.cc

Issue 1736493002: Update VPD cache file location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/chromeos_paths.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/chromeos_paths.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698