Chromium Code Reviews| Index: chrome/browser/chromeos/gdata/gdata_file_system.cc |
| diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.cc b/chrome/browser/chromeos/gdata/gdata_file_system.cc |
| index 230ae9d49bae60efc56e8b11d81a45648c661b31..2b27a5ae7a7267d72097c185e0786c3edfffb98a 100644 |
| --- a/chrome/browser/chromeos/gdata/gdata_file_system.cc |
| +++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc |
| @@ -198,11 +198,7 @@ void GetCacheEntryOnBlockingPool( |
| const std::string& md5, |
| GDataCache::CacheEntry* cache_entry, |
| bool* success) { |
| - scoped_ptr<GDataCache::CacheEntry> value( |
| - cache->GetCacheEntry(resource_id, md5)); |
| - *success = value.get(); |
| - if (*success) |
| - *cache_entry = *value; |
| + *success = cache->GetCacheEntry(resource_id, md5, cache_entry); |
|
satorux1
2012/06/20 15:29:23
nice! it's simpler
|
| } |
| // Runs GetFileCallback with pointers dereferenced. |