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

Issue 440813002: Expose gallery watching functionality to the public mediaGalleries API. (Closed)

Created:
6 years, 4 months ago by Oren Blasberg
Modified:
6 years, 3 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, asvitkine+watch_chromium.org, vandebo (ex-Chrome), Lei Zhang, tommycli, Greg Billock, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Expose gallery watching functionality to the public mediaGalleries API. BUG=144491 Committed: https://crrev.com/d0aae1854cb98a5ac6db3657b3213be9c69b7c75 Cr-Commit-Position: refs/heads/master@{#292271}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Cleanup the code and prepare for review. #

Total comments: 53

Patch Set 4 : Ran the git cl format. #

Patch Set 5 : Respond to Tommy's comments. #

Total comments: 8

Patch Set 6 : Address Tommy's second round of comments. #

Patch Set 7 : Fix issue where a number needed to be passed as a string for gallery_id. Also add test for this. #

Total comments: 16

Patch Set 8 : Respond to thestig comments #

Patch Set 9 : Remove the disallow copy and assign, which were breaking things. Also fix copyright label. #

Patch Set 10 : Sync up the histogram value files. #

Patch Set 11 : Fix race condition in the apitest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+507 lines, -95 lines) Patch
M chrome/browser/extensions/api/media_galleries/media_galleries_api.h View 1 2 3 4 8 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_api.cc View 1 2 3 4 5 6 7 8 9 15 chunks +244 lines, -3 lines 0 comments Download
A + chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc View 1 2 3 4 5 6 7 8 9 10 14 chunks +100 lines, -74 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/media_galleries.idl View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/media_galleries/gallerywatch/manifest.json View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/media_galleries/gallerywatch/test.js View 1 2 3 4 5 6 7 8 5 chunks +59 lines, -15 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Oren Blasberg
6 years, 4 months ago (2014-08-19 00:30:15 UTC) #1
tommycli
overall looking good. I don't see any structural deficiencies... mostly nits below. https://codereview.chromium.org/440813002/diff/40001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc ...
6 years, 4 months ago (2014-08-19 16:36:03 UTC) #2
Oren Blasberg
https://codereview.chromium.org/440813002/diff/40001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/440813002/diff/40001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode72 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:72: extensions::api::media_galleries::AddGalleryWatch; On 2014/08/19 16:36:02, tommycli wrote: > make consistent ...
6 years, 4 months ago (2014-08-20 22:59:38 UTC) #3
tommycli
orenb: Great, only one blocking issue below: https://codereview.chromium.org/440813002/diff/40001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/440813002/diff/40001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode1128 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:1128: api::media_galleries::AddGalleryWatchResult result; ...
6 years, 4 months ago (2014-08-20 23:21:13 UTC) #4
tommycli
orenb: Hey, I did a bit more investigation on your tests. I'm confused... See below ...
6 years, 4 months ago (2014-08-20 23:44:10 UTC) #5
Oren Blasberg
https://codereview.chromium.org/440813002/diff/80001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/440813002/diff/80001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode1126 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:1126: result.success = false; On 2014/08/20 23:21:13, tommycli wrote: > ...
6 years, 4 months ago (2014-08-21 02:45:21 UTC) #6
tommycli
very nice work on the tests. lgtm.
6 years, 4 months ago (2014-08-21 03:20:17 UTC) #7
Oren Blasberg
Thanks for the LG! Just waiting on lgtm from other OWNERS of these files.
6 years, 4 months ago (2014-08-22 20:31:37 UTC) #8
Alexei Svitkine (slow)
lgtm
6 years, 4 months ago (2014-08-22 20:32:53 UTC) #9
Lei Zhang
https://codereview.chromium.org/440813002/diff/120001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/440813002/diff/120001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode1097 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:1097: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); nit: we usually check what thread we are ...
6 years, 4 months ago (2014-08-25 22:45:21 UTC) #10
Oren Blasberg
https://codereview.chromium.org/440813002/diff/120001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/440813002/diff/120001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode1097 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:1097: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); On 2014/08/25 22:45:21, Lei Zhang wrote: > nit: ...
6 years, 4 months ago (2014-08-26 00:40:49 UTC) #11
Lei Zhang
lgtm
6 years, 4 months ago (2014-08-26 00:57:53 UTC) #12
Oren Blasberg
The CQ bit was checked by orenb@chromium.org
6 years, 3 months ago (2014-08-27 21:51:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/orenb@chromium.org/440813002/200001
6 years, 3 months ago (2014-08-27 21:53:00 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-27 22:54:11 UTC) #15
commit-bot: I haz the power
Committed patchset #11 (id:200001) as c88388a0250b1387050599878dee14a70b0d1a53
6 years, 3 months ago (2014-08-27 23:52:27 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:55:45 UTC) #17
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/d0aae1854cb98a5ac6db3657b3213be9c69b7c75
Cr-Commit-Position: refs/heads/master@{#292271}

Powered by Google App Engine
This is Rietveld 408576698