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

Unified Diff: chrome/common/extensions/api/i18n/default_locale_handler.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/common/chrome_paths.cc ('k') | chrome/common/extensions/api/plugins/plugins_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/i18n/default_locale_handler.cc
diff --git a/chrome/common/extensions/api/i18n/default_locale_handler.cc b/chrome/common/extensions/api/i18n/default_locale_handler.cc
index 5ac7f16e9f2bfd4adda00453a08698af004ea6d9..363128fc0f256050b340625177ebdcbaa26d4ae3 100644
--- a/chrome/common/extensions/api/i18n/default_locale_handler.cc
+++ b/chrome/common/extensions/api/i18n/default_locale_handler.cc
@@ -54,7 +54,7 @@ bool DefaultLocaleHandler::Validate(
std::vector<InstallWarning>* warnings) const {
// default_locale and _locales have to be both present or both missing.
const base::FilePath path = extension->path().Append(kLocaleFolder);
- bool path_exists = file_util::PathExists(path);
+ bool path_exists = base::PathExists(path);
std::string default_locale =
extensions::LocaleInfo::GetDefaultLocale(extension);
@@ -87,7 +87,7 @@ bool DefaultLocaleHandler::Validate(
base::FilePath messages_path = locale_path.Append(kMessagesFilename);
- if (!file_util::PathExists(messages_path)) {
+ if (!base::PathExists(messages_path)) {
*error = base::StringPrintf(
"%s %s", errors::kLocalesMessagesFileMissing,
UTF16ToUTF8(messages_path.LossyDisplayName()).c_str());
« no previous file with comments | « chrome/common/chrome_paths.cc ('k') | chrome/common/extensions/api/plugins/plugins_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698