Lines Matching refs:profile_dir
98 static std::string create_primary_profile(const std::string& profile_dir) {
99 return StringPrintf("%s/%s", profile_dir.c_str(), PRIMARY_PROFILE_NAME);
263 std::string profile_dir = create_data_user_profile_package_path(user, pkgname);
264 std::string profile = create_primary_profile(profile_dir);
1044 static fd_t open_profile_dir(const std::string& profile_dir) {
1045 fd_t profile_dir_fd = TEMP_FAILURE_RETRY(open(profile_dir.c_str(),
1052 PLOG(ERROR) << "Failed to open profile_dir: " << profile_dir;
1058 static fd_t open_primary_profile_file_from_dir(const std::string& profile_dir, mode_t open_mode) {
1059 fd_t profile_dir_fd = open_profile_dir(profile_dir);
1065 std::string profile_file = create_primary_profile(profile_dir);
1071 PLOG(ERROR) << "Failed to lstat profile_dir: " << profile_dir;
1076 PLOG(WARNING) << "Could not close profile dir " << profile_dir;
1082 std::string profile_dir = create_data_user_profile_package_path(user, pkgname);
1083 return open_primary_profile_file_from_dir(profile_dir, O_RDONLY);