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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/event_router.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/chromeos/extensions/file_manager/event_router.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/event_router.cc b/chrome/browser/chromeos/extensions/file_manager/event_router.cc
index 1c985f0673cb3428a10a5d8647b9bfd768c4a0cb..a4fef16f28fa04c886589ee9a5dc04f9fe203a48 100644
--- a/chrome/browser/chromeos/extensions/file_manager/event_router.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/event_router.cc
@@ -412,11 +412,11 @@ void EventRouter::RemoveFileWatch(const base::FilePath& local_path,
void EventRouter::OnCopyCompleted(int copy_id,
const GURL& source_url,
const GURL& destination_url,
- base::PlatformFileError error) {
+ base::File::Error error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
file_browser_private::CopyProgressStatus status;
- if (error == base::PLATFORM_FILE_OK) {
+ if (error == base::File::FILE_OK) {
// Send success event.
status.type = file_browser_private::COPY_PROGRESS_STATUS_TYPE_SUCCESS;
status.source_url.reset(new std::string(source_url.spec()));
@@ -425,7 +425,7 @@ void EventRouter::OnCopyCompleted(int copy_id,
// Send error event.
status.type = file_browser_private::COPY_PROGRESS_STATUS_TYPE_ERROR;
status.error.reset(
- new int(fileapi::PlatformFileErrorToWebFileError(error)));
+ new int(fileapi::FileErrorToWebFileError(error)));
}
BroadcastEvent(

Powered by Google App Engine
This is Rietveld 408576698