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

Issue 2693093002: Fetch file metadata of files under Team Drives. (Closed)

Created:
3 years, 10 months ago by yamaguchi
Modified:
3 years, 10 months ago
CC:
chromium-reviews, yamaguchi+watch_chromium.org, oka+watch_chromium.org, asvitkine+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fetch file metadata of files under Team Drives. The function is hidden behind a flag (--team-drives). After this change, the Files app. will be able to search files in Team Drives of which the user has access right. BUG=649911 TEST=google_apis_unittests TEST=manual test by searching a Team Drive file/folder in My Drive. Review-Url: https://codereview.chromium.org/2693093002 Cr-Commit-Position: refs/heads/master@{#452033} Committed: https://chromium.googlesource.com/chromium/src/+/eb24cc590ef75ceee37b0b3290e9dc6f5dac6e9c

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove redundant de-referencing. #

Total comments: 12

Patch Set 3 : Move flag definition out to a separate file. Don't add to about:flags for now. #

Patch Set 4 : Revert addition of unused string to .grdp. The flag is not yet exposed to about:flags. #

Total comments: 2

Patch Set 5 : Add copyright comments. #

Total comments: 8

Patch Set 6 : Reflect review comments. #

Patch Set 7 : Fix comment. #

Total comments: 2

Patch Set 8 : Add unitttest. #

Patch Set 9 : Use the generated copy constructor by compiler. #

Total comments: 12

Patch Set 10 : Inject the commandline switch by all constructor invocations. #

Patch Set 11 : Resolve compilation error. #

Total comments: 4

Patch Set 12 : Rename the enum to TeamDrivesIntegrationStatus to be more descriptive. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -55 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -2 lines 0 comments Download
M components/drive/service/drive_api_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M components/drive/service/drive_api_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M google_apis/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M google_apis/drive/drive_api_requests_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M google_apis/drive/drive_api_url_generator.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -1 line 0 comments Download
M google_apis/drive/drive_api_url_generator.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +50 lines, -10 lines 0 comments Download
M google_apis/drive/drive_api_url_generator_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +75 lines, -38 lines 0 comments Download
A google_apis/drive/drive_switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download
A google_apis/drive/drive_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download
M google_apis/drive/files_list_request_runner_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 86 (57 generated)
yamaguchi
PTAL
3 years, 10 months ago (2017-02-14 07:27:59 UTC) #4
fukino
Could you check the compile failure and find a review in OWNERS? https://codereview.chromium.org/2693093002/diff/1/google_apis/drive/drive_api_url_generator.cc File google_apis/drive/drive_api_url_generator.cc ...
3 years, 10 months ago (2017-02-14 19:24:22 UTC) #7
yamaguchi
On 2017/02/14 19:24:22, fukino wrote: > Could you check the compile failure and find a ...
3 years, 10 months ago (2017-02-15 01:45:36 UTC) #8
yamaguchi
PTAL. +hashimoto for google_apis/drive/* +haraken for histograms.xml https://codereview.chromium.org/2693093002/diff/1/google_apis/drive/drive_api_url_generator.cc File google_apis/drive/drive_api_url_generator.cc (right): https://codereview.chromium.org/2693093002/diff/1/google_apis/drive/drive_api_url_generator.cc#newcode25 google_apis/drive/drive_api_url_generator.cc:25: const char ...
3 years, 10 months ago (2017-02-17 08:44:56 UTC) #14
haraken
+isherman (I'm not eligible to review histogram.xml other than UseCounter changes.)
3 years, 10 months ago (2017-02-17 09:04:00 UTC) #16
Ilya Sherman
histograms.xml lgtm
3 years, 10 months ago (2017-02-17 23:08:23 UTC) #17
hashimoto
Do we really want to expose this feature in about:flags now? Shouldn't we wait until ...
3 years, 10 months ago (2017-02-20 03:26:30 UTC) #18
yamaguchi
Thanks for the good catch. We'll just have it a simple flag without exposing to ...
3 years, 10 months ago (2017-02-20 08:21:29 UTC) #25
yamaguchi
https://codereview.chromium.org/2693093002/diff/60001/google_apis/drive/drive_switches.h File google_apis/drive/drive_switches.h (right): https://codereview.chromium.org/2693093002/diff/60001/google_apis/drive/drive_switches.h#newcode1 google_apis/drive/drive_switches.h:1: #ifndef GOOGLE_APIS_DRIVE_DRIVE_SWITHES_H_ License must match: .*? Copyright (\(c\) )?(2017|2016|2015|2014|2013|2012|2011|2010|2009|2008|2007|2006|2006-2008|2006-2009|2006-2010) ...
3 years, 10 months ago (2017-02-20 09:51:32 UTC) #28
yamaguchi
https://codereview.chromium.org/2693093002/diff/60001/google_apis/drive/drive_switches.h File google_apis/drive/drive_switches.h (right): https://codereview.chromium.org/2693093002/diff/60001/google_apis/drive/drive_switches.h#newcode1 google_apis/drive/drive_switches.h:1: #ifndef GOOGLE_APIS_DRIVE_DRIVE_SWITHES_H_ On 2017/02/20 09:51:32, yamaguchi wrote: > License ...
3 years, 10 months ago (2017-02-20 11:02:59 UTC) #35
hashimoto
https://codereview.chromium.org/2693093002/diff/20001/google_apis/drive/drive_api_url_generator.cc File google_apis/drive/drive_api_url_generator.cc (right): https://codereview.chromium.org/2693093002/diff/20001/google_apis/drive/drive_api_url_generator.cc#newcode119 google_apis/drive/drive_api_url_generator.cc:119: const char* url_prefix; On 2017/02/20 08:21:29, yamaguchi wrote: > ...
3 years, 10 months ago (2017-02-21 10:19:10 UTC) #38
yamaguchi
https://codereview.chromium.org/2693093002/diff/20001/google_apis/drive/drive_api_url_generator.cc File google_apis/drive/drive_api_url_generator.cc (right): https://codereview.chromium.org/2693093002/diff/20001/google_apis/drive/drive_api_url_generator.cc#newcode119 google_apis/drive/drive_api_url_generator.cc:119: const char* url_prefix; On 2017/02/21 10:19:10, hashimoto wrote: > ...
3 years, 10 months ago (2017-02-22 02:07:52 UTC) #49
hashimoto
Could test the new code paths? Sorry for not catching this earlier. https://codereview.chromium.org/2693093002/diff/120001/google_apis/drive/drive_api_url_generator.cc File google_apis/drive/drive_api_url_generator.cc ...
3 years, 10 months ago (2017-02-22 03:52:03 UTC) #52
yamaguchi
https://codereview.chromium.org/2693093002/diff/120001/google_apis/drive/drive_api_url_generator.cc File google_apis/drive/drive_api_url_generator.cc (right): https://codereview.chromium.org/2693093002/diff/120001/google_apis/drive/drive_api_url_generator.cc#newcode66 google_apis/drive/drive_api_url_generator.cc:66: DriveApiUrlGenerator::DriveApiUrlGenerator(const DriveApiUrlGenerator& src) On 2017/02/22 03:52:03, hashimoto wrote: > ...
3 years, 10 months ago (2017-02-22 06:41:23 UTC) #59
hashimoto
On 2017/02/22 03:52:03, hashimoto wrote: > Could test the new code paths? > Sorry for ...
3 years, 10 months ago (2017-02-22 06:43:10 UTC) #60
yamaguchi
3 years, 10 months ago (2017-02-22 06:44:02 UTC) #61
yamaguchi
On 2017/02/22 06:43:10, hashimoto wrote: > On 2017/02/22 03:52:03, hashimoto wrote: > > Could test ...
3 years, 10 months ago (2017-02-22 06:48:14 UTC) #62
hashimoto
The value should be injected, or you can expose a setter. https://codereview.chromium.org/2693093002/diff/160001/google_apis/drive/drive_api_url_generator.h File google_apis/drive/drive_api_url_generator.h (right): ...
3 years, 10 months ago (2017-02-22 07:04:52 UTC) #63
yamaguchi
https://codereview.chromium.org/2693093002/diff/160001/google_apis/drive/drive_api_url_generator.h File google_apis/drive/drive_api_url_generator.h (right): https://codereview.chromium.org/2693093002/diff/160001/google_apis/drive/drive_api_url_generator.h#newcode24 google_apis/drive/drive_api_url_generator.h:24: const GURL& base_thumbnail_url); On 2017/02/22 07:04:51, hashimoto wrote: > ...
3 years, 10 months ago (2017-02-22 08:41:54 UTC) #70
yamaguchi
On 2017/02/22 07:04:52, hashimoto wrote: > The value should be injected, or you can expose ...
3 years, 10 months ago (2017-02-22 08:43:29 UTC) #71
hashimoto
lgtm with nits https://codereview.chromium.org/2693093002/diff/200001/google_apis/drive/drive_api_url_generator.cc File google_apis/drive/drive_api_url_generator.cc (right): https://codereview.chromium.org/2693093002/diff/200001/google_apis/drive/drive_api_url_generator.cc#newcode67 google_apis/drive/drive_api_url_generator.cc:67: default; nit: Put this ctor after ...
3 years, 10 months ago (2017-02-22 08:50:22 UTC) #72
yamaguchi
https://codereview.chromium.org/2693093002/diff/200001/google_apis/drive/drive_api_url_generator.cc File google_apis/drive/drive_api_url_generator.cc (right): https://codereview.chromium.org/2693093002/diff/200001/google_apis/drive/drive_api_url_generator.cc#newcode67 google_apis/drive/drive_api_url_generator.cc:67: default; On 2017/02/22 08:50:21, hashimoto wrote: > nit: Put ...
3 years, 10 months ago (2017-02-22 09:06:04 UTC) #73
hashimoto
lgtm
3 years, 10 months ago (2017-02-22 09:07:04 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2693093002/220001
3 years, 10 months ago (2017-02-22 09:07:25 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/369897)
3 years, 10 months ago (2017-02-22 09:16:43 UTC) #79
yamaguchi
+fukino@ Will you review and approve for chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc ?
3 years, 10 months ago (2017-02-22 10:25:19 UTC) #80
fukino
lgtm for chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc
3 years, 10 months ago (2017-02-22 13:21:18 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2693093002/220001
3 years, 10 months ago (2017-02-22 13:29:17 UTC) #83
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 14:12:54 UTC) #86
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/eb24cc590ef75ceee37b0b3290e9...

Powered by Google App Engine
This is Rietveld 408576698