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

Issue 12463015: Enable <adview> tag for packaged apps. (Closed)

Created:
7 years, 9 months ago by rpaquay
Modified:
7 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Initial check-in enabling <adview> tag for packaged apps. The <adview> tag is available only in packaged apps v2 -- when specifying the "adview" permission. It enables packaged apps to embed ads in a separate process (similar to <webview>), thus enforcing some separation between ad networks and app code for both security and privacy. BUG=180618 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190043

Patch Set 1 #

Patch Set 2 : Create a permission for <adview>. #

Patch Set 3 : Injects "ad_view.js" when "adview" permission is active. #

Patch Set 4 : Initial ad_view shim implementation. #

Patch Set 5 : Create an "about flag" to enable <adview> support. #

Patch Set 6 : Adding flags and tests #

Patch Set 7 : Rebasing #

Total comments: 22

Patch Set 8 : Address asargent@ code review feedback. #

Total comments: 4

Patch Set 9 : Code review feedback. #

Patch Set 10 : Code review feedback. #

Total comments: 2

Patch Set 11 : Rebasing. #

Total comments: 4

Patch Set 12 : Code review feedback. #

Total comments: 2

Patch Set 13 : Code review feedback. #

Patch Set 14 : Fix failing tests. #

Patch Set 15 : Merge fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+886 lines, -21 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/extensions/ad_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +18 lines, -9 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +22 lines, -0 lines 0 comments Download
A chrome/renderer/resources/extensions/ad_view.js View 1 2 3 4 5 6 7 8 9 1 chunk +307 lines, -0 lines 0 comments Download
A + chrome/renderer/resources/extensions/ad_view_custom.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/renderer/resources/extensions/ad_view_deny.js View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/platform_app.css View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network/ads/image315.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network/ads/image316.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network/ads/image317.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network/ads/image318.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network/ads/image319.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network/testsdk.html View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network/testsdk.js View 1 2 3 4 5 6 7 1 chunk +134 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network_loaded/chrometest.js View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network_loaded/displayad.js View 1 2 3 4 5 6 7 1 chunk +100 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network_loaded/index.html View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/ad_network_loaded/main.js View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/ad_view/ad_network_loaded/manifest.json View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/display_first_ad/chrometest.js View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/display_first_ad/index.html View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/display_first_ad/main.js View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/ad_view/display_first_ad/manifest.json View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/load_event/chrometest.js View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/load_event/index.html View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/ad_view/load_event/main.js View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/ad_view/load_event/manifest.json View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
rpaquay
Fady, Antony, This is the "real" inital stab at implementing <adview>. * The meat of ...
7 years, 9 months ago (2013-03-08 18:09:42 UTC) #1
asargent_no_longer_on_chrome
I haven't finished looking at all the test/data files yet, but here are a few ...
7 years, 9 months ago (2013-03-09 00:51:05 UTC) #2
asargent_no_longer_on_chrome
https://codereview.chromium.org/12463015/diff/16038/chrome/test/data/extensions/platform_apps/ad_view/ad_network/test_sdk.js File chrome/test/data/extensions/platform_apps/ad_view/ad_network/test_sdk.js (right): https://codereview.chromium.org/12463015/diff/16038/chrome/test/data/extensions/platform_apps/ad_view/ad_network/test_sdk.js#newcode20 chrome/test/data/extensions/platform_apps/ad_view/ad_network/test_sdk.js:20: return location.href.substr(0, prefix_index) + "/" + ad_path; FYI, we ...
7 years, 9 months ago (2013-03-11 19:10:13 UTC) #3
rpaquay
Address asargent@ code review feedback. fsamuel@, please review the following files: chrome/browser/chrome_content_browser_client.cc chrome/chrome_tests.gypi chrome/renderer/chrome_content_renderer_client.cc chrome/renderer/extensions/dispatcher.cc ...
7 years, 9 months ago (2013-03-12 19:56:48 UTC) #4
asargent_no_longer_on_chrome
LGTM https://codereview.chromium.org/12463015/diff/16038/chrome/common/extensions/permissions/api_permission.cc File chrome/common/extensions/permissions/api_permission.cc (right): https://codereview.chromium.org/12463015/diff/16038/chrome/common/extensions/permissions/api_permission.cc#newcode198 chrome/common/extensions/permissions/api_permission.cc:198: { APIPermission::kAdView, "adview", kFlagCannotBeOptional }, Note that the ...
7 years, 9 months ago (2013-03-12 20:54:27 UTC) #5
rpaquay
Addressing asargent@ feedback. https://codereview.chromium.org/12463015/diff/16038/chrome/common/extensions/permissions/api_permission.cc File chrome/common/extensions/permissions/api_permission.cc (right): https://codereview.chromium.org/12463015/diff/16038/chrome/common/extensions/permissions/api_permission.cc#newcode198 chrome/common/extensions/permissions/api_permission.cc:198: { APIPermission::kAdView, "adview", kFlagCannotBeOptional }, On ...
7 years, 9 months ago (2013-03-12 23:05:36 UTC) #6
Fady Samuel
Sorry for the delay. LGTM once my two comments are addressed. https://codereview.chromium.org/12463015/diff/58001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): ...
7 years, 9 months ago (2013-03-18 18:48:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/12463015/69001
7 years, 9 months ago (2013-03-19 18:13:40 UTC) #8
commit-bot: I haz the power
Presubmit check for 12463015-69001 failed and returned exit status 1. INFO:root:Found 37 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-19 18:13:57 UTC) #9
rpaquay
Darin, can you look at the following files for OWNERS approval? chrome/renderer/chrome_content_renderer_client.cc chrome/renderer/resources/renderer_resources.grd
7 years, 9 months ago (2013-03-19 18:21:21 UTC) #10
darin (slow to review)
"Initial checking enabling <adview> tag for packaged apps." ^^^ typo: checking -> check-in
7 years, 9 months ago (2013-03-19 20:12:31 UTC) #11
rpaquay
On 2013/03/19 20:12:31, darin wrote: > "Initial checking enabling <adview> tag for packaged apps." > ...
7 years, 9 months ago (2013-03-19 20:19:02 UTC) #12
darin (slow to review)
https://codereview.chromium.org/12463015/diff/69001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/12463015/diff/69001/chrome/renderer/chrome_content_renderer_client.cc#newcode405 chrome/renderer/chrome_content_renderer_client.cc:405: if (extension && extension->HasAPIPermission( nit: only need to null ...
7 years, 9 months ago (2013-03-19 20:20:03 UTC) #13
rpaquay
Addressing code review feedback from darin. https://codereview.chromium.org/12463015/diff/69001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/12463015/diff/69001/chrome/renderer/chrome_content_renderer_client.cc#newcode405 chrome/renderer/chrome_content_renderer_client.cc:405: if (extension && ...
7 years, 9 months ago (2013-03-19 20:45:29 UTC) #14
darin (slow to review)
LGTM https://codereview.chromium.org/12463015/diff/56003/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/12463015/diff/56003/chrome/renderer/chrome_content_renderer_client.cc#newcode1141 chrome/renderer/chrome_content_renderer_client.cc:1141: return tagName.equals(WebString::fromUTF8(kWebViewTagName)) || nit: use google C++ style ...
7 years, 9 months ago (2013-03-20 04:59:30 UTC) #15
rpaquay
https://codereview.chromium.org/12463015/diff/56003/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/12463015/diff/56003/chrome/renderer/chrome_content_renderer_client.cc#newcode1141 chrome/renderer/chrome_content_renderer_client.cc:1141: return tagName.equals(WebString::fromUTF8(kWebViewTagName)) || On 2013/03/20 04:59:30, darin wrote: > ...
7 years, 9 months ago (2013-03-20 16:24:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/12463015/83001
7 years, 9 months ago (2013-03-20 16:25:52 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=109385
7 years, 9 months ago (2013-03-20 17:22:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/12463015/112001
7 years, 9 months ago (2013-03-20 21:10:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/12463015/89003
7 years, 9 months ago (2013-03-21 16:25:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/12463015/89003
7 years, 9 months ago (2013-03-22 18:15:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/12463015/89003
7 years, 9 months ago (2013-03-23 14:51:29 UTC) #22
commit-bot: I haz the power
7 years, 9 months ago (2013-03-23 17:37:56 UTC) #23
Message was sent while issue was closed.
Change committed as 190043

Powered by Google App Engine
This is Rietveld 408576698