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

Unified Diff: chrome/browser/chromeos/drive/file_system/create_file_operation.cc

Issue 408143014: Rename OperationObserver to OperationDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/browser/chromeos/drive/file_system/create_file_operation.cc
diff --git a/chrome/browser/chromeos/drive/file_system/create_file_operation.cc b/chrome/browser/chromeos/drive/file_system/create_file_operation.cc
index f60533101efcbf9994754ee8287e369956761bb9..4bc33af6e4bb620cc4810923c388575e80ba18fc 100644
--- a/chrome/browser/chromeos/drive/file_system/create_file_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/create_file_operation.cc
@@ -9,7 +9,7 @@
#include "base/file_util.h"
#include "chrome/browser/chromeos/drive/drive.pb.h"
#include "chrome/browser/chromeos/drive/file_change.h"
-#include "chrome/browser/chromeos/drive/file_system/operation_observer.h"
+#include "chrome/browser/chromeos/drive/file_system/operation_delegate.h"
#include "chrome/browser/chromeos/drive/resource_metadata.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/mime_util.h"
@@ -71,10 +71,10 @@ FileError UpdateLocalState(internal::ResourceMetadata* metadata,
CreateFileOperation::CreateFileOperation(
base::SequencedTaskRunner* blocking_task_runner,
- OperationObserver* observer,
+ OperationDelegate* delegate,
internal::ResourceMetadata* metadata)
: blocking_task_runner_(blocking_task_runner),
- observer_(observer),
+ delegate_(delegate),
metadata_(metadata),
weak_ptr_factory_(this) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -126,12 +126,12 @@ void CreateFileOperation::CreateFileAfterUpdateLocalState(
} else if (error == FILE_ERROR_OK) {
DCHECK(!entry->file_info().is_directory());
- // Notify observer if the file was newly created.
+ // Notify delegate if the file was newly created.
FileChange changed_file;
changed_file.Update(
file_path, FileChange::FILE_TYPE_FILE, FileChange::ADD_OR_UPDATE);
- observer_->OnFileChangedByOperation(changed_file);
- observer_->OnEntryUpdatedByOperation(entry->local_id());
+ delegate_->OnFileChangedByOperation(changed_file);
+ delegate_->OnEntryUpdatedByOperation(entry->local_id());
}
callback.Run(error);
}

Powered by Google App Engine
This is Rietveld 408576698