diff options
author | chrome-bot <chrome-bot@chromium.org> | 2019-01-13 13:52:20 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-13 13:52:20 -0800 |
commit | bacee4044e68cb5d7044e54fe8cfa87baf2960ba (patch) | |
tree | add5e4a6b9effaf558701198868fbe95c33961f1 /common/utils.h | |
parent | ef13c92c549fee1a73118c32315e4472a5c4ffa3 (diff) | |
parent | 7438410328547d8f55b6555ebdcfd9768978fcb9 (diff) |
Merge commit '7438410328547d8f55b6555ebdcfd9768978fcb9' into patch_branch
Change-Id: Idc4f0d63865479d4e3b85069270c6c21d52a747d
Diffstat (limited to 'common/utils.h')
-rw-r--r-- | common/utils.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/common/utils.h b/common/utils.h index e55a6e55..4b83cc41 100644 --- a/common/utils.h +++ b/common/utils.h @@ -44,11 +44,6 @@ namespace chromeos_update_engine { namespace utils { -// Converts a struct timespec representing a number of seconds since -// the Unix epoch to a base::Time. Sub-microsecond time is rounded -// down. -base::Time TimeFromStructTimespec(struct timespec *ts); - // Formats |vec_str| as a string of the form ["<elem1>", "<elem2>"]. // Does no escaping, only use this for presentation in error messages. std::string StringVectorToString(const std::vector<std::string> &vec_str); @@ -132,13 +127,6 @@ bool IsSymlink(const char* path); // only returns true if "/dev/ubi%d_0" becomes available in |timeout| seconds. bool TryAttachingUbiVolume(int volume_num, int timeout); -// Setup the directory |new_root_temp_dir| to be used as the root directory for -// temporary files instead of the system's default. If the directory doesn't -// exists, it will be created when first used. -// NOTE: The memory pointed by |new_root_temp_dir| must be available until this -// function is called again with a different value. -void SetRootTempDir(const char* new_root_temp_dir); - // If |base_filename_template| is neither absolute (starts with "/") nor // explicitly relative to the current working directory (starts with "./" or // "../"), then it is prepended the system's temporary directory. On success, @@ -275,14 +263,6 @@ std::string FormatTimeDelta(base::TimeDelta delta); // it'll return the same value again. ErrorCode GetBaseErrorCode(ErrorCode code); -// Decodes the data in |base64_encoded| and stores it in a temporary -// file. Returns false if the given data is empty, not well-formed -// base64 or if an error occurred. If true is returned, the decoded -// data is stored in the file returned in |out_path|. The file should -// be deleted when no longer needed. -bool DecodeAndStoreBase64String(const std::string& base64_encoded, - base::FilePath *out_path); - // Converts |time| to an Omaha InstallDate which is defined as "the // number of PST8PDT calendar weeks since Jan 1st 2007 0:00 PST, times // seven" with PST8PDT defined as "Pacific Time" (e.g. UTC-07:00 if |