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

Unified Diff: chrome/browser/chromeos/gdata/gdata_cache_metadata.cc

Issue 10736045: gdata: Remove GDataCacheEntry::set_cache_entry() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_cache_entry.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_cache_metadata.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc b/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc
index 850f15dfa8845f51575601b71e5ff25677b2f367..fe0fb5e45a78324c0839b78936b8cca24d1eeb99 100644
--- a/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc
+++ b/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc
@@ -185,10 +185,9 @@ void GDataCacheMetadataMap::AddOrUpdateCacheEntry(
DVLOG(1) << "Added resource_id=" << resource_id
<< ", " << cache_entry.ToString();
} else { // Resource exists.
- iter->second.set_md5(cache_entry.md5());
- iter->second.set_cache_state(cache_entry.cache_state());
+ cache_map_[resource_id] = cache_entry;
DVLOG(1) << "Updated resource_id=" << resource_id
- << ", " << iter->second.ToString();
+ << ", " << cache_entry.ToString();
}
}
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_cache_entry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698