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

Side by Side Diff: chrome/browser/ui/sync/profile_signin_confirmation_helper.h

Issue 14846020: Add Views implementation of ProfileSigninConfirmationDialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no forward declared enums Created 7 years, 7 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 unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698