summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_init.h
diff options
context:
space:
mode:
authorsail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 02:48:12 +0000
committersail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 02:48:12 +0000
commit6936ace67142e59dbf535390bb8cb0e4b95a59a0 (patch)
tree2eca803a389e13096861dbfaf0b2777d19a20a43 /chrome/browser/ui/browser_init.h
parent8a34f4bfece0167e819066016b26a84ee2cc5a2b (diff)
downloadchromium_src-6936ace67142e59dbf535390bb8cb0e4b95a59a0.zip
chromium_src-6936ace67142e59dbf535390bb8cb0e4b95a59a0.tar.gz
chromium_src-6936ace67142e59dbf535390bb8cb0e4b95a59a0.tar.bz2
Add a blocking version of the sync promo dialog
This is a new version of the sync promo that is displayed inside a blocking dialog window. If a new browser window is spawned from inside the sync promo then we close the dialog box and foucs on the new window. Any remaining first run tabs are added as inactive tabs to the new browser window. Screenshots: http://imgur.com/iBspQ BUG=107219 TEST= Review URL: https://chromiumcodereview.appspot.com/9225053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119827 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_init.h')
-rw-r--r--chrome/browser/ui/browser_init.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser_init.h b/chrome/browser/ui/browser_init.h
index 6675ec1..ddc6e02 100644
--- a/chrome/browser/ui/browser_init.h
+++ b/chrome/browser/ui/browser_init.h
@@ -241,6 +241,16 @@ class BrowserInit {
// Returns true if so.
bool CheckIfAutoLaunched(Profile* profile);
+ // Shows a sync promo dialog if necessary. When called |browser| should be
+ // the browser that's being used for startup. On return |browser| is set
+ // to the browser spawned from the sync promo dialog (if any). On input
+ // |tabs| should be the set of tabs to show on startup. On return |tabs|
+ // will contain the new set of tabs to show on startup. Returns the index
+ // of the tab to activate.
+ size_t ShowSyncPromoDialog(bool process_startup,
+ Browser** browser,
+ std::vector<Tab>* tabs);
+
const FilePath cur_dir_;
const CommandLine& command_line_;
Profile* profile_;