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

Issue 10274002: Add gdata content search (Closed)

Created:
8 years, 7 months ago by tbarzic
Modified:
8 years, 7 months ago
Reviewers:
achuithb, satorux1, zel, Ben Chan
CC:
chromium-reviews, achuith+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add gdata content search Search results will be shown under virtual path gdata/.search/<query>. Content search will be triggered whenever we try to enumerate directory with the mentioned file path format. Entries returned by search results will have file names formatted as <resource_id>.<real_file_name> NOTE: the file manager part is in separate cl. TEST = manual, unittests: *GData* BUG=chromium-os:27539 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=135606

Patch Set 1 #

Patch Set 2 : tests #

Patch Set 3 : getting there #

Patch Set 4 : ready for review #

Patch Set 5 : rebase #

Patch Set 6 : fix browser tests compile #

Patch Set 7 : fix renaming #

Total comments: 49

Patch Set 8 : Addressed satorux's comments #

Total comments: 26

Patch Set 9 : ben & zel #

Total comments: 1

Patch Set 10 : a nit #

Total comments: 12

Patch Set 11 : comments #

Patch Set 12 : fix unit_test #

Patch Set 13 : fix copy #

Patch Set 14 : style nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1247 lines, -178 lines) Patch
M chrome/browser/chromeos/extensions/external_filesystem_apitest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_documents_service.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_documents_service.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +57 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 18 chunks +254 lines, -56 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +421 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +83 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_operations.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_operations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +20 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +33 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +51 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/mock_gdata_documents_service.h View 1 2 3 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/mock_gdata_documents_service.cc View 1 2 3 4 5 6 7 3 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/gdata/mock_gdata_file_system.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
A + chrome/test/data/chromeos/gdata/new_folder_entry.json View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/chromeos/gdata/remote_file_system_apitest_folder_entry.json View 1 2 3 4 5 6 7 1 chunk +0 lines, -89 lines 0 comments Download
A chrome/test/data/chromeos/gdata/search_result_feed.json View 1 1 chunk +239 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tbarzic
Guys, can you, please, take a look :) Toni
8 years, 7 months ago (2012-05-03 00:56:14 UTC) #1
satorux1
Nice work! As usual, can I ask you to split this patch, so we can ...
8 years, 7 months ago (2012-05-03 17:58:33 UTC) #2
Ben Chan
https://chromiumcodereview.appspot.com/10274002/diff/22001/chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc File chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc (right): https://chromiumcodereview.appspot.com/10274002/diff/22001/chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc#newcode114 chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc:114: std::string(), // search string nit: two spaces before comment ...
8 years, 7 months ago (2012-05-03 22:47:39 UTC) #3
zel
http://codereview.chromium.org/10274002/diff/22001/chrome/browser/chromeos/gdata/gdata_file_system.h File chrome/browser/chromeos/gdata/gdata_file_system.h (right): http://codereview.chromium.org/10274002/diff/22001/chrome/browser/chromeos/gdata/gdata_file_system.h#newcode416 chrome/browser/chromeos/gdata/gdata_file_system.h:416: virtual void GetEntriesByQueryAsync( Get<Something>ByQuery is called Search :) Please ...
8 years, 7 months ago (2012-05-03 22:57:56 UTC) #4
tbarzic
https://chromiumcodereview.appspot.com/10274002/diff/12003/chrome/browser/chromeos/gdata/gdata_documents_service.h File chrome/browser/chromeos/gdata/gdata_documents_service.h (right): https://chromiumcodereview.appspot.com/10274002/diff/12003/chrome/browser/chromeos/gdata/gdata_documents_service.h#newcode79 chrome/browser/chromeos/gdata/gdata_documents_service.h:79: // used only if |start_changestamp| is 0. On 2012/05/03 ...
8 years, 7 months ago (2012-05-03 23:56:17 UTC) #5
zel
https://chromiumcodereview.appspot.com/10274002/diff/22001/chrome/browser/chromeos/gdata/gdata_files.h File chrome/browser/chromeos/gdata/gdata_files.h (right): https://chromiumcodereview.appspot.com/10274002/diff/22001/chrome/browser/chromeos/gdata/gdata_files.h#newcode521 chrome/browser/chromeos/gdata/gdata_files.h:521: scoped_ptr<GDataDirectory> fake_search_directory_; On 2012/05/03 23:56:17, tbarzic wrote: > On ...
8 years, 7 months ago (2012-05-04 00:00:07 UTC) #6
tbarzic
On 2012/05/04 00:00:07, zel wrote: > https://chromiumcodereview.appspot.com/10274002/diff/22001/chrome/browser/chromeos/gdata/gdata_files.h > File chrome/browser/chromeos/gdata/gdata_files.h (right): > > https://chromiumcodereview.appspot.com/10274002/diff/22001/chrome/browser/chromeos/gdata/gdata_files.h#newcode521 > ...
8 years, 7 months ago (2012-05-04 00:10:01 UTC) #7
zel
i see LGTM
8 years, 7 months ago (2012-05-04 00:21:03 UTC) #8
satorux1
LGTM with nits: please consider addressing them before submit. https://chromiumcodereview.appspot.com/10274002/diff/12003/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): https://chromiumcodereview.appspot.com/10274002/diff/12003/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1813 chrome/browser/chromeos/gdata/gdata_file_system.cc:1813: ...
8 years, 7 months ago (2012-05-04 01:48:39 UTC) #9
satorux1
8 years, 7 months ago (2012-05-04 01:53:28 UTC) #10
http://codereview.chromium.org/10274002/diff/25002/chrome/browser/chromeos/gd...
File chrome/browser/chromeos/gdata/gdata_files.cc (right):

http://codereview.chromium.org/10274002/diff/25002/chrome/browser/chromeos/gd...
chrome/browser/chromeos/gdata/gdata_files.cc:504: // If |file_path| is indeed
search file path, we should continue search from
is this comment still relevant? I thought now |file_path| is guaranteed to be a
search path? please revise as needed.

Powered by Google App Engine
This is Rietveld 408576698