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

Unified Diff: chrome/browser/devtools/devtools_file_system_indexer.cc

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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
Index: chrome/browser/devtools/devtools_file_system_indexer.cc
diff --git a/chrome/browser/devtools/devtools_file_system_indexer.cc b/chrome/browser/devtools/devtools_file_system_indexer.cc
index b5826e4e4df77e5241d1b5de5f0fbfbf0f9350dc..9a281db855c615623c936319eb8a2d27c6ea1522 100644
--- a/chrome/browser/devtools/devtools_file_system_indexer.cc
+++ b/chrome/browser/devtools/devtools_file_system_indexer.cc
@@ -27,7 +27,6 @@ using base::TimeDelta;
using base::TimeTicks;
using base::PassPlatformFile;
using base::PlatformFile;
-using base::PlatformFileError;
using content::BrowserThread;
using std::map;
using std::set;
@@ -346,10 +345,10 @@ void DevToolsFileSystemIndexer::FileSystemIndexingJob::IndexFiles() {
}
void DevToolsFileSystemIndexer::FileSystemIndexingJob::StartFileIndexing(
- PlatformFileError error,
+ base::File::Error error,
PassPlatformFile pass_file,
bool) {
- if (error != base::PLATFORM_FILE_OK) {
+ if (error != base::File::FILE_OK) {
current_file_ = base::kInvalidPlatformFileValue;
FinishFileIndexing(false);
return;
@@ -375,10 +374,10 @@ void DevToolsFileSystemIndexer::FileSystemIndexingJob::ReadFromFile() {
}
void DevToolsFileSystemIndexer::FileSystemIndexingJob::OnRead(
- PlatformFileError error,
+ base::File::Error error,
const char* data,
int bytes_read) {
- if (error != base::PLATFORM_FILE_OK) {
+ if (error != base::File::FILE_OK) {
FinishFileIndexing(false);
return;
}
@@ -435,7 +434,7 @@ void DevToolsFileSystemIndexer::FileSystemIndexingJob::CloseFile() {
}
void DevToolsFileSystemIndexer::FileSystemIndexingJob::CloseCallback(
- PlatformFileError error) {}
+ base::File::Error error) {}
void DevToolsFileSystemIndexer::FileSystemIndexingJob::ReportWorked() {
TimeTicks current_time = TimeTicks::Now();

Powered by Google App Engine
This is Rietveld 408576698