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

Unified Diff: chrome/browser/ui/gtk/first_run_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/external_protocol_dialog_delegate.cc ('k') | chrome/browser/ui/gtk/first_run_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/first_run_dialog.h
diff --git a/chrome/browser/ui/gtk/first_run_dialog.h b/chrome/browser/ui/gtk/first_run_dialog.h
index b59c12cce21e77f49032c273736a926e862d4402..ededb19fd1d692e8ea757fa74fabe0e8549c71ff 100644
--- a/chrome/browser/ui/gtk/first_run_dialog.h
+++ b/chrome/browser/ui/gtk/first_run_dialog.h
@@ -16,10 +16,10 @@ class FirstRunDialog {
public:
// Displays the first run UI for reporting opt-in, import data etc.
// Returns true if the dialog was shown.
- static bool Show();
+ static bool Show(Profile* profile);
private:
- FirstRunDialog();
+ explicit FirstRunDialog(Profile* profile);
virtual ~FirstRunDialog();
CHROMEGTK_CALLBACK_1(FirstRunDialog, void, OnResponseDialog, int);
@@ -32,6 +32,8 @@ class FirstRunDialog {
// first run tasks are done.
void FirstRunDone();
+ Profile* profile_;
+
// Dialog that holds the bug reporting and default browser checkboxes.
GtkWidget* dialog_;
« no previous file with comments | « chrome/browser/ui/external_protocol_dialog_delegate.cc ('k') | chrome/browser/ui/gtk/first_run_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698