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

Unified Diff: chrome/browser/chromeos/external_protocol_dialog.cc

Issue 2348673002: Add an external protocol dialog for ARC (Closed)
Patch Set: Address Xiyuan's comment Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/arc/page_transition_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/external_protocol_dialog.cc
diff --git a/chrome/browser/chromeos/external_protocol_dialog.cc b/chrome/browser/chromeos/external_protocol_dialog.cc
index dfb7868ab284632bf308049d86042b181bbcf5bf..2839dbc5c4614a0cb68bacc3f4fa869713fce29a 100644
--- a/chrome/browser/chromeos/external_protocol_dialog.cc
+++ b/chrome/browser/chromeos/external_protocol_dialog.cc
@@ -7,6 +7,7 @@
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
+#include "chrome/browser/chromeos/arc/arc_external_protocol_dialog.h"
#include "chrome/browser/external_protocol/external_protocol_handler.h"
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/grit/chromium_strings.h"
@@ -36,6 +37,12 @@ void ExternalProtocolHandler::RunExternalProtocolDialog(
int routing_id,
ui::PageTransition page_transition,
bool has_user_gesture) {
+ // First, check if ARC version of the dialog is available and run ARC version
+ // when possible.
+ if (arc::RunArcExternalProtocolDialog(url, render_process_host_id, routing_id,
+ page_transition, has_user_gesture)) {
+ return;
+ }
WebContents* web_contents = tab_util::GetWebContentsByID(
render_process_host_id, routing_id);
new ExternalProtocolDialog(web_contents, url);
« no previous file with comments | « chrome/browser/chromeos/arc/page_transition_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698