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

Issue 354483004: Implement <appview> (Closed)

Created:
6 years, 6 months ago by Fady Samuel
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Ken Rockot(use gerrit already)
Base URL:
https://chromium.googlesource.com/chromium/src.git@app_view_skeleton
Project:
chromium
Visibility:
Public.

Description

Implement <appview> This is the first working CL of <appview>. This CL implements the basic permission API with the onAppEmbeddingRequest event. BUG=364141 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282664

Patch Set 1 #

Patch Set 2 : Updated #

Patch Set 3 : Context menu is good #

Patch Set 4 : More appview tweakage #

Patch Set 5 : Added tests #

Total comments: 24

Patch Set 6 : Addressed comments #

Total comments: 14

Patch Set 7 : Addressed Istiaque's comments #

Total comments: 9

Patch Set 8 : Addressed Ben Kalman's comments #

Total comments: 9

Patch Set 9 : Addressed Kalman's comments #

Patch Set 10 : Updated histograms.xml #

Patch Set 11 : Updated using update_extension_functions.py #

Patch Set 12 : Trying again #

Patch Set 13 : Fixed app_shell_browsertests build #

Total comments: 2

Patch Set 14 : Addressed jamescook's cooment #

Total comments: 30

Patch Set 15 : Addressed James Cook's comments #

Patch Set 16 : Hopefully fixed Windows build #

Patch Set 17 : Fixed formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+972 lines, -68 lines) Patch
A chrome/browser/apps/app_view_browsertest.cc View 1 2 3 4 1 chunk +150 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/chrome_extensions_api_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/chrome_extensions_api_client.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
M chrome/browser/extensions/api/guest_view/guest_view_internal_api.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
A chrome/browser/guest_view/app_view/app_view_constants.h View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/guest_view/app_view/app_view_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/guest_view/app_view/app_view_guest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +54 lines, -1 line 0 comments Download
M chrome/browser/guest_view/app_view/app_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +208 lines, -6 lines 0 comments Download
M chrome/browser/guest_view/guest_view_base.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/guest_view/guest_view_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +32 lines, -21 lines 0 comments Download
M chrome/browser/guest_view/guest_view_manager.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/guest_view/guest_view_manager.cc View 1 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/guest_view_internal.json View 1 chunk +1 line, -6 lines 0 comments Download
M chrome/renderer/resources/extensions/app_view.js View 1 2 3 4 5 6 2 chunks +30 lines, -5 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/app_view/shim/main.html View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/app_view/shim/main.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +106 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/app_view/shim/manifest.json View 1 2 3 4 1 chunk +2 lines, -5 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/app_view/shim/skeleton/main.html View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/app_view/shim/skeleton/main.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/app_view/shim/skeleton/manifest.json View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/app_view/shim/test.js View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/test.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 1 chunk +14 lines, -3 lines 0 comments Download
M extensions/browser/api/app_runtime/app_runtime_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +12 lines, -0 lines 0 comments Download
M extensions/browser/api/app_runtime/app_runtime_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +28 lines, -0 lines 0 comments Download
A extensions/browser/api/app_view/app_view_internal_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +42 lines, -0 lines 0 comments Download
A extensions/browser/api/app_view/app_view_internal_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +53 lines, -0 lines 0 comments Download
M extensions/browser/api/extensions_api_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +17 lines, -0 lines 0 comments Download
M extensions/browser/api/extensions_api_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +15 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/api/api.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/app_runtime.idl View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
A extensions/common/api/app_view_internal.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +56 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/resources/app_runtime_custom_bindings.js View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 42 (0 generated)
Fady Samuel
Please take a look.
6 years, 5 months ago (2014-07-02 22:46:18 UTC) #1
lazyboy
Still need to review app_view_guest.cc and app_runtime*. Will do that in next pass, sending some ...
6 years, 5 months ago (2014-07-07 21:34:45 UTC) #2
Fady Samuel
PTAL https://codereview.chromium.org/354483004/diff/80001/chrome/browser/apps/web_view_browsertest.cc File chrome/browser/apps/web_view_browsertest.cc (left): https://codereview.chromium.org/354483004/diff/80001/chrome/browser/apps/web_view_browsertest.cc#oldcode680 chrome/browser/apps/web_view_browsertest.cc:680: On 2014/07/07 21:34:44, lazyboy wrote: > Revert this ...
6 years, 5 months ago (2014-07-08 15:47:09 UTC) #3
lazyboy
https://chromiumcodereview.appspot.com/354483004/diff/100001/chrome/browser/extensions/api/app_view/app_view_internal_api.cc File chrome/browser/extensions/api/app_view/app_view_internal_api.cc (right): https://chromiumcodereview.appspot.com/354483004/diff/100001/chrome/browser/extensions/api/app_view/app_view_internal_api.cc#newcode45 chrome/browser/extensions/api/app_view/app_view_internal_api.cc:45: if (!AppViewGuest::CompletePendingRequest(GURL(), Can we also add a note that: ...
6 years, 5 months ago (2014-07-08 18:24:34 UTC) #4
Fady Samuel
https://codereview.chromium.org/354483004/diff/100001/chrome/browser/extensions/api/app_view/app_view_internal_api.cc File chrome/browser/extensions/api/app_view/app_view_internal_api.cc (right): https://codereview.chromium.org/354483004/diff/100001/chrome/browser/extensions/api/app_view/app_view_internal_api.cc#newcode45 chrome/browser/extensions/api/app_view/app_view_internal_api.cc:45: if (!AppViewGuest::CompletePendingRequest(GURL(), On 2014/07/08 18:24:33, lazyboy wrote: > Can ...
6 years, 5 months ago (2014-07-08 20:23:46 UTC) #5
Fady Samuel
+kalman@ for extensions changes.
6 years, 5 months ago (2014-07-08 20:27:16 UTC) #6
not at google - send to devlin
https://codereview.chromium.org/354483004/diff/120001/chrome/common/extensions/api/app_view_internal.json File chrome/common/extensions/api/app_view_internal.json (right): https://codereview.chromium.org/354483004/diff/120001/chrome/common/extensions/api/app_view_internal.json#newcode21 chrome/common/extensions/api/app_view_internal.json:21: "nodoc": true you don't need "nodoc" anywhere, since it's ...
6 years, 5 months ago (2014-07-08 20:54:14 UTC) #7
Fady Samuel
PTAL https://codereview.chromium.org/354483004/diff/120001/extensions/common/api/app_runtime.idl File extensions/common/api/app_runtime.idl (right): https://codereview.chromium.org/354483004/diff/120001/extensions/common/api/app_runtime.idl#newcode45 extensions/common/api/app_runtime.idl:45: [inline_doc] dictionary AppEmbeddingRequest { On 2014/07/08 20:54:14, kalman ...
6 years, 5 months ago (2014-07-08 21:53:11 UTC) #8
lazyboy
lgtm
6 years, 5 months ago (2014-07-08 21:54:28 UTC) #9
not at google - send to devlin
sorry, more comments. I don't like doing that :( https://codereview.chromium.org/354483004/diff/120001/extensions/common/api/app_runtime.idl File extensions/common/api/app_runtime.idl (right): https://codereview.chromium.org/354483004/diff/120001/extensions/common/api/app_runtime.idl#newcode57 extensions/common/api/app_runtime.idl:57: ...
6 years, 5 months ago (2014-07-08 22:10:47 UTC) #10
Fady Samuel
PTAL Ben. https://codereview.chromium.org/354483004/diff/120001/extensions/common/api/app_runtime.idl File extensions/common/api/app_runtime.idl (right): https://codereview.chromium.org/354483004/diff/120001/extensions/common/api/app_runtime.idl#newcode57 extensions/common/api/app_runtime.idl:57: static void onAppEmbeddingRequest(AppEmbeddingRequest request); On 2014/07/08 22:10:46, ...
6 years, 5 months ago (2014-07-09 15:15:49 UTC) #11
Fady Samuel
+isherman@ for extension_function_histogram_value
6 years, 5 months ago (2014-07-09 15:17:44 UTC) #12
not at google - send to devlin
lgtm https://codereview.chromium.org/354483004/diff/140001/extensions/common/api/app_runtime.idl File extensions/common/api/app_runtime.idl (right): https://codereview.chromium.org/354483004/diff/140001/extensions/common/api/app_runtime.idl#newcode53 extensions/common/api/app_runtime.idl:53: // has specified a |url| within the app ...
6 years, 5 months ago (2014-07-09 15:18:11 UTC) #13
Ilya Sherman
Please run the script to update histograms.xml
6 years, 5 months ago (2014-07-09 19:31:44 UTC) #14
Fady Samuel
PTAL Ilya. I'm unable to run update_extension_functions.py. It terminates with an error. I have updated ...
6 years, 5 months ago (2014-07-09 20:43:47 UTC) #15
Fady Samuel
PTAL IIlya. I finally got the script to work.
6 years, 5 months ago (2014-07-09 21:00:05 UTC) #16
Ilya Sherman
histograms LGTM, thanks.
6 years, 5 months ago (2014-07-09 21:01:15 UTC) #17
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 5 months ago (2014-07-09 21:01:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/354483004/200001
6 years, 5 months ago (2014-07-09 21:03:14 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-09 21:35:33 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-09 21:37:20 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/26706)
6 years, 5 months ago (2014-07-09 21:37:21 UTC) #22
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 5 months ago (2014-07-10 00:38:11 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/354483004/200002
6 years, 5 months ago (2014-07-10 00:41:21 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 03:56:19 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 04:14:39 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win8_chromium_rel/builds/2575)
6 years, 5 months ago (2014-07-10 04:14:41 UTC) #27
Fady Samuel
PTAL Ben. I've moved over the AppViewInternal API to the extensions component. I'm using ExtensionBrowserClient ...
6 years, 5 months ago (2014-07-10 19:03:06 UTC) #28
Fady Samuel
For the extension component changes.
6 years, 5 months ago (2014-07-10 19:32:06 UTC) #29
not at google - send to devlin
https://codereview.chromium.org/354483004/diff/230001/extensions/browser/extensions_browser_client.h File extensions/browser/extensions_browser_client.h (right): https://codereview.chromium.org/354483004/diff/230001/extensions/browser/extensions_browser_client.h#newcode186 extensions/browser/extensions_browser_client.h:186: virtual bool CompletePendingEmbedRequest( kinda weird that there is a ...
6 years, 5 months ago (2014-07-10 19:44:17 UTC) #30
James Cook
+rockot, not to add to the reviewers list, just FYI for a question. https://codereview.chromium.org/354483004/diff/230001/extensions/browser/extensions_browser_client.h File ...
6 years, 5 months ago (2014-07-10 19:58:07 UTC) #31
Fady Samuel
On 2014/07/10 19:58:07, James Cook wrote: > +rockot, not to add to the reviewers list, ...
6 years, 5 months ago (2014-07-10 20:01:08 UTC) #32
Fady Samuel
PTAL James. I've moved it over to ExtensionAPIClient.
6 years, 5 months ago (2014-07-10 20:24:15 UTC) #33
James Cook
Looking good, and ExtensionsApiClient feels right, but I have a few nits. https://codereview.chromium.org/354483004/diff/250001/chrome/browser/extensions/api/chrome_extensions_api_client.cc File chrome/browser/extensions/api/chrome_extensions_api_client.cc ...
6 years, 5 months ago (2014-07-11 03:16:01 UTC) #34
Fady Samuel
PTAL James. I've addressed your comments. I'm going to stick this in the CQ but ...
6 years, 5 months ago (2014-07-11 15:28:56 UTC) #35
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 5 months ago (2014-07-11 15:29:01 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/354483004/270001
6 years, 5 months ago (2014-07-11 15:29:33 UTC) #37
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 5 months ago (2014-07-11 15:46:00 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/354483004/290001
6 years, 5 months ago (2014-07-11 15:46:34 UTC) #39
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 5 months ago (2014-07-11 16:19:12 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/354483004/310001
6 years, 5 months ago (2014-07-11 16:19:41 UTC) #41
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 19:27:29 UTC) #42
Message was sent while issue was closed.
Change committed as 282664

Powered by Google App Engine
This is Rietveld 408576698