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

Unified Diff: chrome/browser/ui/views/external_protocol_dialog.h

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: 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
Index: chrome/browser/ui/views/external_protocol_dialog.h
diff --git a/chrome/browser/ui/views/external_protocol_dialog.h b/chrome/browser/ui/views/external_protocol_dialog.h
index 6573d0979018858a3c26fded0c943cc4b2a5c686..f90963a36f87f4d9a93717d7c736e6b9c8991dc3 100644
--- a/chrome/browser/ui/views/external_protocol_dialog.h
+++ b/chrome/browser/ui/views/external_protocol_dialog.h
@@ -11,10 +11,6 @@
#include "ui/views/window/dialog_delegate.h"
#include "url/gurl.h"
-namespace content {
-class WebContents;
-}
-
namespace views {
class MessageBoxView;
}
@@ -22,8 +18,9 @@ class MessageBoxView;
class ExternalProtocolDialog : public views::DialogDelegate {
public:
// RunExternalProtocolDialog calls this private constructor.
- ExternalProtocolDialog(content::WebContents* web_contents,
- const GURL& url,
+ ExternalProtocolDialog(const GURL& url,
+ int render_process_host_id,
+ int routing_id,
const std::wstring& command);
// Returns the path of the application to be launched given the protocol
@@ -47,12 +44,13 @@ class ExternalProtocolDialog : public views::DialogDelegate {
// The message box view whose commands we handle.
views::MessageBoxView* message_box_view_;
- // The associated WebContents.
- content::WebContents* web_contents_;
-
// URL of the external protocol request.
GURL url_;
+ // IDs of the associated WebContents.
+ int render_process_host_id_;
+ int routing_id_;
+
// The time at which this dialog was created.
base::TimeTicks creation_time_;

Powered by Google App Engine
This is Rietveld 408576698