Don't send machine and user ID to Omaha anymore. Send a/r pings instead.
This avoids sending a unique ID in order to track active user counts.
Note that this CL doesn't remove the machine/user/Omaha ID/file from
the params object -- it just makes them unused/obsolete. Removal will
be done in a subsequent CL in an effort to make this CL smaller.
BUG=1439
TEST=unit tests, x86-generic, arm-generic, gmerged and inspected logs
Review URL: http://codereview.chromium.org/2856070
diff --git a/prefs_unittest.cc b/prefs_unittest.cc
index fc492fb..87116e5 100644
--- a/prefs_unittest.cc
+++ b/prefs_unittest.cc
@@ -91,12 +91,11 @@
TEST_F(PrefsTest, SetStringCreateDir) {
const char kKey[] = "a-test-key";
const char kValue[] = "test value";
- EXPECT_TRUE(prefs_.Init(FilePath(prefs_dir_.Append("subdir"))));
+ FilePath subdir = prefs_dir_.Append("subdir1").Append("subdir2");
+ EXPECT_TRUE(prefs_.Init(subdir));
EXPECT_TRUE(prefs_.SetString(kKey, kValue));
string value;
- EXPECT_TRUE(
- file_util::ReadFileToString(prefs_dir_.Append("subdir").Append(kKey),
- &value));
+ EXPECT_TRUE(file_util::ReadFileToString(subdir.Append(kKey), &value));
EXPECT_EQ(kValue, value);
}