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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/user_manager_mac.h

Issue 2552473002: Display error message when user try to open a locked supervised user profile when force-sign-in is … (Closed)
Patch Set: refactor Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COCOA_PROFILES_USER_MANAGER_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 26 matching lines...) Expand all
37 return window_controller_.get(); 37 return window_controller_.get();
38 } 38 }
39 39
40 void set_user_manager_started_showing( 40 void set_user_manager_started_showing(
41 const base::Time& user_manager_started_showing) { 41 const base::Time& user_manager_started_showing) {
42 user_manager_started_showing_ = user_manager_started_showing; 42 user_manager_started_showing_ = user_manager_started_showing;
43 } 43 }
44 44
45 void LogTimeToOpen(); 45 void LogTimeToOpen();
46 46
47 void ShowReauthDialog(content::BrowserContext* browser_context, 47 void ShowDialog(content::BrowserContext* browser_context,
48 const std::string& email, 48 const std::string& email,
49 signin_metrics::Reason reason); 49 const GURL& url);
50 void CloseReauthDialog(); 50 void CloseDialog();
51 51
52 void DisplayErrorMessage(); 52 void DisplayErrorMessage();
53 53
54 void SetSigninProfilePath(const base::FilePath& profile_path); 54 void SetSigninProfilePath(const base::FilePath& profile_path);
55 base::FilePath GetSigninProfilePath(); 55 base::FilePath GetSigninProfilePath();
56 56
57 private: 57 private:
58 explicit UserManagerMac(Profile* profile); 58 explicit UserManagerMac(Profile* profile);
59 virtual ~UserManagerMac(); 59 virtual ~UserManagerMac();
60 60
61 // Controller of the window. 61 // Controller of the window.
62 base::scoped_nsobject<UserManagerWindowController> window_controller_; 62 base::scoped_nsobject<UserManagerWindowController> window_controller_;
63 63
64 base::scoped_nsobject<ReauthDialogWindowController> reauth_window_; 64 base::scoped_nsobject<ReauthDialogWindowController> reauth_window_;
65 65
66 base::Time user_manager_started_showing_; 66 base::Time user_manager_started_showing_;
67 67
68 base::FilePath signin_profile_path_; 68 base::FilePath signin_profile_path_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(UserManagerMac); 70 DISALLOW_COPY_AND_ASSIGN(UserManagerMac);
71 }; 71 };
72 72
73 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_ 73 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698