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

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

Issue 10584026: Allow ChromeOS file selection dialog to be shown from shell windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase Created 8 years, 6 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
Index: chrome/browser/ui/views/select_file_dialog_extension.h
diff --git a/chrome/browser/ui/views/select_file_dialog_extension.h b/chrome/browser/ui/views/select_file_dialog_extension.h
index eb91b0dcf8c898007ec6f8173950311a890fb88c..d080ade4fcc2efae8fa74d1d4d710cd40a017909 100644
--- a/chrome/browser/ui/views/select_file_dialog_extension.h
+++ b/chrome/browser/ui/views/select_file_dialog_extension.h
@@ -14,8 +14,8 @@
#include "chrome/browser/ui/views/extensions/extension_dialog_observer.h"
#include "ui/gfx/native_widget_types.h" // gfx::NativeWindow
-class Browser;
class ExtensionDialog;
+class Profile;
namespace content {
class RenderViewHost;
@@ -92,10 +92,10 @@ class SelectFileDialogExtension
// ID of the tab that spawned this dialog, used to route callbacks.
int32 tab_id_;
- // Cache a pointer to our owner browser. Since we're a child window of our
- // owner browser, if this browser gets deleted, it will also close us.
- Browser* owner_browser_;
+ // Pointer to the profile the dialog is running in.
+ Profile* profile_;
+ // The window that created the dialog.
gfx::NativeWindow owner_window_;
// We defer the callback into SelectFileDialog::Listener until the window
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_dialog.cc ('k') | chrome/browser/ui/views/select_file_dialog_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698