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

Issue 10294003: Use the asynchronous version of CopyFromBackingStore in CaptureVisibleTabFunction. (Closed)

Created:
8 years, 7 months ago by mazda
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, jstritar
Visibility:
Public.

Description

Use the asynchronous version of CopyFromBackingStore in CaptureVisibleTabFunction. BUG=120003 TEST=Take Screenshot Extension with site permission modified (http://code.google.com/chrome/extensions/samples.html#e1697cacebad05218798bf3e8a0f724517f0e8c3) worked properly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135254

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -13 lines) Patch
M chrome/browser/extensions/extension_tabs_module.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 2 chunks +31 lines, -13 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
mazda
Can I ask you to review this change?
8 years, 7 months ago (2012-05-02 01:21:39 UTC) #1
mazda
http://codereview.chromium.org/10294003/diff/1/chrome/browser/extensions/extension_tabs_module.cc File chrome/browser/extensions/extension_tabs_module.cc (left): http://codereview.chromium.org/10294003/diff/1/chrome/browser/extensions/extension_tabs_module.cc#oldcode1679 chrome/browser/extensions/extension_tabs_module.cc:1679: wrapper->snapshot_tab_helper()->CaptureSnapshot(); This line looks redundant and I copied the ...
8 years, 7 months ago (2012-05-02 01:23:25 UTC) #2
Sam Kerner (Chrome)
http://codereview.chromium.org/10294003/diff/1/chrome/browser/extensions/extension_tabs_module.cc File chrome/browser/extensions/extension_tabs_module.cc (left): http://codereview.chromium.org/10294003/diff/1/chrome/browser/extensions/extension_tabs_module.cc#oldcode1679 chrome/browser/extensions/extension_tabs_module.cc:1679: wrapper->snapshot_tab_helper()->CaptureSnapshot(); On 2012/05/02 01:23:25, mazda wrote: > This line ...
8 years, 7 months ago (2012-05-02 03:26:09 UTC) #3
Sam Kerner (Chrome)
+jstritar I no longer work on chrome full time. I am happy to do reviews, ...
8 years, 7 months ago (2012-05-02 03:47:14 UTC) #4
mazda
Thank you for the review. I didn't notice that you are no longer working on ...
8 years, 7 months ago (2012-05-02 06:07:39 UTC) #5
Sam Kerner (Chrome)
I am happy with the change, but I want to let jstritar take a look.
8 years, 7 months ago (2012-05-02 16:16:35 UTC) #6
mazda
Thanks. jstritar@ Could you review this CL?
8 years, 7 months ago (2012-05-02 16:29:07 UTC) #7
mazda
jstritar: ping?
8 years, 7 months ago (2012-05-03 16:13:31 UTC) #8
Mihai Parparita -not on Chrome
Jon is also no longer working on Chrome full-time, I can take a look. http://codereview.chromium.org/10294003/diff/16001/chrome/browser/extensions/extension_tabs_module.cc ...
8 years, 7 months ago (2012-05-03 16:27:29 UTC) #9
mazda
Mihai, Thank you for the review! Please take another look at the change. http://codereview.chromium.org/10294003/diff/16001/chrome/browser/extensions/extension_tabs_module.cc File ...
8 years, 7 months ago (2012-05-03 16:51:52 UTC) #10
Mihai Parparita -not on Chrome
LGTM
8 years, 7 months ago (2012-05-03 20:48:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/10294003/23002
8 years, 7 months ago (2012-05-03 20:58:38 UTC) #12
commit-bot: I haz the power
Try job failure for 10294003-23002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 7 months ago (2012-05-03 21:54:09 UTC) #13
mazda
http://codereview.chromium.org/10294003/diff/23002/chrome/browser/extensions/extension_tabs_module.cc File chrome/browser/extensions/extension_tabs_module.cc (right): http://codereview.chromium.org/10294003/diff/23002/chrome/browser/extensions/extension_tabs_module.cc#newcode1663 chrome/browser/extensions/extension_tabs_module.cc:1663: error_ = keys::kInternalVisibleTabCaptureError; It looks we should not set ...
8 years, 7 months ago (2012-05-03 22:24:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/10294003/36001
8 years, 7 months ago (2012-05-03 22:25:26 UTC) #15
commit-bot: I haz the power
Change committed as 135254
8 years, 7 months ago (2012-05-04 00:27:37 UTC) #16
Sam Kerner (Chrome)
8 years, 7 months ago (2012-05-04 04:29:58 UTC) #17
LGTM

http://codereview.chromium.org/10294003/diff/23002/chrome/browser/extensions/...
File chrome/browser/extensions/extension_tabs_module.cc (right):

http://codereview.chromium.org/10294003/diff/23002/chrome/browser/extensions/...
chrome/browser/extensions/extension_tabs_module.cc:1663: error_ =
keys::kInternalVisibleTabCaptureError;
On 2012/05/03 22:24:50, mazda wrote:
> It looks we should not set error here. Adding this broke several tests.
> I reverted the change of this part.

Looks like Extension::CanCaptureVisiblePage(.., &error) sets error when it
returns false.

Powered by Google App Engine
This is Rietveld 408576698