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

Unified Diff: chrome/browser/chromeos/drive/sync/entry_update_performer.cc

Issue 118953003: drive: Stop setting dummy resource ID for "drive" and "other" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/chromeos/drive/resource_metadata_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/sync/entry_update_performer.cc
diff --git a/chrome/browser/chromeos/drive/sync/entry_update_performer.cc b/chrome/browser/chromeos/drive/sync/entry_update_performer.cc
index a1c0a507be06aae50dac0444b8f87888493b175c..e60cc03674b0c21d218f3447c95eeb9835661bb3 100644
--- a/chrome/browser/chromeos/drive/sync/entry_update_performer.cc
+++ b/chrome/browser/chromeos/drive/sync/entry_update_performer.cc
@@ -139,16 +139,12 @@ void EntryUpdatePerformer::UpdateEntryAfterPrepare(
return;
}
- std::string parent_resource_id;
- if (!util::IsSpecialResourceId(parent_entry->resource_id()))
- parent_resource_id = parent_entry->resource_id();
-
base::Time last_modified =
base::Time::FromInternalValue(entry->file_info().last_modified());
base::Time last_accessed =
base::Time::FromInternalValue(entry->file_info().last_accessed());
scheduler_->UpdateResource(
- entry->resource_id(), parent_resource_id,
+ entry->resource_id(), parent_entry->resource_id(),
entry->title(), last_modified, last_accessed,
ClientContext(BACKGROUND),
base::Bind(&EntryUpdatePerformer::UpdateEntryAfterUpdateResource,
« no previous file with comments | « chrome/browser/chromeos/drive/resource_metadata_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698