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

Unified Diff: chrome/browser/shell_integration_linux.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/shell_integration.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration_linux.cc
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index b84d29531b5e33e1afea00a54e2a5acb83bb3584..3a692a9ab3937bf03fb77b6f7feaab585021065d 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -552,7 +552,7 @@ ShellIntegration::ShortcutLocations GetExistingShortcutLocations(
// Determine whether there is a shortcut on desktop.
if (!desktop_path.empty()) {
locations.on_desktop =
- file_util::PathExists(desktop_path.Append(shortcut_filename));
+ base::PathExists(desktop_path.Append(shortcut_filename));
}
// Determine whether there is a shortcut in the applications directory.
@@ -605,7 +605,7 @@ bool GetExistingShortcutContents(base::Environment* env,
i != search_paths.end(); ++i) {
base::FilePath path = i->Append("applications").Append(desktop_filename);
VLOG(1) << "Looking for desktop file in " << path.value();
- if (file_util::PathExists(path)) {
+ if (base::PathExists(path)) {
VLOG(1) << "Found desktop file at " << path.value();
return file_util::ReadFileToString(path, output);
}
@@ -627,7 +627,7 @@ base::FilePath GetWebShortcutFilename(const GURL& url) {
base::FilePath filepath = desktop_path.Append(filename);
base::FilePath alternative_filepath(filepath.value() + ".desktop");
for (size_t i = 1; i < 100; ++i) {
- if (file_util::PathExists(base::FilePath(alternative_filepath))) {
+ if (base::PathExists(base::FilePath(alternative_filepath))) {
alternative_filepath = base::FilePath(
filepath.value() + "_" + base::IntToString(i) + ".desktop");
} else {
« no previous file with comments | « chrome/browser/shell_integration.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698