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

Issue 706013004: Move non-browser specific ScreenshotTaker code to ui/snapshot. (Closed)

Created:
6 years, 1 month ago by flackr
Modified:
6 years ago
Reviewers:
Jun Mukai, sky
CC:
chromium-reviews, kalyank, sadrul, oshima
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Componentize ScreenshotTaker. The filename determination is still done in chrome/browser/ui/ash as it depends on profile settings (download dir and preferred time format) and the save to drive support is exposed as part of the client api for now. BUG=428745 TEST=ScreenshotGrabberTest.TakeScreenshot TEST=Screenshot features continue to work as before on Chromebooks with Ctrl+F5 and Ctrl+Shift+F5 Committed: https://crrev.com/149080069ead026c48e07c32430ec98bed17f75c Cr-Commit-Position: refs/heads/master@{#306600}

Patch Set 1 #

Patch Set 2 : Merge #

Patch Set 3 : Restrict to use_aura==1 and fix gn build #

Total comments: 10

Patch Set 4 : Fix win dependencies and browser_tests. #

Total comments: 2

Patch Set 5 : Attempt to fix bot failures. #

Patch Set 6 : Move screenshot_taker to ui/snapshot/ #

Total comments: 2

Patch Set 7 : Fix missing comma. #

Total comments: 38

Patch Set 8 : Merge #

Patch Set 9 : Address comments. #

Patch Set 10 : Fix test. #

Patch Set 11 : Merge and fix gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+915 lines, -950 lines) Patch
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/ui/ash/chrome_screenshot_grabber.h View 1 2 3 4 5 6 7 8 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/chrome_screenshot_grabber.cc View 1 2 3 4 5 6 7 8 1 chunk +439 lines, -0 lines 0 comments Download
A + chrome/browser/ui/ash/chrome_screenshot_grabber_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +49 lines, -50 lines 0 comments Download
D chrome/browser/ui/ash/screenshot_taker.h View 1 1 chunk +0 lines, -115 lines 0 comments Download
D chrome/browser/ui/ash/screenshot_taker.cc View 1 1 chunk +0 lines, -628 lines 0 comments Download
D chrome/browser/ui/ash/screenshot_taker_unittest.cc View 1 chunk +0 lines, -144 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M ui/snapshot/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
A ui/snapshot/screenshot_grabber.h View 1 2 3 4 5 6 7 8 1 chunk +101 lines, -0 lines 0 comments Download
A ui/snapshot/screenshot_grabber.cc View 1 2 3 4 5 6 7 8 1 chunk +196 lines, -0 lines 0 comments Download
A ui/snapshot/screenshot_grabber_observer.h View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M ui/snapshot/snapshot.gyp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
flackr
Please take a look. This moves the core screenshot taker code to components/screenshot_taker. I'm not ...
6 years, 1 month ago (2014-11-12 00:42:05 UTC) #2
oshima
-> mukai https://codereview.chromium.org/706013004/diff/40001/ash/screenshot_delegate.h File ash/screenshot_delegate.h (right): https://codereview.chromium.org/706013004/diff/40001/ash/screenshot_delegate.h#newcode36 ash/screenshot_delegate.h:36: } // namespace namespace ash https://codereview.chromium.org/706013004/diff/40001/chrome/browser/ui/ash/chrome_screenshot_taker.cc File ...
6 years, 1 month ago (2014-11-12 11:32:14 UTC) #4
oshima
can you also look into failing try jobs?
6 years, 1 month ago (2014-11-12 16:14:04 UTC) #5
Jun Mukai
https://codereview.chromium.org/706013004/diff/60001/components/screenshot_taker/screenshot_taker.cc File components/screenshot_taker/screenshot_taker.cc (right): https://codereview.chromium.org/706013004/diff/60001/components/screenshot_taker/screenshot_taker.cc#newcode34 components/screenshot_taker/screenshot_taker.cc:34: DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); Can we use SequencedWorkerPool as a constructor parameter? ...
6 years, 1 month ago (2014-11-12 19:36:21 UTC) #6
flackr
https://codereview.chromium.org/706013004/diff/40001/ash/screenshot_delegate.h File ash/screenshot_delegate.h (right): https://codereview.chromium.org/706013004/diff/40001/ash/screenshot_delegate.h#newcode36 ash/screenshot_delegate.h:36: } // namespace On 2014/11/12 11:32:14, oshima wrote: > ...
6 years, 1 month ago (2014-11-18 16:46:30 UTC) #7
oshima
fyi: removing myself from reviewer.
6 years, 1 month ago (2014-11-18 21:06:04 UTC) #8
Jun Mukai
lgtm with a nit https://codereview.chromium.org/706013004/diff/100001/ui/snapshot/BUILD.gn File ui/snapshot/BUILD.gn (right): https://codereview.chromium.org/706013004/diff/100001/ui/snapshot/BUILD.gn#newcode10 ui/snapshot/BUILD.gn:10: "screenshot_taker.h" They are currently only ...
6 years, 1 month ago (2014-11-18 21:56:15 UTC) #10
flackr
+sky for OWNERS review. Please take a look, thanks! https://codereview.chromium.org/706013004/diff/100001/ui/snapshot/BUILD.gn File ui/snapshot/BUILD.gn (right): https://codereview.chromium.org/706013004/diff/100001/ui/snapshot/BUILD.gn#newcode10 ui/snapshot/BUILD.gn:10: ...
6 years, 1 month ago (2014-11-20 00:06:07 UTC) #12
sky
https://codereview.chromium.org/706013004/diff/120001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/706013004/diff/120001/chrome/browser/policy/policy_browsertest.cc#newcode677 chrome/browser/policy/policy_browsertest.cc:677: chrome_screenshot_taker->screenshot_taker()->AddObserver(&observer_); RemoveObserver? https://codereview.chromium.org/706013004/diff/120001/chrome/browser/ui/ash/chrome_screenshot_taker.h File chrome/browser/ui/ash/chrome_screenshot_taker.h (right): https://codereview.chromium.org/706013004/diff/120001/chrome/browser/ui/ash/chrome_screenshot_taker.h#newcode20 chrome/browser/ui/ash/chrome_screenshot_taker.h:20: class ...
6 years, 1 month ago (2014-11-20 15:03:59 UTC) #13
flackr
https://codereview.chromium.org/706013004/diff/120001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/706013004/diff/120001/chrome/browser/policy/policy_browsertest.cc#newcode677 chrome/browser/policy/policy_browsertest.cc:677: chrome_screenshot_taker->screenshot_taker()->AddObserver(&observer_); On 2014/11/20 15:03:58, sky wrote: > RemoveObserver? Done. ...
6 years ago (2014-11-26 18:05:09 UTC) #14
sky
Yes, LGTM
6 years ago (2014-12-01 17:01:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/706013004/180001
6 years ago (2014-12-01 18:26:12 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/21738) linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/21855)
6 years ago (2014-12-01 18:31:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/706013004/200001
6 years ago (2014-12-03 13:42:35 UTC) #21
commit-bot: I haz the power
Committed patchset #11 (id:200001)
6 years ago (2014-12-03 14:35:45 UTC) #22
commit-bot: I haz the power
6 years ago (2014-12-03 14:36:34 UTC) #23
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/149080069ead026c48e07c32430ec98bed17f75c
Cr-Commit-Position: refs/heads/master@{#306600}

Powered by Google App Engine
This is Rietveld 408576698