summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/importer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/importer/importer.h')
-rw-r--r--chrome/browser/importer/importer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/importer/importer.h b/chrome/browser/importer/importer.h
index 494cf1c..3d83ca0 100644
--- a/chrome/browser/importer/importer.h
+++ b/chrome/browser/importer/importer.h
@@ -164,6 +164,16 @@ class ImporterHost : public base::RefCounted<ImporterHost>,
// Cancel
void Cancel();
+ // When in headless mode, the importer will not show the warning dialog and
+ // the outcome is as if the user had canceled the import operation.
+ void set_headless() {
+ headless_ = true;
+ }
+
+ bool is_headless() const {
+ return headless_;
+ }
+
// An interface which an object can implement to be notified of events during
// the import process.
class Observer {
@@ -241,6 +251,9 @@ class ImporterHost : public base::RefCounted<ImporterHost>,
// True if source profile is readable.
bool is_source_readable_;
+ // True if UI is not to be shown.
+ bool headless_;
+
// Firefox profile lock.
scoped_ptr<FirefoxProfileLock> firefox_lock_;