Home
last modified time | relevance | path

Searched refs:consent_file (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/chrome/browser/google/
Dgoogle_update_settings_posix.cc25 void SetConsentFilePermissionIfNeeded(const base::FilePath& consent_file) { in SetConsentFilePermissionIfNeeded() argument
29 if (base::GetPosixFilePermissions(consent_file, &permissions) && in SetConsentFilePermissionIfNeeded()
32 base::SetPosixFilePermissions(consent_file, permissions); in SetConsentFilePermissionIfNeeded()
41 base::FilePath consent_file; in GetCollectStatsConsent() local
42 PathService::Get(chrome::DIR_USER_DATA, &consent_file); in GetCollectStatsConsent()
43 consent_file = consent_file.Append(kConsentToSendStats); in GetCollectStatsConsent()
45 if (!base::DirectoryExists(consent_file.DirName())) in GetCollectStatsConsent()
49 bool consented = base::ReadFileToString(consent_file, &tmp_guid); in GetCollectStatsConsent()
51 SetConsentFilePermissionIfNeeded(consent_file); in GetCollectStatsConsent()
68 base::FilePath consent_file = consent_dir.AppendASCII(kConsentToSendStats); in SetCollectStatsConsent() local
[all …]
Dgoogle_update_settings_unittest.cc77 base::FilePath consent_file = consent_dir.Append("Consent To Send Stats"); in TEST_F() local
78 ASSERT_TRUE(base::PathExists(consent_file)); in TEST_F()
80 ASSERT_TRUE(base::GetPosixFilePermissions(consent_file, &permissions)); in TEST_F()
/external/chromium_org/chrome/browser/chromeos/settings/
Ddevice_settings_provider_unittest.cc249 base::FilePath consent_file; in TEST_F() local
250 ASSERT_TRUE(PathService::Get(chrome::DIR_USER_DATA, &consent_file)); in TEST_F()
251 consent_file = consent_file.AppendASCII("Consent To Send Stats"); in TEST_F()
252 ASSERT_EQ(1, base::WriteFile(consent_file, "0", 1)); in TEST_F()