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

Issue 9834091: gdata: Fix issue with copying hosted documents out from Docs folder. (Closed)

Created:
8 years, 9 months ago by Ben Chan
Modified:
8 years, 9 months ago
Reviewers:
satorux1, zel, kuan
CC:
chromium-reviews, nkostylev+watch_chromium.org, achuith+watch_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

gdata: Fix issue with copying hosted documents out from Docs folder. This CL changes GDataFileSystem to generate temporary document JSON files in a sub-directory under the cache tmp directory, which can be accessed by the file browser extension. BUG=chromium-os:28384 TEST=Tested the following: 1. Run "unit_tests --gtest_filter='*GData*'" 2. Manually test copying and moving hosted documents from Docs folder to Downloads folder in file manager. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128808

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -5 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 3 4 6 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/mock_gdata_file_system.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Ben Chan
https://chromiumcodereview.appspot.com/9834091/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): https://chromiumcodereview.appspot.com/9834091/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode431 chrome/browser/chromeos/gdata/gdata_file_system.cc:431: // JSON files. Should we bail out here or ...
8 years, 9 months ago (2012-03-24 22:55:34 UTC) #1
zel
https://chromiumcodereview.appspot.com/9834091/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): https://chromiumcodereview.appspot.com/9834091/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode432 chrome/browser/chromeos/gdata/gdata_file_system.cc:432: CHECK(temp_document_dir_.CreateUniqueTempDir()); you can't create dir on UI thread - ...
8 years, 9 months ago (2012-03-24 23:03:10 UTC) #2
Ben Chan
PTAL https://chromiumcodereview.appspot.com/9834091/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): https://chromiumcodereview.appspot.com/9834091/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode432 chrome/browser/chromeos/gdata/gdata_file_system.cc:432: CHECK(temp_document_dir_.CreateUniqueTempDir()); On 2012/03/24 23:03:10, zel wrote: > you ...
8 years, 9 months ago (2012-03-24 23:33:46 UTC) #3
zel
lgtm
8 years, 9 months ago (2012-03-24 23:35:46 UTC) #4
satorux1
http://codereview.chromium.org/9834091/diff/5001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/9834091/diff/5001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode451 chrome/browser/chromeos/gdata/gdata_file_system.cc:451: file_util::Delete(temp_document_dir_, true); Oh you cannot do this here. BrowserThread::IO ...
8 years, 9 months ago (2012-03-24 23:42:51 UTC) #5
zel
lgtm http://codereview.chromium.org/9834091/diff/5001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/9834091/diff/5001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode451 chrome/browser/chromeos/gdata/gdata_file_system.cc:451: file_util::Delete(temp_document_dir_, true); On 2012/03/24 23:42:51, satorux1 wrote: > ...
8 years, 9 months ago (2012-03-24 23:46:28 UTC) #6
Ben Chan
Changed the use /tmp/documents in cache for hosting the temp JSON file. Since the file ...
8 years, 9 months ago (2012-03-25 00:22:13 UTC) #7
kuan
http://codereview.chromium.org/9834091/diff/2002/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/9834091/diff/2002/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1039 chrome/browser/chromeos/gdata/gdata_file_system.cc:1039: GetGDataTempDocumentFolderPath(), this part lgtm.
8 years, 9 months ago (2012-03-25 00:35:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benchan@chromium.org/9834091/2002
8 years, 9 months ago (2012-03-25 00:36:37 UTC) #9
commit-bot: I haz the power
Try job failure for 9834091-2002 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-25 03:09:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benchan@chromium.org/9834091/5009
8 years, 9 months ago (2012-03-25 03:34:36 UTC) #11
commit-bot: I haz the power
Try job failure for 9834091-5009 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-25 06:10:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benchan@chromium.org/9834091/5014
8 years, 9 months ago (2012-03-25 06:46:14 UTC) #13
commit-bot: I haz the power
8 years, 9 months ago (2012-03-25 08:03:14 UTC) #14
Change committed as 128808

Powered by Google App Engine
This is Rietveld 408576698