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

Issue 366025: Modifying extension automation so that it is done through a particular... (Closed)

Created:
11 years, 1 month ago by Jói
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, amit, Aaron Boodman, pam+watch_chromium.org, Erik does not do reviews
Visibility:
Public.

Description

Modifying extension automation so that it is done through a particular tab for all extension views. Previously, API routing to the automation client would only work for extension views that were contained in the particular ExternalTab instance being automated. This meant you couldn't test API calls from e.g. background pages. Also using async functions instead of the previous RVH-based hack. Updating one of the UI tests to make the API calls from a background page, to provide an end-to-end test of the new routing. This makes AutomationProvider::SetEnableAutomationExtension Windows-only, but it effectively always was since it was already dependent on ExternalTabContainer (indirectly, to provide a non-empty implementation of TabContentsDelegate::ForwardMessageToExternalHost). BUG=none TEST=ui_tests.exe, chrome_frame_tests.exe, chrome_frame_unittests.exe Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31403

Patch Set 1 #

Total comments: 27

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -111 lines) Patch
M chrome/browser/automation/automation_extension_function.h View 1 2 3 4 2 chunks +31 lines, -11 lines 0 comments Download
M chrome/browser/automation/automation_extension_function.cc View 1 2 3 4 4 chunks +80 lines, -35 lines 0 comments Download
M chrome/browser/automation/automation_provider.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/automation/automation_provider_win.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_uitest.cc View 1 2 2 chunks +24 lines, -15 lines 0 comments Download
M chrome/browser/external_tab_container.h View 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/external_tab_container.cc View 2 3 4 4 chunks +23 lines, -1 line 0 comments Download
M chrome/test/automation/automation_messages_internal.h View 1 2 1 chunk +13 lines, -7 lines 0 comments Download
M chrome/test/automation/automation_proxy.h View 1 2 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/test/automation/automation_proxy.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/test/automation/tab_proxy.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/test/automation/tab_proxy.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/uitest/roundtrip_api_call/background.html View 1 1 chunk +11 lines, -0 lines 0 comments Download
MM chrome/test/data/extensions/uitest/roundtrip_api_call/manifest.json View 1 2 1 chunk +2 lines, -1 line 0 comments Download
MM chrome/test/data/extensions/uitest/roundtrip_api_call/test.html View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M chrome_frame/chrome_frame_automation.h View 1 2 2 chunks +0 lines, -7 lines 0 comments Download
M chrome_frame/chrome_frame_automation.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
MAD
Cool stuff... Small nits and a suggestion to add comments. BYT MAD http://codereview.chromium.org/366025/diff/1/16 File chrome/browser/automation/automation_extension_function.cc ...
11 years, 1 month ago (2009-11-05 16:19:49 UTC) #1
Jói
Thanks MAD. http://codereview.chromium.org/366025/diff/1/16 File chrome/browser/automation/automation_extension_function.cc (right): http://codereview.chromium.org/366025/diff/1/16#newcode36 Line 36: "Why is this function still enabled ...
11 years, 1 month ago (2009-11-05 16:25:53 UTC) #2
Paweł Hajdan Jr.
Drive-by with automation-related comments. http://codereview.chromium.org/366025/diff/1/15 File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/366025/diff/1/15#newcode1946 Line 1946: NOTREACHED(); Not a good ...
11 years, 1 month ago (2009-11-05 16:40:45 UTC) #3
Jói
Hi Pawel, Thanks for the drive-bys. The code is not 100% complete, thanks for catching ...
11 years, 1 month ago (2009-11-05 19:06:08 UTC) #4
Paweł Hajdan Jr.
http://codereview.chromium.org/366025/diff/1/15 File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/366025/diff/1/15#newcode1946 Line 1946: NOTREACHED(); On 2009/11/05 19:06:08, Jói wrote: > I ...
11 years, 1 month ago (2009-11-05 20:01:24 UTC) #5
Jói
Pawel, thanks again, your comments led me to a better solution for managing the lifetime ...
11 years, 1 month ago (2009-11-06 02:40:39 UTC) #6
Jói
11 years, 1 month ago (2009-11-06 03:03:00 UTC) #7
Paweł Hajdan Jr.
LGTM
11 years, 1 month ago (2009-11-06 06:09:16 UTC) #8
tommi (sloooow) - chröme
Hi Joi, I just saw the review request. I'll be on a plane today so ...
11 years, 1 month ago (2009-11-06 14:32:51 UTC) #9
Jói
Thanks Tommi, didn't realize you were traveling today. I had a chat with Ananta, he ...
11 years, 1 month ago (2009-11-06 16:51:23 UTC) #10
ananta
LGTM for the automation changes.
11 years, 1 month ago (2009-11-06 21:50:51 UTC) #11
amit
11 years, 1 month ago (2009-11-06 22:34:04 UTC) #12
lgtm

On Fri, Nov 6, 2009 at 1:50 PM, <ananta@chromium.org> wrote:

> LGTM for the automation changes.
>
>
>
> http://codereview.chromium.org/366025
>

Powered by Google App Engine
This is Rietveld 408576698