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

Issue 10408071: gdata: Fix a crash when adding a new file to a new but deleted directory. (Closed)

Created:
8 years, 7 months ago by satorux1
Modified:
8 years, 7 months ago
Reviewers:
zel
CC:
chromium-reviews, achuith+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

gdata: Fix a crash when adding a new file to a new but deleted directory. FindDirectoryForNewEntry() was crashing when: 1) a new file is added to a new directory in the same delta feed 2) but the new directory entry is marked "deleted" (moved to trash) BUG=127495 TEST=added a unit test for the fix Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138368

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -10 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 7 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/chromeos/gdata/delta_file_added_in_new_but_deleted_directory.json View 1 chunk +252 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
satorux1
8 years, 7 months ago (2012-05-22 20:32:48 UTC) #1
zel
8 years, 7 months ago (2012-05-22 20:51:08 UTC) #2
lgtm

Powered by Google App Engine
This is Rietveld 408576698