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

Issue 11265013: [Android] Use resource throttle instead of HandleExternalProtocol. (Closed)

Created:
8 years, 1 month ago by John Knottenbelt
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android] Use resource throttle instead of HandleExternalProtocol. Chrome on Android uses a throttle-based mechanism to intercept links so that the user may choose to run an Android application instead of loading the link in the browser. This mechanism works for both internal (e.g. http:, https:) as well as external protocols (e.g. tel:, geo:). Instead of using the HandleExternalProtocol path way to handle external protocols, it is better to have both internal and external protocols overridden through the same mechanism. This has the added benefit that an error page can be shown in Chrome on Android if there is no external handler available for the given protocol, which is not easily done using the HandleExternalProtocol mechanism. BUG=156044 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164717

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address review comments. #

Patch Set 3 : Rebase. Remove unnecessary includes from external_protocol_dialog_android.cc #

Patch Set 4 : Fix android webview compilation error (adjust header). #

Messages

Total messages: 12 (0 generated)
John Knottenbelt
8 years, 1 month ago (2012-10-24 17:51:31 UTC) #1
joth
https://codereview.chromium.org/11265013/diff/1/content/browser/renderer_host/resource_dispatcher_host_impl.cc File content/browser/renderer_host/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/11265013/diff/1/content/browser/renderer_host/resource_dispatcher_host_impl.cc#newcode663 content/browser/renderer_host/resource_dispatcher_host_impl.cc:663: return false; Did you mean this? you've changed delegate_->HandleExternalProtocol ...
8 years, 1 month ago (2012-10-24 18:47:55 UTC) #2
mkosiba (inactive)
https://codereview.chromium.org/11265013/diff/1/chrome/browser/ui/android/external_protocol_dialog_android.cc File chrome/browser/ui/android/external_protocol_dialog_android.cc (right): https://codereview.chromium.org/11265013/diff/1/chrome/browser/ui/android/external_protocol_dialog_android.cc#newcode19 chrome/browser/ui/android/external_protocol_dialog_android.cc:19: // protocols, so we don't need to do anything ...
8 years, 1 month ago (2012-10-25 09:02:11 UTC) #3
John Knottenbelt
Thanks for reviewing, changes made. https://codereview.chromium.org/11265013/diff/1/chrome/browser/ui/android/external_protocol_dialog_android.cc File chrome/browser/ui/android/external_protocol_dialog_android.cc (right): https://codereview.chromium.org/11265013/diff/1/chrome/browser/ui/android/external_protocol_dialog_android.cc#newcode19 chrome/browser/ui/android/external_protocol_dialog_android.cc:19: // protocols, so we ...
8 years, 1 month ago (2012-10-25 16:17:27 UTC) #4
joth
lgtm
8 years, 1 month ago (2012-10-25 16:23:19 UTC) #5
John Knottenbelt
Adding OWNERS, please review: yfriedman: chrome/browser/ui/android joi: content/public/browser darin: chrome, content/browser/renderer_host
8 years, 1 month ago (2012-10-26 14:19:09 UTC) #6
John Knottenbelt
Oops, I forgot to actually add joi, yfriedman and darin to the reviewers list. Please ...
8 years, 1 month ago (2012-10-29 11:08:56 UTC) #7
Jói
LGTM for content/public.
8 years, 1 month ago (2012-10-29 11:12:46 UTC) #8
darin (slow to review)
LGTM for content/ changes.
8 years, 1 month ago (2012-10-29 14:17:22 UTC) #9
Yaron
lgtm
8 years, 1 month ago (2012-10-29 17:39:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jknotten@chromium.org/11265013/5012
8 years, 1 month ago (2012-10-29 17:44:46 UTC) #11
commit-bot: I haz the power
8 years, 1 month ago (2012-10-29 19:43:34 UTC) #12
Change committed as 164717

Powered by Google App Engine
This is Rietveld 408576698