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

Unified Diff: chrome/browser/web_applications/web_app_win.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months 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
« no previous file with comments | « chrome/browser/web_applications/web_app_mac_unittest.mm ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_applications/web_app_win.cc
diff --git a/chrome/browser/web_applications/web_app_win.cc b/chrome/browser/web_applications/web_app_win.cc
index 6e197537b5ea864008fa3413858964389fbb88a0..34205ffcdf43ff4c7c288bf2244908baf85d84f5 100644
--- a/chrome/browser/web_applications/web_app_win.cc
+++ b/chrome/browser/web_applications/web_app_win.cc
@@ -75,8 +75,8 @@ bool ShouldUpdateIcon(const base::FilePath& icon_file,
icon_file.ReplaceExtension(kIconChecksumFileExt));
// Returns true if icon_file or checksum file is missing.
- if (!file_util::PathExists(icon_file) ||
- !file_util::PathExists(checksum_file))
+ if (!base::PathExists(icon_file) ||
+ !base::PathExists(checksum_file))
return true;
base::MD5Digest persisted_image_checksum;
@@ -143,7 +143,7 @@ std::vector<base::FilePath> FindAppShortcutsByProfileAndTitle(
shortcut_file = shortcut_file.InsertBeforeExtensionASCII(
base::StringPrintf(" (%d)", i));
}
- if (file_util::PathExists(shortcut_file) &&
+ if (base::PathExists(shortcut_file) &&
IsAppShortcutForProfile(shortcut_file, profile_path)) {
shortcut_paths.push_back(shortcut_file);
}
@@ -166,7 +166,7 @@ bool CreateShortcutsInPaths(
web_app::ShortcutCreationPolicy creation_policy,
std::vector<base::FilePath>* out_filenames) {
// Ensure web_app_path exists.
- if (!file_util::PathExists(web_app_path) &&
+ if (!base::PathExists(web_app_path) &&
!file_util::CreateDirectory(web_app_path)) {
return false;
}
@@ -243,7 +243,7 @@ bool CreateShortcutsInPaths(
shortcut_properties.set_icon(icon_file, 0);
shortcut_properties.set_app_id(app_id);
shortcut_properties.set_dual_mode(false);
- if (!file_util::PathExists(shortcut_file.DirName()) &&
+ if (!base::PathExists(shortcut_file.DirName()) &&
!file_util::CreateDirectory(shortcut_file.DirName())) {
NOTREACHED();
return false;
@@ -444,7 +444,7 @@ void UpdatePlatformShortcuts(
// and let the shell know the icon has been modified.
base::FilePath icon_file = web_app_path.Append(file_name).AddExtension(
FILE_PATH_LITERAL(".ico"));
- if (file_util::PathExists(icon_file)) {
+ if (base::PathExists(icon_file)) {
web_app::internals::CheckAndSaveIcon(icon_file, shortcut_info.favicon);
}
}
« no previous file with comments | « chrome/browser/web_applications/web_app_mac_unittest.mm ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698