OLD | NEW |
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_WEBUI_OPTIONS_SUPERVISED_USER_CREATE_CONFIRM_HANDLER_H
_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_CREATE_CONFIRM_HANDLER_H
_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_CREATE_CONFIRM_HANDLER_H
_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_CREATE_CONFIRM_HANDLER_H
_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/webui/options/options_ui.h" | 9 #include "chrome/browser/ui/webui/options/options_ui.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 // that this dialog can be updated or closed. | 32 // that this dialog can be updated or closed. |
33 class ProfileUpdateObserver; | 33 class ProfileUpdateObserver; |
34 | 34 |
35 // Callback for the "switchToProfile" message. | 35 // Callback for the "switchToProfile" message. |
36 // Opens a new window for the profile. | 36 // Opens a new window for the profile. |
37 // |args| is of the form [ {string} profileFilePath ] | 37 // |args| is of the form [ {string} profileFilePath ] |
38 void SwitchToProfile(const base::ListValue* args); | 38 void SwitchToProfile(const base::ListValue* args); |
39 | 39 |
40 // Observes the ProfileAttributesStorage and gets notified when a profile has | 40 // Observes the ProfileAttributesStorage and gets notified when a profile has |
41 // been modified, so that the dialog can be updated or closed. | 41 // been modified, so that the dialog can be updated or closed. |
42 scoped_ptr<ProfileUpdateObserver> profile_update_observer_; | 42 std::unique_ptr<ProfileUpdateObserver> profile_update_observer_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreateConfirmHandler); | 44 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreateConfirmHandler); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace options | 47 } // namespace options |
48 | 48 |
49 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_CREATE_CONFIRM_HANDLE
R_H_ | 49 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_CREATE_CONFIRM_HANDLE
R_H_ |
OLD | NEW |