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

Issue 12465012: chromeos: Change DriveResourceMetadata's method arguemnts from DriveEntryProto* to resource ID when… (Closed)

Created:
7 years, 9 months ago by hashimoto
Modified:
7 years, 9 months ago
Reviewers:
kinaba
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

chromeos: Change DriveResourceMetadata's method arguemnts from DriveEntryProto* to resource ID when possible We cannot modify an entry's state via raw pointers with DB. Replace DriveEntryProto* with resource ID when possible. Omit unnecessary arguments. Add missing parent resource ID for test data. BUG=127856 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188275

Patch Set 1 : _ #

Patch Set 2 : rebase #

Total comments: 10

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -118 lines) Patch
M chrome/browser/chromeos/drive/drive_file_system_unittest.cc View 5 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_resource_metadata.h View 1 2 1 chunk +16 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_resource_metadata.cc View 1 2 23 chunks +108 lines, -101 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_resource_metadata_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hashimoto
7 years, 9 months ago (2013-03-14 09:02:35 UTC) #1
kinaba
https://codereview.chromium.org/12465012/diff/10001/chrome/browser/chromeos/drive/drive_resource_metadata.cc File chrome/browser/chromeos/drive/drive_resource_metadata.cc (right): https://codereview.chromium.org/12465012/diff/10001/chrome/browser/chromeos/drive/drive_resource_metadata.cc#newcode164 chrome/browser/chromeos/drive/drive_resource_metadata.cc:164: DriveEntryProto* parent = entry->parent_resource_id().empty() ? NULL : Now, empty ...
7 years, 9 months ago (2013-03-15 05:48:08 UTC) #2
hashimoto
https://codereview.chromium.org/12465012/diff/10001/chrome/browser/chromeos/drive/drive_resource_metadata.cc File chrome/browser/chromeos/drive/drive_resource_metadata.cc (right): https://codereview.chromium.org/12465012/diff/10001/chrome/browser/chromeos/drive/drive_resource_metadata.cc#newcode164 chrome/browser/chromeos/drive/drive_resource_metadata.cc:164: DriveEntryProto* parent = entry->parent_resource_id().empty() ? NULL : On 2013/03/15 ...
7 years, 9 months ago (2013-03-15 06:40:23 UTC) #3
kinaba
lgtm
7 years, 9 months ago (2013-03-15 06:44:15 UTC) #4
hashimoto
7 years, 9 months ago (2013-03-15 07:08:32 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r188275 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698