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

Unified Diff: chrome/browser/google/google_update_settings_posix.cc

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the 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/extensions/webstore_installer.cc ('k') | chrome/browser/importer/firefox3_importer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_update_settings_posix.cc
diff --git a/chrome/browser/google/google_update_settings_posix.cc b/chrome/browser/google/google_update_settings_posix.cc
index c253421db784010aaf09dbd101ebf7cc16c986d6..4da917ab3b5172750f822099413a81102116151a 100644
--- a/chrome/browser/google/google_update_settings_posix.cc
+++ b/chrome/browser/google/google_update_settings_posix.cc
@@ -37,7 +37,7 @@ bool GoogleUpdateSettings::GetCollectStatsConsent() {
bool GoogleUpdateSettings::SetCollectStatsConsent(bool consented) {
base::FilePath consent_dir;
PathService::Get(chrome::DIR_USER_DATA, &consent_dir);
- if (!file_util::DirectoryExists(consent_dir))
+ if (!base::DirectoryExists(consent_dir))
return false;
base::FilePath consent_file = consent_dir.AppendASCII(kConsentToSendStats);
@@ -60,7 +60,7 @@ bool GoogleUpdateSettings::SetMetricsId(const std::wstring& client_id) {
// Make sure that user has consented to send crashes.
base::FilePath consent_dir;
PathService::Get(chrome::DIR_USER_DATA, &consent_dir);
- if (!file_util::DirectoryExists(consent_dir) ||
+ if (!base::DirectoryExists(consent_dir) ||
!GoogleUpdateSettings::GetCollectStatsConsent())
return false;
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | chrome/browser/importer/firefox3_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698