Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ | 6 #define CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 | 9 |
| 10 class Profile; | 10 class Profile; |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 | 13 |
| 14 // Determines whether the browser has ever been shutdown since the | 14 // Determines whether the browser has ever been shutdown since the |
| 15 // profile was created. | 15 // profile was created. |
| 16 bool HasBeenShutdown(Profile* profile); | 16 bool HasBeenShutdown(Profile* profile); |
| 17 | 17 |
| 18 // Indicates whether the user should be prompted to create a new | |
| 19 // profile before signin. | |
| 20 enum DisplayCreateProfilePrompt { | |
| 21 PROMPT_TO_CREATE_PROFILE, | |
| 22 DO_NOT_PROMPT_TO_CREATE_PROFILE | |
| 23 }; | |
| 24 | |
| 18 // Determines whether the user should be prompted to create a new | 25 // Determines whether the user should be prompted to create a new |
| 19 // profile before signin. | 26 // profile before signin. |
| 20 void CheckShouldPromptForNewProfile( | 27 void CheckShouldPromptForNewProfile( |
| 21 Profile* profile, | 28 Profile* profile, |
| 22 const base::Callback<void(bool)>& cb); | 29 const base::Callback<void(DisplayCreateProfilePrompt)>& cb); |
|
Peter Kasting
2013/05/15 00:11:03
Nit: Personally I slightly prefer the old bool, si
Andrew T Wilson (Slow)
2013/05/16 08:00:30
Peter has a reasonable point - if you also prefer
dconnelly
2013/05/17 13:01:55
Done.
| |
| 23 | 30 |
| 24 } // namespace ui | 31 } // namespace ui |
| 25 | 32 |
| 26 #endif // CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ | 33 #endif // CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ |
| OLD | NEW |