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

Unified Diff: chrome/browser/web_applications/web_app_mac.mm

Issue 100573002: Move directory creation 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
« no previous file with comments | « chrome/browser/ui/web_applications/web_app_ui.cc ('k') | chrome/browser/web_applications/web_app_win.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_mac.mm
diff --git a/chrome/browser/web_applications/web_app_mac.mm b/chrome/browser/web_applications/web_app_mac.mm
index 0be104bca5de48398617b49edc5ddf0ac0d74565..f7372ce4e49ef123eea50a5bf84b3fd04db8dae1 100644
--- a/chrome/browser/web_applications/web_app_mac.mm
+++ b/chrome/browser/web_applications/web_app_mac.mm
@@ -137,7 +137,7 @@ base::FilePath GetWritableApplicationsDirectory() {
base::FilePath path;
if (base::mac::GetUserDirectory(NSApplicationDirectory, &path)) {
if (!base::DirectoryExists(path)) {
- if (!file_util::CreateDirectory(path))
+ if (!base::CreateDirectory(path))
return base::FilePath();
// Create a zero-byte ".localized" file to inherit localizations from OSX
@@ -258,7 +258,7 @@ base::FilePath GetLocalizableAppShortcutsSubdirName() {
void UpdateAppShortcutsSubdirLocalizedName(
const base::FilePath& apps_directory) {
base::FilePath localized = apps_directory.Append(".localized");
- if (!file_util::CreateDirectory(localized))
+ if (!base::CreateDirectory(localized))
return;
base::FilePath directory_name = apps_directory.BaseName().RemoveExtension();
@@ -437,7 +437,7 @@ size_t WebAppShortcutCreator::CreateShortcutsIn(
for (std::vector<base::FilePath>::const_iterator it = folders.begin();
it != folders.end(); ++it) {
const base::FilePath& dst_path = *it;
- if (!file_util::CreateDirectory(dst_path)) {
+ if (!base::CreateDirectory(dst_path)) {
LOG(ERROR) << "Creating directory " << dst_path.value() << " failed.";
return succeeded;
}
@@ -623,7 +623,7 @@ bool WebAppShortcutCreator::UpdateDisplayName(
// OSX searches for the best language in the order of preferred languages.
// Since we only have one localization directory, it will choose this one.
base::FilePath localized_dir = GetResourcesPath(app_path).Append("en.lproj");
- if (!file_util::CreateDirectory(localized_dir))
+ if (!base::CreateDirectory(localized_dir))
return false;
NSString* bundle_name = base::SysUTF16ToNSString(info_.title);
@@ -670,7 +670,7 @@ bool WebAppShortcutCreator::UpdateIcon(const base::FilePath& app_path) const {
return false;
base::FilePath resources_path = GetResourcesPath(app_path);
- if (!file_util::CreateDirectory(resources_path))
+ if (!base::CreateDirectory(resources_path))
return false;
return icon_family.WriteDataToFile(resources_path.Append("app.icns"));
« no previous file with comments | « chrome/browser/ui/web_applications/web_app_ui.cc ('k') | chrome/browser/web_applications/web_app_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698