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

Unified Diff: chrome/browser/ui/browser_init.h

Issue 9225053: Add a blocking version of the sync promo dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 11 months 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/browser_dialogs.h ('k') | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_init.h
diff --git a/chrome/browser/ui/browser_init.h b/chrome/browser/ui/browser_init.h
index 6675ec117d265cfdd8c57d10c0edf8ca1541b4fd..5f45613340f569a16ec348696bdc6466d0eabf1a 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(Browser** browser,
+ bool process_startup,
sky 2012/01/30 23:08:14 out params should be last, so make process_startup
sail 2012/01/30 23:45:53 Done.
+ std::vector<Tab>* tabs);
+
const FilePath cur_dir_;
const CommandLine& command_line_;
Profile* profile_;
« no previous file with comments | « chrome/browser/ui/browser_dialogs.h ('k') | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698