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

Issue 23847004: "Redirecting URLs to Packaged Apps" implementation: revised (Closed)

Created:
7 years, 3 months ago by sergeygs
Modified:
7 years, 3 months ago
CC:
chromium-reviews, tfarina, scheib+watch_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, miket_OOO
Visibility:
Public.

Description

"Redirecting URLs to Packaged Apps" implementation: revised Design proposal: https://docs.google.com/document/d/1r-RoOv2URfZBYrT_B6notQ6MeMqZRd1EP1AITuzJCAc/edit?usp=sharing * Support for url_handlers in manifest * New kind of onLaunched event with navigation info in launch data * Intercept/redirect top-level browser-initiated navigations (bookmarks, omnibox, etc.) * Intercept/redirect top-frame navigations in tabs and app windows. This is a rework of https://codereview.chromium.org/22944002/. BUG=111422 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222235

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Protection from offline-disabled apps in offline #

Patch Set 3 : Addressed simpler comments #

Patch Set 4 : Addressed the comment in app_window_contents.cc #

Total comments: 10

Patch Set 5 : Addressed comments from review and offline discussions (kalman, benwells) #

Patch Set 6 : Fixed an editing error #

Total comments: 41

Patch Set 7 : #

Patch Set 8 : Additional minor comments #

Total comments: 10

Patch Set 9 : Disabled interception on Android and iOS #

Patch Set 10 : Fixed editing error #

Patch Set 11 : Prevent interception for POSTs sooner; prevent when prerendering. #

Total comments: 7

Patch Set 12 : Addressed comments (darin@) #

Patch Set 13 : Comments + prevent throttle creation in incognito #

Patch Set 14 : Moved URL handler finding from UI to IO thread: avoid unnecessary throttle creation #

Total comments: 9

Patch Set 15 : Addressed code review comments #

Patch Set 16 : Necessary changes in test utils + removed 'experimental' in missed spot #

Total comments: 1

Patch Set 17 : Added browser tests #

Patch Set 18 : Limit interception to http:// and https:// #

Total comments: 27

Patch Set 19 : Addressed comments (tests) #

Patch Set 20 : Rebase #

Total comments: 12

Patch Set 21 : Added more tests #

Patch Set 22 : Small improvement in a test #

Patch Set 23 : Addressed comments (benwells@) #

Patch Set 24 : Doc fixes #

Patch Set 25 : Rebasing #

Total comments: 16

Patch Set 26 : Addressed comments (kalman@) #

Patch Set 27 : Added one more test #

Patch Set 28 : Added 1 more test + addressed comments #

Total comments: 2

Patch Set 29 : Added a few TODOs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1308 lines, -51 lines) Patch
M apps/launcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +17 lines, -4 lines 0 comments Download
M apps/launcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/apps/app_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/apps/app_browsertest_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/apps/app_browsertest_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 19 20 21 22 23 24 25 26 27 1 chunk +10 lines, -3 lines 0 comments Download
A chrome/browser/apps/app_url_redirector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/apps/app_url_redirector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 26 27 28 1 chunk +98 lines, -0 lines 0 comments Download
A chrome/browser/apps/app_url_redirector_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +458 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_runtime/app_runtime_api.h View 2 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/app_runtime/app_runtime_api.cc View 2 chunks +18 lines, -0 lines 0 comments Download
chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +15 lines, -5 lines 0 comments Download
chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -0 lines 0 comments Download
chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 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 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/app_runtime.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +16 lines, -2 lines 0 comments Download
A chrome/common/extensions/api/url_handlers/url_handlers_parser.h View 1 2 3 4 5 6 7 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/url_handlers/url_handlers_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +170 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/app_runtime_custom_bindings.js View 1 2 3 4 5 6 7 2 chunks +12 lines, -5 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/common/mismatching_target.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +16 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/common/target.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/handlers/navigate_webview_to_url/main.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/handlers/navigate_webview_to_url/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/handlers/navigate_webview_to_url/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 26 27 28 1 chunk +30 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/handlers/simple/main.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/handlers/simple/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/handlers/simple/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +36 lines, -0 lines 0 comments Download
chrome/test/data/extensions/platform_apps/url_handlers/handlers/steal_xhr_target/main.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/handlers/steal_xhr_target/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/handlers/steal_xhr_target/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +8 lines, -0 lines 0 comments Download
chrome/test/data/extensions/platform_apps/url_handlers/launchers/call_mismatching_window_open/main.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/launchers/call_mismatching_window_open/main.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +15 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launchers/call_mismatching_window_open/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launchers/call_mismatching_window_open/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 chunks +-1 lines, --1 lines 0 comments Download
chrome/test/data/extensions/platform_apps/url_handlers/launchers/call_window_open/main.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/launchers/call_window_open/main.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +15 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launchers/call_window_open/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launchers/call_window_open/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launchers/click_blank_link/main.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/launchers/click_blank_link/main.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +22 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launchers/click_blank_link/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launchers/click_blank_link/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/launchers/click_mismatching_blank_link/main.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/launchers/click_mismatching_blank_link/main.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +22 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launchers/click_mismatching_blank_link/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launchers/click_mismatching_blank_link/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launching_pages/call_window_open.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -1 line 0 comments Download
chrome/test/data/extensions/platform_apps/url_handlers/launching_pages/click_blank_link.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -2 lines 0 comments Download
chrome/test/data/extensions/platform_apps/url_handlers/launching_pages/click_link.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/launching_pages/click_mismatching_link.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +3 lines, -6 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/launching_pages/navigate.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/url_handlers/xhr_downloader/download.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +21 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/xhr_downloader/main.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/url_handlers/xhr_downloader/target.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/manifest_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -0 lines 0 comments Download
extensions/common/manifest_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (0 generated)
benwells
You need to publish your CL (like this) for reviewers to see it.
7 years, 3 months ago (2013-09-03 00:39:14 UTC) #1
benwells
https://codereview.chromium.org/23847004/diff/5001/apps/app_window_contents.cc File apps/app_window_contents.cc (right): https://codereview.chromium.org/23847004/diff/5001/apps/app_window_contents.cc#newcode172 apps/app_window_contents.cc:172: UrlRedirector::MaybeLaunchAppWithUrl( Can you just create a UrlRedirector tab helper ...
7 years, 3 months ago (2013-09-03 01:10:56 UTC) #2
benwells
Also, have you tested if links sent to chrome on the command line get redirected ...
7 years, 3 months ago (2013-09-03 01:13:30 UTC) #3
sergeygs
On 2013/09/03 00:39:14, benwells wrote: > You need to publish your CL (like this) for ...
7 years, 3 months ago (2013-09-03 01:15:21 UTC) #4
darin (slow to review)
Will there be some tests added to this CL?
7 years, 3 months ago (2013-09-03 04:13:10 UTC) #5
sergeygs1
Definitely, after all the new classes and methods have been LGTMed. On Mon, Sep 2, ...
7 years, 3 months ago (2013-09-03 04:48:59 UTC) #6
sergeygs
On 2013/09/03 04:48:59, sergeygs1 wrote: > Definitely, after all the new classes and methods have ...
7 years, 3 months ago (2013-09-03 04:57:30 UTC) #7
sergeygs
https://codereview.chromium.org/23847004/diff/5001/apps/app_window_contents.cc File apps/app_window_contents.cc (right): https://codereview.chromium.org/23847004/diff/5001/apps/app_window_contents.cc#newcode172 apps/app_window_contents.cc:172: UrlRedirector::MaybeLaunchAppWithUrl( On 2013/09/03 01:10:56, benwells wrote: > Can you ...
7 years, 3 months ago (2013-09-03 06:15:24 UTC) #8
sergeygs
On 2013/09/03 01:13:30, benwells wrote: > Also, have you tested if links sent to chrome ...
7 years, 3 months ago (2013-09-03 06:20:30 UTC) #9
benwells
On 2013/09/03 06:20:30, sergeygs wrote: > On 2013/09/03 01:13:30, benwells wrote: > > Also, have ...
7 years, 3 months ago (2013-09-03 12:07:21 UTC) #10
benwells
On 2013/09/03 12:07:21, benwells wrote: > On 2013/09/03 06:20:30, sergeygs wrote: > > On 2013/09/03 ...
7 years, 3 months ago (2013-09-03 13:05:26 UTC) #11
jam
https://codereview.chromium.org/23847004/diff/24001/apps/url_redirector.cc File apps/url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/24001/apps/url_redirector.cc#newcode15 apps/url_redirector.cc:15: #include "chrome/common/extensions/extension_set.h" I'll defer to the apps folks, but ...
7 years, 3 months ago (2013-09-03 15:25:16 UTC) #12
not at google - send to devlin
Please at least unit test the classes you've added that are easily unit-testable. This diff ...
7 years, 3 months ago (2013-09-03 15:30:43 UTC) #13
not at google - send to devlin
bah not lgtm.
7 years, 3 months ago (2013-09-03 15:30:52 UTC) #14
not at google - send to devlin
and I believe that benwells did not lgtm this either...
7 years, 3 months ago (2013-09-03 15:31:24 UTC) #15
sergeygs
On 2013/09/03 15:30:43, kalman wrote: > Please at least unit test the classes you've added ...
7 years, 3 months ago (2013-09-03 16:12:11 UTC) #16
sergeygs
https://codereview.chromium.org/23847004/diff/24001/apps/url_redirector.cc File apps/url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/24001/apps/url_redirector.cc#newcode15 apps/url_redirector.cc:15: #include "chrome/common/extensions/extension_set.h" On 2013/09/03 15:25:16, jam wrote: > I'll ...
7 years, 3 months ago (2013-09-03 16:43:04 UTC) #17
not at google - send to devlin
https://codereview.chromium.org/23847004/diff/24001/apps/url_redirector.cc File apps/url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/24001/apps/url_redirector.cc#newcode15 apps/url_redirector.cc:15: #include "chrome/common/extensions/extension_set.h" On 2013/09/03 16:43:04, sergeygs wrote: > On ...
7 years, 3 months ago (2013-09-03 17:39:51 UTC) #18
not at google - send to devlin
https://codereview.chromium.org/23847004/diff/24001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/23847004/diff/24001/chrome/renderer/chrome_content_renderer_client.cc#newcode944 chrome/renderer/chrome_content_renderer_client.cc:944: extensions::switches::kEnableExperimentalExtensionApis)) this seems unnecessary. Firstly you're gating this on ...
7 years, 3 months ago (2013-09-03 18:28:04 UTC) #19
jschuh
lgtm on ipc and parsing. you said @creis already signed off on navigation logic.
7 years, 3 months ago (2013-09-04 00:25:43 UTC) #20
benwells
On 2013/09/03 18:28:04, kalman wrote: > https://codereview.chromium.org/23847004/diff/24001/chrome/renderer/chrome_content_renderer_client.cc > File chrome/renderer/chrome_content_renderer_client.cc (right): > > https://codereview.chromium.org/23847004/diff/24001/chrome/renderer/chrome_content_renderer_client.cc#newcode944 > ...
7 years, 3 months ago (2013-09-04 00:26:34 UTC) #21
sergeygs
https://codereview.chromium.org/23847004/diff/24001/apps/url_redirector.cc File apps/url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/24001/apps/url_redirector.cc#newcode15 apps/url_redirector.cc:15: #include "chrome/common/extensions/extension_set.h" On 2013/09/03 17:39:52, kalman wrote: > On ...
7 years, 3 months ago (2013-09-04 03:29:16 UTC) #22
not at google - send to devlin
https://codereview.chromium.org/23847004/diff/42001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/42001/chrome/browser/apps/app_url_redirector.cc#newcode32 chrome/browser/apps/app_url_redirector.cc:32: // static See comment at caller in the other ...
7 years, 3 months ago (2013-09-04 15:37:20 UTC) #23
benwells
For the stuff I'm looking at, this is getting very close. However you still need ...
7 years, 3 months ago (2013-09-04 23:54:20 UTC) #24
not at google - send to devlin
https://codereview.chromium.org/23847004/diff/42001/chrome/browser/ui/apps/chrome_shell_window_delegate.cc File chrome/browser/ui/apps/chrome_shell_window_delegate.cc (right): https://codereview.chromium.org/23847004/diff/42001/chrome/browser/ui/apps/chrome_shell_window_delegate.cc#newcode72 chrome/browser/ui/apps/chrome_shell_window_delegate.cc:72: if (!profile->IsOffTheRecord()) On 2013/09/04 23:54:20, benwells wrote: > On ...
7 years, 3 months ago (2013-09-05 00:01:52 UTC) #25
sergeygs
After talking with Darin (thanks!), I've reworked the whole interception mechanism to use components/ResourceThrottle concept ...
7 years, 3 months ago (2013-09-05 09:19:03 UTC) #26
not at google - send to devlin
That looks much nicer, thanks. Looking forward to the tests. https://codereview.chromium.org/23847004/diff/56001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/56001/chrome/browser/apps/app_url_redirector.cc#newcode34 ...
7 years, 3 months ago (2013-09-05 15:14:21 UTC) #27
darin (slow to review)
https://codereview.chromium.org/23847004/diff/56001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/56001/chrome/browser/apps/app_url_redirector.cc#newcode41 chrome/browser/apps/app_url_redirector.cc:41: if (params.is_post()) You could probably filter this earlier too, ...
7 years, 3 months ago (2013-09-05 22:52:14 UTC) #28
sergeygs
https://codereview.chromium.org/23847004/diff/56001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/56001/chrome/browser/apps/app_url_redirector.cc#newcode34 chrome/browser/apps/app_url_redirector.cc:34: DCHECK(source); On 2013/09/05 15:14:22, kalman wrote: > DCHECK(source) isn't ...
7 years, 3 months ago (2013-09-05 23:46:57 UTC) #29
darin (slow to review)
https://codereview.chromium.org/23847004/diff/80001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/80001/chrome/browser/apps/app_url_redirector.cc#newcode41 chrome/browser/apps/app_url_redirector.cc:41: if (params.is_post()) I would just use DCHECKs for anything ...
7 years, 3 months ago (2013-09-05 23:54:25 UTC) #30
not at google - send to devlin
https://codereview.chromium.org/23847004/diff/80001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/23847004/diff/80001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode274 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:274: throttles->push_back(AppUrlRedirector::CreateThrottleFor(request)); come to think of it, you should only ...
7 years, 3 months ago (2013-09-06 00:51:29 UTC) #31
sergeygs
https://codereview.chromium.org/23847004/diff/80001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/80001/chrome/browser/apps/app_url_redirector.cc#newcode41 chrome/browser/apps/app_url_redirector.cc:41: if (params.is_post()) On 2013/09/05 23:54:25, darin wrote: > I ...
7 years, 3 months ago (2013-09-06 02:51:13 UTC) #32
not at google - send to devlin
https://codereview.chromium.org/23847004/diff/80001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/23847004/diff/80001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode274 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:274: throttles->push_back(AppUrlRedirector::CreateThrottleFor(request)); On 2013/09/06 02:51:14, sergeygs wrote: > On 2013/09/06 ...
7 years, 3 months ago (2013-09-06 03:02:10 UTC) #33
sergeygs
On 2013/09/06 03:02:10, kalman wrote: > https://codereview.chromium.org/23847004/diff/80001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc > File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc > (right): > > https://codereview.chromium.org/23847004/diff/80001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode274 ...
7 years, 3 months ago (2013-09-06 03:44:52 UTC) #34
not at google - send to devlin
sweet. 1 little comment. https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc#newcode32 chrome/browser/apps/app_url_redirector.cc:32: const extensions::Extension* app, pass a ...
7 years, 3 months ago (2013-09-06 03:53:59 UTC) #35
darin (slow to review)
https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc#newcode81 chrome/browser/apps/app_url_redirector.cc:81: if (render_view_host->IsSubframe()) it is not valid to call RenderViewHost ...
7 years, 3 months ago (2013-09-06 04:18:47 UTC) #36
darin (slow to review)
On 2013/09/06 04:18:47, darin wrote: > https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc > File chrome/browser/apps/app_url_redirector.cc (right): > > https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc#newcode81 > ...
7 years, 3 months ago (2013-09-06 04:19:05 UTC) #37
sergeygs
https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc#newcode32 chrome/browser/apps/app_url_redirector.cc:32: const extensions::Extension* app, On 2013/09/06 03:53:59, kalman wrote: > ...
7 years, 3 months ago (2013-09-06 05:46:45 UTC) #38
not at google - send to devlin
https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc#newcode41 chrome/browser/apps/app_url_redirector.cc:41: DCHECK(extensions::UrlHandlers::CanExtensionHandleUrl(app, params.url())); On 2013/09/06 05:46:46, sergeygs wrote: > On ...
7 years, 3 months ago (2013-09-06 14:11:32 UTC) #39
sergeygs
On 2013/09/06 14:11:32, kalman wrote: > https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc > File chrome/browser/apps/app_url_redirector.cc (right): > > https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc#newcode41 > ...
7 years, 3 months ago (2013-09-06 17:24:50 UTC) #40
not at google - send to devlin
On 2013/09/06 17:24:50, sergeygs wrote: > On 2013/09/06 14:11:32, kalman wrote: > > > https://codereview.chromium.org/23847004/diff/15001/chrome/browser/apps/app_url_redirector.cc ...
7 years, 3 months ago (2013-09-06 17:26:00 UTC) #41
sergeygs
On 2013/09/06 17:26:00, kalman wrote: > On 2013/09/06 17:24:50, sergeygs wrote: > > On 2013/09/06 ...
7 years, 3 months ago (2013-09-06 18:14:48 UTC) #42
darin (slow to review)
LGTM (I don't have a strong opinion on the DCHECK debate)
7 years, 3 months ago (2013-09-06 19:10:17 UTC) #43
not at google - send to devlin
https://codereview.chromium.org/23847004/diff/113001/chrome/browser/apps/app_browsertest_util.h File chrome/browser/apps/app_browsertest_util.h (right): https://codereview.chromium.org/23847004/diff/113001/chrome/browser/apps/app_browsertest_util.h#newcode33 chrome/browser/apps/app_browsertest_util.h:33: const Extension* InstallPlatformApp(const char* name); noticed this change. did ...
7 years, 3 months ago (2013-09-06 19:12:30 UTC) #44
sergeygs1
Adding several new tests as we speak. On Fri, Sep 6, 2013 at 12:12 PM, ...
7 years, 3 months ago (2013-09-06 20:57:37 UTC) #45
sergeygs
7 years, 3 months ago (2013-09-06 23:57:44 UTC) #46
sergeygs
On 2013/09/06 23:57:44, sergeygs wrote: Added browser tests for: - interception of a regular link ...
7 years, 3 months ago (2013-09-07 00:15:09 UTC) #47
not at google - send to devlin
had a look at the tests. I understand that you need to get this landed ...
7 years, 3 months ago (2013-09-07 00:54:55 UTC) #48
darin (slow to review)
On 2013/09/06 19:10:17, darin wrote: > LGTM (I don't have a strong opinion on the ...
7 years, 3 months ago (2013-09-07 06:15:19 UTC) #49
benwells
This is looking really good, the bits I am interested in seem really close. I ...
7 years, 3 months ago (2013-09-09 05:48:38 UTC) #50
sergeygs
Added a lot of new tests including: - navigate by clicking a mismatching link - ...
7 years, 3 months ago (2013-09-09 09:55:35 UTC) #51
not at google - send to devlin
Commenting on your comments. Looking at the new version of the CL after this. https://codereview.chromium.org/23847004/diff/120001/chrome/browser/apps/app_browsertest.cc ...
7 years, 3 months ago (2013-09-09 19:01:11 UTC) #52
not at google - send to devlin
rushing off to lunch, made 1 more comment, will continue after then. https://codereview.chromium.org/23847004/diff/166001/chrome/browser/apps/app_url_redirector_browsertest.cc File chrome/browser/apps/app_url_redirector_browsertest.cc ...
7 years, 3 months ago (2013-09-09 19:27:20 UTC) #53
sergeygs
https://codereview.chromium.org/23847004/diff/120001/chrome/browser/apps/app_url_redirector.cc File chrome/browser/apps/app_url_redirector.cc (right): https://codereview.chromium.org/23847004/diff/120001/chrome/browser/apps/app_url_redirector.cc#newcode93 chrome/browser/apps/app_url_redirector.cc:93: scoped_refptr<const Extension>(*iter), On 2013/09/09 19:01:13, kalman wrote: > On ...
7 years, 3 months ago (2013-09-09 20:33:02 UTC) #54
not at google - send to devlin
A day of sporadic interruptions, sorry; have a meeting now, so a few more comments ...
7 years, 3 months ago (2013-09-09 21:01:04 UTC) #55
sergeygs
https://codereview.chromium.org/23847004/diff/166001/chrome/browser/apps/app_browsertest_util.cc File chrome/browser/apps/app_browsertest_util.cc (right): https://codereview.chromium.org/23847004/diff/166001/chrome/browser/apps/app_browsertest_util.cc#newcode12 chrome/browser/apps/app_browsertest_util.cc:12: #include "base/strings/utf_string_conversions.h" On 2013/09/09 21:01:05, kalman wrote: > not ...
7 years, 3 months ago (2013-09-09 21:53:48 UTC) #56
not at google - send to devlin
ok. I am not happy with these tests but lgtm to get this on dev ...
7 years, 3 months ago (2013-09-09 22:00:53 UTC) #57
benwells
Nice, lgtm. Leaving thorough testing review to kalman, I'm happy with the overall structure and ...
7 years, 3 months ago (2013-09-09 22:06:05 UTC) #58
not at google - send to devlin
lgtm to try to make my name show up green instead of red
7 years, 3 months ago (2013-09-09 22:11:22 UTC) #59
not at google - send to devlin
and then follow them up. https://codereview.chromium.org/23847004/diff/167001/chrome/common/extensions/api/url_handlers/url_handlers_parser.cc File chrome/common/extensions/api/url_handlers/url_handlers_parser.cc (right): https://codereview.chromium.org/23847004/diff/167001/chrome/common/extensions/api/url_handlers/url_handlers_parser.cc#newcode124 chrome/common/extensions/api/url_handlers/url_handlers_parser.cc:124: handler.patterns.AddPattern(pattern); Please also add ...
7 years, 3 months ago (2013-09-09 22:25:34 UTC) #60
sergeygs
On 2013/09/09 22:25:34, kalman wrote: > and then follow them up. > > https://codereview.chromium.org/23847004/diff/167001/chrome/common/extensions/api/url_handlers/url_handlers_parser.cc > ...
7 years, 3 months ago (2013-09-09 23:39:56 UTC) #61
sergeygs
https://codereview.chromium.org/23847004/diff/167001/chrome/common/extensions/api/url_handlers/url_handlers_parser.cc File chrome/common/extensions/api/url_handlers/url_handlers_parser.cc (right): https://codereview.chromium.org/23847004/diff/167001/chrome/common/extensions/api/url_handlers/url_handlers_parser.cc#newcode124 chrome/common/extensions/api/url_handlers/url_handlers_parser.cc:124: handler.patterns.AddPattern(pattern); On 2013/09/09 22:25:35, kalman wrote: > Please also ...
7 years, 3 months ago (2013-09-09 23:41:38 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeygs@chromium.org/23847004/192001
7 years, 3 months ago (2013-09-10 00:12:22 UTC) #63
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=75529
7 years, 3 months ago (2013-09-10 03:53:03 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeygs@chromium.org/23847004/192001
7 years, 3 months ago (2013-09-10 06:00:07 UTC) #65
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 09:11:42 UTC) #66
Message was sent while issue was closed.
Change committed as 222235

Powered by Google App Engine
This is Rietveld 408576698