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

Issue 10832233: gdata: Fix bad function names in GDataFileSystem (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: Fix bad function names in GDataFileSystem - RemoveEntryFromDirectory() was a misnomer. It removes an entry if it's not on the root directory. The |dir_path| parameter was unnecessary as it can be obtained from |file_path|. New name: RemoveEntryFromNonRootDirectory() - RemoveEntryFromDirectoryOnFileSystem() was a misnomer. It moves an entry to the root directory on the client side New name: MoveEntryToRootDirectoryOnClientSide() - Rename *OnFileSystem() with *OnClientSide() to make it clear these are client side operations - Rename OnMoveEntryToDirectoryWithFileMoveCallback() to NotifyAndRunFileMoveCallback() based on what it does - Rename OnMoveEntryToDirectoryWithFileOperationCallback() to NotifyAndRunFileOperationCallback() based on what it does Along the way, eliminate if (!callback.is_null()) and PostTask() from places where these are unnecessary. BUG=126634, 139446 TEST=moving and renaming of files on Drive works as before Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151115

Patch Set 1 #

Total comments: 10

Patch Set 2 : rebased #

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -56 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 2 chunks +32 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 11 chunks +26 lines, -27 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
satorux1
This entry moving business is a mess. Hope the new names make us a bit ...
8 years, 4 months ago (2012-08-09 23:18:27 UTC) #1
achuithb
https://chromiumcodereview.appspot.com/10832233/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): https://chromiumcodereview.appspot.com/10832233/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1294 chrome/browser/chromeos/gdata/gdata_file_system.cc:1294: const FilePath& dir_path = file_path.DirName(); Can't use a const ...
8 years, 4 months ago (2012-08-10 08:59:13 UTC) #2
satorux1
http://codereview.chromium.org/10832233/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10832233/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1294 chrome/browser/chromeos/gdata/gdata_file_system.cc:1294: const FilePath& dir_path = file_path.DirName(); On 2012/08/10 08:59:13, achuith.bhandarkar ...
8 years, 4 months ago (2012-08-10 15:56:03 UTC) #3
achuithb
8 years, 4 months ago (2012-08-10 19:31:05 UTC) #4
Thanks for taking care of the comments.

LGTM!

Powered by Google App Engine
This is Rietveld 408576698