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

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: 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/gtk/protocol_dialog_gtk.cc ('k') | chrome/browser/ui/views/external_protocol_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 81e32c4415aaffc559173f420a8cc2c8d608cfc9..a588b63e8715883602c1e811fd82b54a897678d3 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
@@ -48,12 +45,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_;
« no previous file with comments | « chrome/browser/ui/gtk/protocol_dialog_gtk.cc ('k') | chrome/browser/ui/views/external_protocol_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698