summaryrefslogtreecommitdiffstats
path: root/sql
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-04 18:22:49 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-04 18:22:49 +0000
commit5628570f1bef7e3fd152bcff189fc13d3fbf5c9b (patch)
tree78d671a554a5a96290019e36f15baefe050e4732 /sql
parent1c6d40496ad8946c6cea837945e15bb663e8180b (diff)
downloadchromium_src-5628570f1bef7e3fd152bcff189fc13d3fbf5c9b.zip
chromium_src-5628570f1bef7e3fd152bcff189fc13d3fbf5c9b.tar.gz
chromium_src-5628570f1bef7e3fd152bcff189fc13d3fbf5c9b.tar.bz2
Move GetFileSize, NormalizeFilePath to base namespace
BUG= R=viettrungluu@chromium.org Review URL: https://codereview.chromium.org/102873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sql')
-rw-r--r--sql/connection.cc2
-rw-r--r--sql/test/test_helpers.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/sql/connection.cc b/sql/connection.cc
index 6ca60ef..6e02cd7 100644
--- a/sql/connection.cc
+++ b/sql/connection.cc
@@ -213,7 +213,7 @@ Connection::~Connection() {
bool Connection::Open(const base::FilePath& path) {
if (!histogram_tag_.empty()) {
int64 size_64 = 0;
- if (file_util::GetFileSize(path, &size_64)) {
+ if (base::GetFileSize(path, &size_64)) {
size_t sample = static_cast<size_t>(size_64 / 1024);
std::string full_histogram_name = "Sqlite.SizeKB." + histogram_tag_;
base::HistogramBase* histogram =
diff --git a/sql/test/test_helpers.cc b/sql/test/test_helpers.cc
index 5438bd6..a913352 100644
--- a/sql/test/test_helpers.cc
+++ b/sql/test/test_helpers.cc
@@ -65,7 +65,7 @@ bool CorruptSizeInHeader(const base::FilePath& db_path) {
return false;
int64 db_size = 0;
- if (!file_util::GetFileSize(db_path, &db_size))
+ if (!base::GetFileSize(db_path, &db_size))
return false;
const unsigned page_size = ReadBigEndian(header + kPageSizeOffset, 2);