Chromium Code Reviews| Index: chrome/browser/chromeos/gdata/gdata_directory_service.cc |
| =================================================================== |
| --- chrome/browser/chromeos/gdata/gdata_directory_service.cc (revision 152309) |
| +++ chrome/browser/chromeos/gdata/gdata_directory_service.cc (working copy) |
| @@ -300,7 +300,8 @@ |
| GDataDirectory* current_dir = root_.get(); |
| for (size_t i = 1; i < components.size() && current_dir; ++i) { |
| - GDataEntry* entry = current_dir->FindChild(components[i]); |
| + GDataEntry* entry = |
| + GetEntryByResourceId(current_dir->FindChild(components[i])); |
|
satorux1
2012/08/20 16:40:08
looks a bit scary. Maybe:
const std::string resou
achuithb
2012/08/20 21:14:57
Done. I've added a DCHECK for entry instead of a r
|
| if (!entry) |
| return NULL; |