summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/importer_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/importer/importer_host.h')
-rw-r--r--chrome/browser/importer/importer_host.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/browser/importer/importer_host.h b/chrome/browser/importer/importer_host.h
index 18235eb..359f1d2 100644
--- a/chrome/browser/importer/importer_host.h
+++ b/chrome/browser/importer/importer_host.h
@@ -14,6 +14,7 @@
#include "chrome/browser/bookmarks/base_bookmark_model_observer.h"
#include "chrome/browser/importer/importer_data_types.h"
#include "chrome/browser/importer/profile_writer.h"
+#include "chrome/browser/ui/browser_list.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "ui/gfx/native_widget_types.h"
@@ -31,7 +32,8 @@ class ImporterProgressObserver;
// the import process is done, ImporterHost deletes itself.
class ImporterHost : public base::RefCountedThreadSafe<ImporterHost>,
public BaseBookmarkModelObserver,
- public content::NotificationObserver {
+ public content::NotificationObserver,
+ public BrowserList::Observer {
public:
ImporterHost();
@@ -63,6 +65,8 @@ class ImporterHost : public base::RefCountedThreadSafe<ImporterHost>,
parent_window_ = parent_window;
}
+ void set_browser(Browser* browser) { browser_ = browser; }
+
// Starts the process of importing the settings and data depending on what the
// user selected.
// |source_profile| - importer profile to import.
@@ -139,6 +143,9 @@ class ImporterHost : public base::RefCountedThreadSafe<ImporterHost>,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ // BrowserList::Observer
+ virtual void OnBrowserRemoved(Browser* browser) OVERRIDE;
+
// The task is the process of importing settings from other browsers.
base::Closure task_;
@@ -152,6 +159,9 @@ class ImporterHost : public base::RefCountedThreadSafe<ImporterHost>,
// warning dialog).
gfx::NativeWindow parent_window_;
+ // Used to add a new tab if we need the user to sign in.
+ Browser* browser_;
+
// The observer that we need to notify about changes in the import process.
importer::ImporterProgressObserver* observer_;