Searched refs:consent_file (Results 1 – 3 of 3) sorted by relevance
25 void SetConsentFilePermissionIfNeeded(const base::FilePath& consent_file) { in SetConsentFilePermissionIfNeeded() argument29 if (base::GetPosixFilePermissions(consent_file, &permissions) && in SetConsentFilePermissionIfNeeded()32 base::SetPosixFilePermissions(consent_file, permissions); in SetConsentFilePermissionIfNeeded()41 base::FilePath consent_file; in GetCollectStatsConsent() local42 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 …]
77 base::FilePath consent_file = consent_dir.Append("Consent To Send Stats"); in TEST_F() local78 ASSERT_TRUE(base::PathExists(consent_file)); in TEST_F()80 ASSERT_TRUE(base::GetPosixFilePermissions(consent_file, &permissions)); in TEST_F()
249 base::FilePath consent_file; in TEST_F() local250 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()