Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2117)

Unified Diff: chrome/browser/policy/cloud/resource_cache.cc

Issue 105293002: Move more file_util functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/cloud/resource_cache.cc
diff --git a/chrome/browser/policy/cloud/resource_cache.cc b/chrome/browser/policy/cloud/resource_cache.cc
index 4a9932a8ca04087bf5d061e28f9cc17382b6ee60..0ee7e3a689eb017b92c6e2949649f64293919eb4 100644
--- a/chrome/browser/policy/cloud/resource_cache.cc
+++ b/chrome/browser/policy/cloud/resource_cache.cc
@@ -94,7 +94,7 @@ bool ResourceCache::Load(const std::string& key,
base::FilePath subkey_path;
// Only read from |subkey_path| if it is not a symlink.
if (!VerifyKeyPathAndGetSubkeyPath(key, false, subkey, &subkey_path) ||
- file_util::IsLink(subkey_path)) {
+ base::IsLink(subkey_path)) {
return false;
}
data->clear();
@@ -118,7 +118,7 @@ void ResourceCache::LoadAllSubkeys(
std::string data;
// Only read from |subkey_path| if it is not a symlink and its name is
// a base64-encoded string.
- if (!file_util::IsLink(path) &&
+ if (!base::IsLink(path) &&
Base64Decode(encoded_subkey, &subkey) &&
base::ReadFileToString(path, &data)) {
(*contents)[subkey].swap(data);
« no previous file with comments | « chrome/browser/password_manager/password_store_x_unittest.cc ('k') | chrome/browser/policy/config_dir_policy_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698