Commit e62605ff authored by tnagel's avatar tnagel Committed by Commit bot

Update VPD cache file location.

In https://chromium-review.googlesource.com/#/c/32606/ VPD cache files
have been migrated to unencrypted stateful and symlinks have been placed
in the original locations for backward compatibility.

This CL updates the file locations inside Chrome so that we may
eventually get rid of the symlinks and can drop the exceptions for them,
cf. https://crbug.com/655606.

BUG=none

Review-Url: https://codereview.chromium.org/1736493002
Cr-Commit-Position: refs/heads/master@{#467645}
parent 19c02985
...@@ -32,8 +32,8 @@ const base::FilePath::CharType kInstallAttributesFileName[] = ...@@ -32,8 +32,8 @@ const base::FilePath::CharType kInstallAttributesFileName[] =
const base::FilePath::CharType kMachineHardwareInfoFileName[] = const base::FilePath::CharType kMachineHardwareInfoFileName[] =
FILE_PATH_LITERAL("/tmp/machine-info"); FILE_PATH_LITERAL("/tmp/machine-info");
const base::FilePath::CharType kVpdFileName[] = const base::FilePath::CharType kVpdFileName[] = FILE_PATH_LITERAL(
FILE_PATH_LITERAL("/var/log/vpd_2.0.txt"); "/mnt/stateful_partition/unencrypted/cache/vpd/filtered.txt");
const base::FilePath::CharType kUptimeFileName[] = const base::FilePath::CharType kUptimeFileName[] =
FILE_PATH_LITERAL("/proc/uptime"); FILE_PATH_LITERAL("/proc/uptime");
......
...@@ -57,7 +57,8 @@ const char kMachineHardwareInfoDelim[] = " \n"; ...@@ -57,7 +57,8 @@ const char kMachineHardwareInfoDelim[] = " \n";
// File to get ECHO coupon info from, and key/value delimiters of // File to get ECHO coupon info from, and key/value delimiters of
// the file. // the file.
const char kEchoCouponFile[] = "/var/cache/echo/vpd_echo.txt"; const char kEchoCouponFile[] =
"/mnt/stateful_partition/unencrypted/cache/vpd/echo/vpd_echo.txt";
const char kEchoCouponEq[] = "="; const char kEchoCouponEq[] = "=";
const char kEchoCouponDelim[] = "\n"; const char kEchoCouponDelim[] = "\n";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment