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

Issue 10836137: gdata: Remove hide_hosted_documents from ReadDirectoryCallback (Closed)

Created:
8 years, 4 months ago by satorux1
Modified:
8 years, 4 months ago
Reviewers:
achuithb, Nikita (slow)
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: Remove hide_hosted_documents from ReadDirectoryCallback Background: We plan to Add ReadDirectoryByPath() to GDataDirectoryService and use the same ReadDirectoryCallback, and hide_hosted_documents turned out to be an obstacle. It's cleaner to check the setting in the caller, where this setting matters anyway. BUG=141147 TEST=confirm that the "show hosted documents" setting works as before Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150436

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -40 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 6 chunks +5 lines, -24 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_interface.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_proxy.h View 4 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc View 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_system_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/drive_internals_ui.cc View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
satorux1
8 years, 4 months ago (2012-08-07 18:18:39 UTC) #1
satorux1
please also take a look. this is blocking the other change http://codereview.chromium.org/10837148/
8 years, 4 months ago (2012-08-07 21:13:48 UTC) #2
achuithb
On 2012/08/07 21:13:48, satorux1 wrote: > please also take a look. this is blocking the ...
8 years, 4 months ago (2012-08-07 21:21:16 UTC) #3
achuithb
http://codereview.chromium.org/10836137/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10836137/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2979 chrome/browser/chromeos/gdata/gdata_file_system.cc:2979: void GDataFileSystem::SetHideHostedDocuments(bool hide) { This function is weird now. ...
8 years, 4 months ago (2012-08-07 21:35:45 UTC) #4
satorux1
http://codereview.chromium.org/10836137/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10836137/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2979 chrome/browser/chromeos/gdata/gdata_file_system.cc:2979: void GDataFileSystem::SetHideHostedDocuments(bool hide) { On 2012/08/07 21:35:45, achuith.bhandarkar wrote: ...
8 years, 4 months ago (2012-08-07 21:48:07 UTC) #5
achuithb
lgtm++ good patch!
8 years, 4 months ago (2012-08-07 21:50:43 UTC) #6
kochi
Looks like in OnReadDirectory() in gdata_file_system_proxy.cc, calling pref_service->GetBoolean() causes [27872:27884:4945112294398:FATAL:pref_service.cc(548)] Check failed: CalledOnValidThread() Shall this ...
8 years, 4 months ago (2012-08-08 07:04:41 UTC) #7
Nikita (slow)
I was thinking about reverting this CL but since browser_tests failure is clearly associated with ...
8 years, 4 months ago (2012-08-08 07:42:19 UTC) #8
Nikita (slow)
Decided to revert though. Otherwise trybots and buildbot are constantly red.
8 years, 4 months ago (2012-08-08 08:41:07 UTC) #9
satorux1
Sorry about that. I wasn't aware of the failure, though it was failing on a ...
8 years, 4 months ago (2012-08-08 12:45:37 UTC) #10
satorux1
8 years, 4 months ago (2012-08-08 14:43:55 UTC) #11
On 2012/08/08 12:45:37, satorux1 wrote:
> Sorry about that. I wasn't aware of the failure, though it was failing on a
try
> bot. I forgot that we were dealing with IO thread in the proxy class.

For the record, I tried to rework this patch, by tweaking
gdata_file_system_proxy.cc to get the setting safely on UI thread. This resulted
in  difficult-to follow code so I gave up on this patch.

Powered by Google App Engine
This is Rietveld 408576698