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

Issue 10821051: gdata: Add File System Contents section to chrome:drive-internals (Closed)

Created:
8 years, 5 months ago by satorux1
Modified:
8 years, 4 months ago
Reviewers:
achuithb, yoshiki
CC:
chromium-reviews, arv (Not doing code reviews), stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

gdata: Add File System Contents section to chrome:drive-internals This section is used to show metadata of the file system as pre-formatted text. We could make it prettier, but pre-formatted text should be sufficient for developers. BUG=135328 TEST=the new section is shown in chrome:drive-internals properly Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148759

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebased #

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -41 lines) Patch
M chrome/browser/resources/chromeos/drive_internals.css View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/drive_internals.html View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/drive_internals.js View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/drive_internals_ui.cc View 1 2 3 chunks +167 lines, -41 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
satorux1
yoshiki@, this will be also useful for testing your "nuke everything" feature.
8 years, 5 months ago (2012-07-26 21:21:51 UTC) #1
achuithb
lgtm http://codereview.chromium.org/10821051/diff/1/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc File chrome/browser/ui/webui/chromeos/drive_internals_ui.cc (right): http://codereview.chromium.org/10821051/diff/1/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc#newcode161 chrome/browser/ui/webui/chromeos/drive_internals_ui.cc:161: void OnReadDirectoryByPath( I think it's more readable to ...
8 years, 5 months ago (2012-07-26 23:00:23 UTC) #2
satorux1
8 years, 4 months ago (2012-07-27 16:13:44 UTC) #3
http://codereview.chromium.org/10821051/diff/1/chrome/browser/ui/webui/chrome...
File chrome/browser/ui/webui/chromeos/drive_internals_ui.cc (right):

http://codereview.chromium.org/10821051/diff/1/chrome/browser/ui/webui/chrome...
chrome/browser/ui/webui/chromeos/drive_internals_ui.cc:161: void
OnReadDirectoryByPath(
On 2012/07/26 23:00:23, achuith.bhandarkar wrote:
> I think it's more readable to split the definitions and declarations instead
of
> inlining the definitions. It makes it easy to see what functions a class has
and
> it's easier to figure out where the class definition starts and ends. 
> 
> I think there was a thread on chromium-dev about this being the preferred
> pattern. But I leave it to you.

Done.

http://codereview.chromium.org/10821051/diff/1/chrome/browser/ui/webui/chrome...
chrome/browser/ui/webui/chromeos/drive_internals_ui.cc:194: std::string
FormatEntry(const FilePath& path,
moved this out of the class.

http://codereview.chromium.org/10821051/diff/1/chrome/browser/ui/webui/chrome...
chrome/browser/ui/webui/chromeos/drive_internals_ui.cc:249: std::string
file_system_as_text_;
removed this.  instead of sending the entire file system contents, we can just
feed contents of a directory to javascript side, which is much more efficient

Powered by Google App Engine
This is Rietveld 408576698