summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/first_run_dialog.h
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 21:15:52 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 21:15:52 +0000
commit009bac9dfb6ae322bfb3d7b957f29cfd4accfe3b (patch)
tree82806e16cd46ede4f4c9b755f8a8a32d922b774b /chrome/browser/gtk/first_run_dialog.h
parent4f0613908b2847d5e20926246266d551bf3e7120 (diff)
downloadchromium_src-009bac9dfb6ae322bfb3d7b957f29cfd4accfe3b.zip
chromium_src-009bac9dfb6ae322bfb3d7b957f29cfd4accfe3b.tar.gz
chromium_src-009bac9dfb6ae322bfb3d7b957f29cfd4accfe3b.tar.bz2
Show progress Window when importing profile from First Run dialog.
Review URL: http://codereview.chromium.org/149766 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/first_run_dialog.h')
-rw-r--r--chrome/browser/gtk/first_run_dialog.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/chrome/browser/gtk/first_run_dialog.h b/chrome/browser/gtk/first_run_dialog.h
index cea21d3..bc68362 100644
--- a/chrome/browser/gtk/first_run_dialog.h
+++ b/chrome/browser/gtk/first_run_dialog.h
@@ -8,11 +8,19 @@
#include "chrome/browser/first_run.h"
#include "chrome/browser/importer/importer.h"
-class FirstRunDialog {
+class FirstRunDialog : public ImportObserver {
public:
// Displays the first run UI for reporting opt-in, import data etc.
static bool Show(Profile* profile);
+ // Overridden methods from ImportObserver.
+ virtual void ImportCanceled() {
+ FirstRunDone();
+ }
+ virtual void ImportComplete() {
+ FirstRunDone();
+ }
+
private:
FirstRunDialog(Profile* profile, int& response);
~FirstRunDialog() { }
@@ -24,6 +32,11 @@ class FirstRunDialog {
}
void OnDialogResponse(GtkWidget* widget, int response);
+ // This method closes the first run window and quits the message loop so that
+ // the Chrome startup can continue. This should be called when all the
+ // first run tasks are done.
+ void FirstRunDone();
+
// First Run UI Dialog
GtkWidget* dialog_;