Searched refs:consent_file (Results 1 - 4 of 4) sorted by relevance
/external/chromium/chrome/browser/google/ |
H A D | google_update_settings_posix.cc | 21 FilePath consent_file; local 22 PathService::Get(chrome::DIR_USER_DATA, &consent_file); 23 consent_file = consent_file.Append(kConsentToSendStats); 25 bool consented = file_util::ReadFileToString(consent_file, &tmp_guid); 38 FilePath consent_file = consent_dir.AppendASCII(kConsentToSendStats); 40 if ((!file_util::PathExists(consent_file)) || 41 (file_util::PathExists(consent_file) && 45 return file_util::WriteFile(consent_file, c_str, size) == size; 49 return file_util::Delete(consent_file, fals [all...] |
/external/chromium_org/chrome/browser/google/ |
H A D | google_update_settings_posix.cc | 26 base::FilePath consent_file; local 27 PathService::Get(chrome::DIR_USER_DATA, &consent_file); 28 consent_file = consent_file.Append(kConsentToSendStats); 30 bool consented = file_util::ReadFileToString(consent_file, &tmp_guid); 43 base::FilePath consent_file = consent_dir.AppendASCII(kConsentToSendStats); 45 if ((!base::PathExists(consent_file)) || 46 (base::PathExists(consent_file) && 50 return file_util::WriteFile(consent_file, c_str, size) == size; 54 return base::DeleteFile(consent_file, fals [all...] |
/external/chromium_org/chrome/browser/chromeos/settings/ |
H A D | device_settings_provider_unittest.cc | 246 base::FilePath consent_file; local 247 ASSERT_TRUE(PathService::Get(chrome::DIR_USER_DATA, &consent_file)); 248 consent_file = consent_file.AppendASCII("Consent To Send Stats"); 249 ASSERT_EQ(1, file_util::WriteFile(consent_file, "0", 1));
|
/external/chromium_org/chrome/test/pyautolib/ |
H A D | pyauto.py | 436 consent_file = '/home/chronos/Consent To Send Stats' 438 if not os.path.isfile(consent_file): 440 stat = os.stat(consent_file) 441 return (len(open(consent_file).read()) and 448 temp_file = consent_file + '.tmp' 452 shutil.move(temp_file, consent_file) 453 assert _HasValidConsentFile(), 'Could not create %s' % consent_file
|
Completed in 194 milliseconds