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

Unified Diff: chrome/browser/ui/external_protocol_dialog_delegate.cc

Issue 107033003: Stop using GetDefaultProfile() in Chrome OS implementation of platform_util::OpenExternal() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove is_valid check Created 7 years 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/ui/external_protocol_dialog_delegate.h ('k') | chrome/browser/ui/gtk/first_run_dialog.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/external_protocol_dialog_delegate.cc
diff --git a/chrome/browser/ui/external_protocol_dialog_delegate.cc b/chrome/browser/ui/external_protocol_dialog_delegate.cc
index 2badc319aae22bd35ce6dd1364353b5e87ad271a..35ad163007873bb8da47a92fde8ba65b00ddde30 100644
--- a/chrome/browser/ui/external_protocol_dialog_delegate.cc
+++ b/chrome/browser/ui/external_protocol_dialog_delegate.cc
@@ -15,8 +15,13 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/text_elider.h"
-ExternalProtocolDialogDelegate::ExternalProtocolDialogDelegate(const GURL& url)
- : ProtocolDialogDelegate(url) {
+ExternalProtocolDialogDelegate::ExternalProtocolDialogDelegate(
+ const GURL& url,
+ int render_process_host_id,
+ int tab_contents_id)
+ : ProtocolDialogDelegate(url),
+ render_process_host_id_(render_process_host_id),
+ tab_contents_id_(tab_contents_id) {
}
ExternalProtocolDialogDelegate::~ExternalProtocolDialogDelegate() {
@@ -65,7 +70,8 @@ void ExternalProtocolDialogDelegate::DoAccept(
url.scheme(), ExternalProtocolHandler::DONT_BLOCK);
}
- ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck(url);
+ ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck(
+ url, render_process_host_id_, tab_contents_id_);
}
void ExternalProtocolDialogDelegate::DoCancel(
« no previous file with comments | « chrome/browser/ui/external_protocol_dialog_delegate.h ('k') | chrome/browser/ui/gtk/first_run_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698