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

Issue 10815058: gdata: Check entry_proto.get() before calling has_file_specific_info() (Closed)

Created:
8 years, 5 months ago by satorux1
Modified:
8 years, 5 months ago
Reviewers:
achuithb
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, achuith+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

gdata: Check entry_proto.get() before calling has_file_specific_info() entry_proto can be NULL if there was an error in GetEntryInfoByPath() hence we should check entry_proto.get() beforehand. BUG=137882 TEST=out/Release/unit_tests --gtest_filter=GData* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=147917

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/drive_task_executor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_protocol_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_sync_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_util.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
satorux1
8 years, 5 months ago (2012-07-23 17:29:40 UTC) #1
achuithb
http://codereview.chromium.org/10815058/diff/1/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10815058/diff/1/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1820 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1820: if (entry_proto.get() && !entry_proto->has_file_specific_info()) Is this logic correct? Shouldn't ...
8 years, 5 months ago (2012-07-23 18:52:23 UTC) #2
satorux1
http://codereview.chromium.org/10815058/diff/1/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10815058/diff/1/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1820 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1820: if (entry_proto.get() && !entry_proto->has_file_specific_info()) On 2012/07/23 18:52:23, achuith.bhandarkar wrote: ...
8 years, 5 months ago (2012-07-23 19:25:34 UTC) #3
achuithb
8 years, 5 months ago (2012-07-23 19:43:21 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698