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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database.h

Issue 148483009: [SyncFS] Force activate folder tracker on folder creation conflict case (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment update Created 6 years, 10 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/sync_file_system/drive_backend/metadata_database.h
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database.h b/chrome/browser/sync_file_system/drive_backend/metadata_database.h
index 5cd673cc9f3a8222eb7c78815d91c8b3860e9359..74a02f63b902993b83065115fd5237a741e06172 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database.h
@@ -125,7 +125,6 @@ class MetadataDatabase {
enum ActivationStatus {
ACTIVATION_PENDING,
ACTIVATION_FAILED_ANOTHER_ACTIVE_TRACKER,
- ACTIVATION_FAILED_SAME_PATH_TRACKER,
};
enum UpdateOption {
@@ -305,13 +304,11 @@ class MetadataDatabase {
const SyncStatusCallback& callback);
// Returns ACTIVATION_PENDING if a tracker of the file can be safely activated
- // without deactivating any other trackers. In this case, tries to activate
- // the tracker, and invokes |callback| upon completion.
+ // without deactivating any other path trackers. In this case, tries to
kinuko 2014/02/06 09:48:01 We never used the term 'path tracker', it's bit un
tzik 2014/02/07 04:43:53 Revised these comment.
+ // activate the tracker, and invokes |callback| upon completion.
// Returns ACTIVATION_FAILED_ANOTHER_ACTIVE_TRACKER if there's another active
// tracker that tracks |file_id|.
- // Returns ACTIVATION_FAILED_SAME_PATH_TRACKER if there's another active
- // tracker that has the same parent tracker and title to |file_id|.
- // In these FAILED cases, |callback| is not invoked.
+ // In the FAILED case, |callback| is not invoked.
kinuko 2014/02/06 09:48:01 nit/suggestion: remove the line-break at the end o
tzik 2014/02/07 04:43:53 Done.
ActivationStatus TryNoSideEffectActivation(
nhiroki 2014/02/06 10:02:42 Can we reconsider this function name? In a specifi
tzik 2014/02/07 04:43:53 Done.
int64 parent_tracker_id,
const std::string& file_id,

Powered by Google App Engine
This is Rietveld 408576698