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

Issue 10828238: gdata: Rename AddEntryToDirectory() to MoveEntryFromRootDirectory() (Closed)

Created:
8 years, 4 months ago by satorux1
Modified:
8 years, 4 months ago
Reviewers:
achuithb
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

gdata: Rename AddEntryToDirectory() to MoveEntryFromRootDirectory() The original name was a misnomer. Looking at the code, the function moves an entry from the root directory to another directory. Along the way, remove if (!callback.is_null()) and PostTask() from this and related functions. BUG=126634, 139446 TEST=copying and moving of files on Drive work as before Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150907

Patch Set 1 #

Total comments: 3

Patch Set 2 : add some comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -25 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 3 chunks +21 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 6 chunks +17 lines, -13 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
satorux1
I was trying to eliminate FindEntryByPathSync() from AddEntryToDirectory(), and realized that the function name was ...
8 years, 4 months ago (2012-08-09 21:22:54 UTC) #1
achuithb
lgtm. https://chromiumcodereview.appspot.com/10828238/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.h File chrome/browser/chromeos/gdata/gdata_file_system.h (right): https://chromiumcodereview.appspot.com/10828238/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.h#newcode429 chrome/browser/chromeos/gdata/gdata_file_system.h:429: // root directory to another directory. Maybe also ...
8 years, 4 months ago (2012-08-09 21:32:42 UTC) #2
satorux1
https://chromiumcodereview.appspot.com/10828238/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.h File chrome/browser/chromeos/gdata/gdata_file_system.h (right): https://chromiumcodereview.appspot.com/10828238/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.h#newcode429 chrome/browser/chromeos/gdata/gdata_file_system.h:429: // root directory to another directory. On 2012/08/09 21:32:42, ...
8 years, 4 months ago (2012-08-09 21:50:54 UTC) #3
achuithb
8 years, 4 months ago (2012-08-09 22:42:34 UTC) #4
https://chromiumcodereview.appspot.com/10828238/diff/1/chrome/browser/chromeo...
File chrome/browser/chromeos/gdata/gdata_file_system.h (right):

https://chromiumcodereview.appspot.com/10828238/diff/1/chrome/browser/chromeo...
chrome/browser/chromeos/gdata/gdata_file_system.h:429: // root directory to
another directory.
On 2012/08/09 21:50:54, satorux1 wrote:
> On 2012/08/09 21:32:42, achuith.bhandarkar wrote:
> > Maybe also state that this calls
> > GDataDirectoryService::MoveEntryFromRootDirectory. 
> 
> You meant  GDataDirectoryService::MoveEntryToDirectory(), right?

Yup, sorry.

> > 
> > I find our comments for callbacks usually say that this is some callback for
a
> > function. This information is actually easily inferred from the function
name.
> > We often fail to describe what the callback actually does.
> 
> Agreed. added some comment.

Powered by Google App Engine
This is Rietveld 408576698