OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_BROWSER_INIT_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_INIT_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_INIT_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_INIT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 void AddStartupURLs(std::vector<GURL>* startup_urls) const; | 234 void AddStartupURLs(std::vector<GURL>* startup_urls) const; |
235 | 235 |
236 // Checks whether Chrome is still the default browser (unless the user | 236 // Checks whether Chrome is still the default browser (unless the user |
237 // previously instructed not to do so) and warns the user if it is not. | 237 // previously instructed not to do so) and warns the user if it is not. |
238 void CheckDefaultBrowser(Profile* profile); | 238 void CheckDefaultBrowser(Profile* profile); |
239 | 239 |
240 // Checks whether Chrome should show the 'Chrome was auto-started' infobar. | 240 // Checks whether Chrome should show the 'Chrome was auto-started' infobar. |
241 // Returns true if so. | 241 // Returns true if so. |
242 bool CheckIfAutoLaunched(Profile* profile); | 242 bool CheckIfAutoLaunched(Profile* profile); |
243 | 243 |
244 // Shows a sync promo dialog if necessary. When called |browser| should be | |
245 // the browser that's being used for startup. On return |browser| is set | |
246 // to the browser spawned from the sync promo dialog (if any). On input | |
247 // |tabs| should be the set of tabs to show on startup. On return |tabs| | |
248 // will contain the new set of tabs to show on startup. Returns the index | |
249 // of the tab to activate. | |
250 size_t ShowSyncPromoDialog(Browser** browser, | |
251 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.
| |
252 std::vector<Tab>* tabs); | |
253 | |
244 const FilePath cur_dir_; | 254 const FilePath cur_dir_; |
245 const CommandLine& command_line_; | 255 const CommandLine& command_line_; |
246 Profile* profile_; | 256 Profile* profile_; |
247 BrowserInit* browser_init_; | 257 BrowserInit* browser_init_; |
248 bool is_first_run_; | 258 bool is_first_run_; |
249 DISALLOW_COPY_AND_ASSIGN(LaunchWithProfile); | 259 DISALLOW_COPY_AND_ASSIGN(LaunchWithProfile); |
250 }; | 260 }; |
251 | 261 |
252 private: | 262 private: |
253 friend class CloudPrintProxyPolicyTest; | 263 friend class CloudPrintProxyPolicyTest; |
(...skipping 30 matching lines...) Expand all Loading... | |
284 | 294 |
285 // True if we have already read and reset the preference kWasRestarted. (A | 295 // True if we have already read and reset the preference kWasRestarted. (A |
286 // member variable instead of a static variable inside WasRestarted because | 296 // member variable instead of a static variable inside WasRestarted because |
287 // of testing.) | 297 // of testing.) |
288 static bool was_restarted_read_; | 298 static bool was_restarted_read_; |
289 | 299 |
290 DISALLOW_COPY_AND_ASSIGN(BrowserInit); | 300 DISALLOW_COPY_AND_ASSIGN(BrowserInit); |
291 }; | 301 }; |
292 | 302 |
293 #endif // CHROME_BROWSER_UI_BROWSER_INIT_H_ | 303 #endif // CHROME_BROWSER_UI_BROWSER_INIT_H_ |
OLD | NEW |